/* Wrapper: 2 bokse ved siden af hinanden */
.psc-calculator-wrapper {
    display: flex;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0;
}
.psc-calculator {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    background: #fafafa;
}
.psc-left{
    flex: 2 1 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.psc-calculator-result { flex: 1 1 0; }

@media (max-width: 768px){
    .psc-calculator-wrapper{ flex-direction: column; }
    .psc-left{ flex: 1 1 auto; }
}

.psc-title { margin-top: 0; margin-bottom: 0.25rem; }
.psc-calculator-input .psc-intro {
    margin-top: 0; margin-bottom: 1.5rem;
    font-size: 0.95rem; color: #555;
}
.psc-subtitle { font-size:12px; line-height:14px; }

.psc-plugins-list {
    display: flex; flex-direction: column;
    gap: 1rem; margin-bottom: 1.7rem;
}
.psc-plugin-item {
    display: flex; align-items: center;
    gap: 0.75rem; cursor: pointer;
    position: relative; margin: 5px 0;
}

/* GEM native inputs */
.psc-plugin-item input[type="checkbox"],
.psc-plan-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.psc-check-icon,
.psc-radio-icon {
    width: 24px; height: 24px;
    flex-shrink: 0; display: inline-block;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* relativ sti til pluginets img/ */
    background-image: url('../img/box.svg');
}

/* Grøn checkmark når valgt – med dine offsets */
.psc-check-icon::after,
.psc-radio-icon::after {
    content: "";
    position: absolute;
    top: -3px; left: 4px;
    width: 100%; height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.15s ease-out;
    /* relativ sti */
    background-image: url('../img/check.svg');
}

.psc-plugin-item input[type="checkbox"]:checked + .psc-check-icon::after,
.psc-plan-item input[type="radio"]:checked + .psc-radio-icon::after {
    opacity: 1;
}

.psc-plugin-inner {
    display: flex; align-items: center;
    gap: 0.75rem; flex: 1;
}
.psc-plugin-icon img {
    margin-top: 4px;
    width: 24px; height: 24px;
    object-fit: contain;
}
.psc-plugin-price { font-weight: 600; white-space: nowrap; }

.psc-plugin-item.is-disabled { cursor: not-allowed; opacity: 1; }
.psc-plugin-item.is-disabled .psc-plugin-inner,
.psc-plugin-item.is-disabled .psc-check-icon { opacity: 0.45; }

.psc-plugin-item .psc-plugin-toast {
    opacity: 1;
    background: #111;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.psc-selected-plan,
.psc-plugins-list,
.psc-plans {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    margin-top: 0.5rem;
}
.psc-plans h4 { margin-top: 0; margin-bottom: 0.75rem; }

.psc-plan-item {
    display: flex; align-items: flex-start;
    gap: 0.75rem; cursor: pointer;
    margin-bottom: 20px; position: relative;
}
.psc-plan-inner { display: block; width: 100%; }
.psc-plan-header { display: flex; align-items: center; width: 100%; }
.psc-plan-title { flex: 1; font-weight: 600; }
.psc-plan-price { margin-left: auto; font-weight: 600; white-space: nowrap; }

.psc-plan-subtitle {
    font-size: 0.85rem; color: #666;
    margin-top: 0.15rem;
    padding-right:100px;
}

.psc-calculator-result .psc-results {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.psc-result-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
.psc-result-value { white-space: nowrap; }
.psc-result-saving { margin-top: 0.5rem; font-weight: 700; }
.psc-result-saving .psc-result-value { font-size: 1.1rem; }
.psc-result-saving.merpris .psc-result-value { color: #b00020; }
.psc-result-saving.besparelse .psc-result-value { color: #1b7e32; }

.psc-footnote {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    line-height: 0.9rem;
    color: #777;
}

/* Kontaktformular */
.psc-contact h4 { margin-top: 20px; margin-bottom: 0.25rem; }
.psc-contact-intro {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.1rem;
    color: #555;
}
.psc-contact-form { display: flex; flex-direction: column; gap: 0.6rem; }
.psc-field label { display: block; font-size: 0.85rem; margin-bottom: 0.15rem; }
.psc-field input {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}
.psc-submit-btn {
    margin-top: 0.5rem!important;
    padding: 0.5rem 0.9rem!important;
    border-radius: 4px!important;
    border: none!important;
    cursor: pointer!important;
    font-size: 0.95rem!important;
    font-weight: 600!important;
    background: #78abce!important;
    background-color: #78abce!important;
    color: #000000!important;
}
.psc-submit-btn:hover { opacity: 0.95; background: #85be4f!important; background-color: #85be4f!important;}

.psc-success {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    background: #e7f7ec;
    border: 1px solid #c2e5cf;
    font-size: 0.9rem;
    color: #205a32;
}
.psc-error {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    background: #fdecea;
    border: 1px solid #f5c2c7;
    font-size: 0.9rem;
    color: #842029;
}
.psc-hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1.2rem 0 1rem;
}

/* Tooltip/toast */
.psc-plugin-item { position: relative; }
.psc-plugin-toast {
    position: absolute;
    left: 34px;
    top: 100%;
    margin-top: 6px;
    z-index: 10;
    background: #000!important;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.2;
    max-width: 320px;
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    pointer-events: none;
}
.psc-plugin-toast::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 14px;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #111 transparent;
}

/* Typografi for tekstblok i plugin-linjer */
.psc-plugin-textblock{
    display: flex;
    flex-direction: column;
    flex: 1;
}

.psc-plugin-name{
    font-weight: 600;
}

.psc-plugin-description{
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
    font-weight: 400;
}

/* Lille linje under valgt plan */
.psc-selected-plan small {
    display: block;
    margin-top: 3px;
    font-weight: 400;
    color: #666;
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 30px;
}
