.true-position-calculator {
    --light-red: #eac4c4;
    --dark-red: #4f0303;
    /*--light-red: #eadec4;*/
    /*--dark-red: #6c5807;*/
    --light-green: #c5eac4;
    --dark-green: #206c07;

    display: flex;
    flex-direction: column;
    width: 100%;
}

.scheme-dark .true-position-calculator {
    --bz-component-element-icon: #51c9ff;
}

.true-position-calculator a {
    color: inherit;
}

.calc-icon-fill-current {
    fill: var(--dark-red) !important;
}

.true-position-calculator .tpc-container {
    display: flex;
    flex-direction: column;
    flex-flow: wrap;
    width: 100%;
}

.true-position-calculator .tpc-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.true-position-calculator fieldset {
    border-color: var(--bz-component-element-border);
    border-width: 1px;
    margin-bottom: 20px;
    padding-top: 10px;
}

.true-position-calculator fieldset legend {
    color: var(--bz-component-element-icon);
    font-size: 16px;
    text-transform: uppercase;
}

.true-position-calculator fieldset legend a {
    position: relative;
    top: 3px;
}

.true-position-calculator label:not(:has(input[type="radio"])) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.true-position-calculator label .error-text {
    flex-shrink: 0;
    flex-basis: 100%;
    width: 100%;
    font-weight: normal;
    gap: 8px;
    font-size: 14px;
}

.true-position-calculator label .error-text svg {
    flex-shrink: 0;
    flex-basis: 16px;
    width: 16px;
}

.true-position-calculator input[type="radio"] {
    margin-right: 4px;
}

.true-position-calculator label:has(img) {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.true-position-calculator label:has(img) img {
     width: 60%
}

.true-position-calculator label.result {
    color: var(--dark-green);
    background-color: var(--light-green);
    outline: solid 8px var(--light-green);
}

.true-position-calculator label.result input {
    border-color: var(--dark-green);
}

.true-position-calculator label.error {
    color: var(--dark-red);
    background-color: var(--light-red);
    outline: solid 8px var(--light-red);
}

.true-position-calculator label.error input {
    color: var(--dark-red);
    border-color: var(--dark-red);
}

.true-position-calculator label > span {
    display: inline-flex;
    align-items: center;
    font-weight: bold;
}

.true-position-calculator .tpc-fields-inline {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
}

.true-position-calculator .tpc-fields-radio-list {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    gap: 20px;
}

.true-position-calculator .tpc-fields-inline label {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.true-position-calculator input[readonly] {
    border-width: 0;
    border-left-width: 3px;
    border-left-color: var(--bz-component-element-icon);
    border-radius: 0 !important;
    font-style: italic;
}

.true-position-calculator .img_holder img {
    margin: 20px auto 0;
    max-width: 100%;
}

@media screen and (min-width: 700px) {
    .true-position-calculator fieldset:has(input[type="radio"]) {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}

.tpc-total-line {
    margin-bottom: 10px;
    border-bottom: solid 3px var(--bz-component-element-border);
}

.component-shortcode .tpc-dark-mode, .component-shortcode .tpc-light-mode {
    all: unset;
    display: none;
    cursor: pointer;
}

.component-shortcode .tpc-dark-mode svg,
.component-shortcode .tpc-light-mode svg {
    fill: var(--bz-component-element-icon);
}

.scheme-light.component-shortcode .tpc-dark-mode,
.scheme-dark.component-shortcode .tpc-light-mode {
    display: block;
}

@media screen and (min-width: 1024px) {
    .true-position-calculator .tpc-container {
        gap: 0 20px;
    }
    .true-position-calculator .tpc-container.output {
        align-items: center;
    }

    .true-position-calculator .tpc-column {
        flex: 1;
        width: 50%;
    }
}
