/* =========================================
   VISIOONWEBSITES - CALCULATOR
========================================= */

.calculator-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    height: 90vh !important;
    max-height: 90vh !important;
    min-height: 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: transparent !important;
}

.calculator-sidebar,
.calculator-content,
.calculator-summary {
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
}

/* SIDEBAR */

.calculator-sidebar {
    flex: 0 0 15% !important;
    width: 15% !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.calculator-sidebar .buton-serviciu-calculator {
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.calculator-sidebar .buton-serviciu-calculator .elementor-button {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 48px;
    padding: 11px 13px !important;
    border: 1px solid #505050 !important;
    border-radius: 9px !important;
    background: #292929 !important;
    color: #fff !important;
    box-shadow: none !important;
    text-align: left !important;
    transition: .2s ease;
}

.calculator-sidebar .buton-serviciu-calculator .elementor-button:hover {
    border-color: #E60202 !important;
    background: #353535 !important;
    color: #fff !important;
}

.calculator-sidebar .buton-serviciu-calculator.active .elementor-button,
.calculator-sidebar .buton-serviciu-calculator .elementor-button.active {
    border-color: #E60202 !important;
    background: #E60202 !important;
    color: #fff !important;
}

.calculator-sidebar .elementor-button-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
}

.calculator-sidebar .elementor-button-icon,
.calculator-sidebar .elementor-button-text {
    color: inherit !important;
}

.calculator-sidebar .elementor-button-text {
    line-height: 1.25;
}

/* CONTINUT CENTRAL */

.calculator-content {
    flex: 1 1 55% !important;
    width: 55% !important;
    height: 100% !important;
    max-height: 100% !important;
    padding: 14px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    background: #1b1b1d !important;
    border: 1px solid #E60202 !important;
    border-radius: 20px !important;
    scrollbar-width: thin;
    scrollbar-color: #E60202 #292929;
}

/* REZUMAT - STRUCTURA FIXA */

.calculator-summary {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 30% !important;
    width: 30% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    padding: 12px !important;
    overflow: hidden !important;
    background: #1b1b1d !important;
    border: 1px solid #E60202 !important;
    border-radius: 20px !important;
}

.calc-summary-inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 13px;
    overflow: hidden !important;
    border: 1px solid #E60202;
    border-radius: 10px;
    background: #1d1d1d;
}

/* DOAR LISTA SE DERULEAZA */

.calc-summary-items {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 5px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #E60202 #292929;
}

.calc-summary-row {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #414141;
    color: #d0d0d0;
    font-size: 12px;
}

.calc-summary-row strong {
    flex: 0 0 auto;
    color: #fff;
    white-space: nowrap;
}

/* ELEMENTELE FIXATE SUB LISTA */

.calc-summary-total,
.calc-summary-benefits,
.calc-summary-note {
    flex-shrink: 0 !important;
}

.calc-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #E60202;
    border-radius: 8px;
    background: #b90000;
    color: #fff;
}

.calc-summary-total strong {
    color: #fff;
    font-size: 21px;
}

.calc-summary-benefits {
    margin: 12px 0;
    padding-left: 18px;
    color: #fff;
    font-size: 13px;
    line-height: 1.55;
}

.calc-summary-benefits li::marker {
    color: #E60202;
}

.calc-summary-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #414141;
}

.calc-summary-note p {
    margin: 0;
    color: #c5c5c5;
    font-size: 12px;
    line-height: 1.5;
}

.calc-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
}

/* SCROLLBAR */

.calculator-content::-webkit-scrollbar,
.calc-summary-items::-webkit-scrollbar {
    width: 6px;
}

.calculator-content::-webkit-scrollbar-thumb,
.calc-summary-items::-webkit-scrollbar-thumb {
    background: #E60202;
    border-radius: 8px;
}

/* TITLURI SI TEXT */

.calculator-content h1,
.calculator-content h2,
.calculator-content h3,
.calculator-content h4 {
    color: #fff !important;
    line-height: 1.1;
}

.calculator-content h2 {
    margin: 0 0 10px;
    font-size: clamp(20px, 1.7vw, 27px);
}

.calculator-content h3 {
    margin: 0 0 10px;
    font-size: clamp(17px, 1.35vw, 21px);
}

.calculator-content h4 {
    margin: 0 0 8px;
    font-size: 15px;
}

.calculator-content p {
    font-size: 14px;
    line-height: 1.2;
}

.calc-panel-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #414141;
}

.calc-panel-heading h2 {
    margin: 0 0 3px;
}

.calc-panel-heading p {
    margin: 0;
    color: #c5c5c5;
}

.calc-section {
    margin-bottom: 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid #414141;
}

.calc-section:last-child {
    border-bottom: 0;
}

.calc-section h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
}

.calc-catalog-group {
    margin-bottom: 10px;
}

.calc-catalog-group:last-child {
    margin-bottom: 0;
}

/* NAVIGARE PASI */

.calc-step-navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #414141;
}

.calc-step {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 5px;
    border: 1px solid #484848;
    border-radius: 8px;
    background: #292929;
    color: #fff;
    cursor: pointer;
    transition: .2s ease;
}

.calc-step:hover {
    border-color: #E60202;
}

.calc-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #454545;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.calc-step-label {
    font-size: 12px;
    line-height: 1.2;
    text-align: left;
}

.calc-step.active {
    border-color: #E60202;
    background: #E60202;
}

.calc-step.active .calc-step-number {
    background: #fff;
    color: #E60202;
}

.calc-step.completed {
    border-color: #E60202;
}

.calc-step.completed .calc-step-number {
    background: #E60202;
}

.calc-step-panel {
    width: 100%;
    animation: calcFadeIn .2s ease;
}

@keyframes calcFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CARDURI RADIO */

.calc-card-grid {
    display: grid;
    align-items: stretch;
    gap: 8px;
}

.calc-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calc-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calc-option-card {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 55px;
    height: 100%;
    padding: 5px;
    border: 1px solid #505050;
    border-radius: 9px;
    background: #292929;
    color: #fff;
    cursor: pointer;
    transition: .2s ease;
}

.calc-option-card:hover {
    border-color: #E60202;
}

.calc-option-card.selected {
    border: 2px solid #E60202;
    background: #303030;
}

.calc-option-card input[type="radio"] {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #E60202;
}

.calc-option-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    color: #fff;
}

.calc-option-info strong {
    color: #fff;
    line-height: 1.25;
    font-size: 14px;
}

.calc-price {
    flex: 0 0 auto;
    color: #ff2929;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* CHECKBOXURI - CARDURI EGALE */

.calc-addons-grid,
.calc-special-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 8px;
}

.calc-addon {
    display: grid !important;
    grid-template-columns: 17px minmax(0, 1fr) auto 18px;
    align-items: center !important;
    gap: 6px;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 55px;
    box-sizing: border-box;
    padding: 9px;
    border: 1px solid #505050;
    border-radius: 8px;
    background: #292929;
    color: #fff;
    cursor: pointer;
    transition: .2s ease;
}

.calc-addon:hover,
.calc-addon.selected {
    border-color: #E60202;
}

.calc-addon.selected {
    background: #303030;
}

.calc-addon input[type="checkbox"] {
    grid-column: 1;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #E60202;
}

.calc-addon-info {
    grid-column: 2;
    min-width: 0;
    color: #fff;
}

.calc-addon-info strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.calc-addon .calc-price {
    grid-column: 3;
    font-size: 12px;
}

.calc-addon .calc-help-wrap {
    grid-column: 4;
}

/* SEMNUL EXCLAMARII */

.calc-help-wrap {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.calc-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid #bbb;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: help;
}

.calc-help:hover {
    border-color: #E60202;
    background: #E60202;
}

.calc-help::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 90%;
    bottom: calc(100% + 8px);
    width: 220px;
    max-width: 70vw;
    padding: 9px 11px;
    border: 1px solid #E60202;
    border-radius: 7px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-90%, 5px);
    transition: .2s ease;
    z-index: 100;
}

.calc-help:hover::after,
.calc-help:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-90%, 0);
}

/* CANTITATI PRODUSE */

.calc-quantity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
}

.calc-quantity {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    min-height: 150px;
    padding: 10px;
    border: 1px solid #505050;
    border-radius: 9px;
    background: #292929;
}

.calc-quantity-heading {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-height: 42px;
    color: #fff;
}

.calc-quantity-icon {
    flex: 0 0 auto;
    color: #E60202;
    font-size: 19px;
}

.calc-quantity-title {
    flex: 1;
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
}

.calc-quantity-price {
    display: block;
    min-height: 20px;
    margin: 5px 0 8px;
    color: #E60202;
    font-size: 13px;
}

.calc-quantity-control {
    display: flex;
    width: 100%;
    height: 34px;
    margin-top: auto;
    overflow: hidden;
    border: 1px solid #626262;
    border-radius: 6px;
}

.calc-quantity-control button {
    flex: 0 0 32px;
    height: 34px;
    padding: 0;
    border: 0;
    background: #3c3c3c;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.calc-quantity-control button:hover {
    background: #E60202;
}

.calc-quantity-control input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 34px;
    margin: 0;
    padding: 0 5px;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none;
    background: #fff !important;
    color: #111 !important;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

/* BUTOANE INAPOI / CONTINUA */

.calc-step-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 8px;
    padding-top: 8px;
    padding-bottom: 5px;
    border-top: 1px solid #414141;
    transform: translateY(-5px);
}

.calc-back,
.calc-next,
.calc-finish {
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid #E60202;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.calc-back {
    background: transparent;
    color: #fff;
}

.calc-back:hover:not(:disabled) {
    background: #333;
}

.calc-back:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.calc-next,
.calc-finish {
    background: #E60202;
    color: #fff;
}

.calc-next:hover,
.calc-finish:hover {
    background: #fff;
    color: #E60202;
}

/* POPUP */

.calc-quote-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .25s ease;
}

.calc-quote-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.calc-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(4px);
}

.calc-popup-box {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    padding: 22px;
    border: 1px solid #E60202;
    border-radius: 13px;
    background: #202020;
    color: #fff;
    transform: translateY(12px);
    transition: .25s ease;
}

.calc-quote-popup.is-open .calc-popup-box {
    transform: translateY(0);
}

.calc-popup-close {
    position: absolute;
    top: 11px;
    right: 11px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    min-height: 32px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #383838 !important;
    color: #fff !important;
    font-family: Arial, sans-serif;
    font-size: 21px !important;
    font-weight: 400;
    line-height: 1 !important;
    text-align: center;
    cursor: pointer;
}

.calc-popup-close:hover {
    background: #E60202 !important;
    color: #fff !important;
}

.calc-popup-heading {
    margin-bottom: 13px;
    padding-right: 35px;
}

.calc-popup-heading h2 {
    margin: 0 0 7px;
    color: #fff !important;
}

.calc-popup-heading p {
    margin: 0;
    color: #d0d0d0 !important;
}

.calc-popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #E60202;
    color: #fff;
    font-size: 21px;
}

.calc-quote-text,
.calc-quote-text:focus,
.calc-quote-text:hover {
    width: 100%;
    min-height: 210px;
    max-height: 45vh;
    padding: 13px;
    border: 1px solid #666 !important;
    border-radius: 7px !important;
    outline: none !important;
    background: #151515 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    opacity: 1 !important;
    box-shadow: none !important;
}

.calc-quote-text::placeholder {
    color: #aaa !important;
    -webkit-text-fill-color: #aaa !important;
    opacity: 1;
}

.calc-popup-actions {
    display: flex;
    gap: 9px;
    margin-top: 13px;
}

.calc-copy-quote,
.calc-insert-quote {
    flex: 1;
    min-height: 42px;
    padding: 10px;
    border: 1px solid #E60202;
    border-radius: 7px;
    background: #E60202;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.calc-copy-quote:hover,
.calc-insert-quote:hover {
    background: #fff;
    color: #E60202;
}

.calc-popup-status {
    min-height: 18px;
    margin: 8px 0 0;
    color: #fff;
    font-size: 13px;
}

body.calc-popup-open {
    overflow: hidden;
}

/* TABLETA */

@media (min-width: 768px) and (max-width: 1024px) {
    .calculator-layout {
        height: auto !important;
        max-height: none !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
    }

    .calculator-sidebar {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        flex: 0 0 100% !important;
        width: 100% !important;
        gap: 8px;
    }

    .calculator-sidebar .buton-serviciu-calculator {
        margin: 0 !important;
    }

    .calculator-content {
        flex: 1 1 60% !important;
        width: 60% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .calculator-summary {
        flex: 1 1 30% !important;
        width: 30% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .calc-summary-inner {
        height: auto !important;
        overflow: visible !important;
    }

    .calc-summary-items {
        overflow: visible !important;
    }
}

/* TELEFON */

@media (max-width: 767px) {
    .calculator-layout {
        flex-direction: column !important;
        height: auto !important;
        max-height: none !important;
        gap: 10px !important;
        padding: 8px !important;
        overflow: visible !important;
    }

    .calculator-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex: 0 0 100% !important;
        width: 100% !important;
        gap: 8px;
    }

    .calculator-sidebar .buton-serviciu-calculator {
        margin: 0 !important;
    }

    .calculator-content,
    .calculator-summary {
        flex: 0 0 100% !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 11px !important;
        border-radius: 14px !important;
    }

    .calculator-sidebar .buton-serviciu-calculator .elementor-button {
        min-height: 44px;
        padding: 8px !important;
        font-size: 13px;
    }

    .calc-step {
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 6px 3px;
    }

    .calc-step-label {
        font-size: 10px;
        text-align: center;
    }

    .calc-grid-two,
    .calc-grid-three,
    .calc-addons-grid,
    .calc-special-grid,
    .calc-quantity-grid {
        grid-template-columns: 1fr;
    }

    .calc-addon {
        min-height: 58px;
    }

    .calc-quantity {
        min-height: 130px;
    }

    .calc-quantity-heading {
        min-height: 0;
    }

    .calc-step-controls {
        gap: 8px;
        transform: none;
    }

    .calc-back,
    .calc-next,
    .calc-finish {
        flex: 1;
        padding: 9px;
    }

    .calc-summary-inner {
        height: auto !important;
        overflow: visible !important;
    }

    .calc-summary-items {
        overflow: visible !important;
    }

    .calc-popup-box {
        padding: 18px 14px;
        max-height: 92vh;
    }

    .calc-popup-actions {
        flex-direction: column;
    }
}


/* =====================================================
   REZUMAT - TOTALURI SEPARATE
===================================================== */

.calc-summary-group {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.calc-summary-group-heading {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 10px;
}

.calc-summary-group-heading strong {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.calc-summary-group-heading span {
    color: #999;
    font-size: 12px;
}

.calc-summary-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
}

.calc-summary-subtotal span {
    color: #aaa;
    font-size: 13px;
}

.calc-summary-subtotal strong {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.calc-summary-quote strong {
    color: #E60202;
    font-size: 12px;
}

.calc-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.calc-summary-total span {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.calc-summary-total strong {
    color: #E60202;
    font-size: 23px;
    font-weight: 700;
}

/* Rezumat adaptat pentru ecrane mici */

@media (max-width: 767px) {

    .calc-summary-group {
        padding: 10px 0;
    }

    .calc-summary-total {
        padding: 14px 0;
    }

    .calc-summary-total strong {
        font-size: 20px;
    }

}


/* =====================================================
   REZUMAT - SCROLL INTERN ȘI TOTALURI
===================================================== */

.calculator-summary {
    min-height: 0;
    overflow: hidden;
}

.calculator-summary .calc-summary-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.calculator-summary .calc-summary-heading {
    flex: 0 0 auto;
    padding-bottom: 12px;
}

.calculator-summary .calc-summary-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #E60202 #292929;
}

.calculator-summary .calc-summary-scroll::-webkit-scrollbar {
    width: 5px;
}

.calculator-summary .calc-summary-scroll::-webkit-scrollbar-track {
    background: #292929;
    border-radius: 10px;
}

.calculator-summary .calc-summary-scroll::-webkit-scrollbar-thumb {
    background: #E60202;
    border-radius: 10px;
}

.calculator-summary .calc-summary-group {
    padding: 12px 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.calculator-summary .calc-summary-group-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.calculator-summary .calc-summary-group-heading strong {
    color: #fff;
    font-size: 15px;
}

.calculator-summary .calc-summary-group-heading span {
    color: #999;
    font-size: 12px;
}

/* Anulează scrollul separat al listelor vechi */

.calculator-summary .calc-summary-items {
    overflow: visible;
    max-height: none;
    flex: none;
}

/* Subtotaluri roșii */

.calculator-summary .calc-summary-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 0 4px;
}

.calculator-summary .calc-summary-subtotal span {
    color: #E60202;
    font-size: 14px;
    font-weight: 600;
}

.calculator-summary .calc-summary-subtotal strong {
    color: #E60202;
    font-size: 18px;
    font-weight: 700;
}

/* Zona fixă de jos */

.calculator-summary .calc-summary-footer {
    flex: 0 0 auto;
    padding-top: 12px;
    background: #1b1b1d;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.calculator-summary .calc-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0 12px;
    margin: 0;
    border: 0;
}

.calculator-summary .calc-summary-total span {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.calculator-summary .calc-summary-total strong {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

/* =====================================================
   MODAL CERERE OFERTĂ
===================================================== */

.calc-quote-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.calc-quote-popup.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .75);
}

.calc-popup-box {
    position: relative;
    z-index: 1;
    width: min(650px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
}

body.calc-popup-open {
    overflow: hidden;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1024px) {

    .calculator-summary .calc-summary-inner {
        height: auto;
        max-height: 650px;
    }

    .calculator-summary .calc-summary-scroll {
        max-height: 360px;
    }
}

@media (max-width: 767px) {

    .calculator-summary .calc-summary-inner {
        max-height: 600px;
    }

    .calculator-summary .calc-summary-scroll {
        max-height: 300px;
    }

    .calculator-summary .calc-summary-total strong {
        font-size: 20px;
    }

    .calculator-summary .calc-summary-subtotal strong {
        font-size: 16px;
    }
}