.prco-calc,
.prco-calc *,
.prco-calc *::before,
.prco-calc *::after {
    box-sizing: border-box;
}

.prco-calc,
.prco-calc * {
    font-family: "Montserrat", sans-serif !important;
}

.prco-calc {
    --prco-yellow: #FFB600;
    --prco-yellow-soft: #fff8df;
    --prco-dark: #22304F;
    --prco-fill: #495883;
    --prco-text: #22304F;
    --prco-muted: #6d7882;
    --prco-border: #e2e7eb;
    --prco-bg: #F7F9FC;
    --prco-white: #ffffff;

    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--prco-border);
    border-radius: 20px;
    background: var(--prco-white);
    color: var(--prco-text);
    font-family: "Montserrat", sans-serif !important;
    box-shadow: 0 18px 55px rgba(21, 40, 58, 0.08);
}

.prco-calc button,
.prco-calc input,
.prco-calc select {
    font-family: "Montserrat", sans-serif !important;
}

.prco-calc__header {
    display: block;
    padding: 34px 38px;
    border-bottom: 1px solid var(--prco-border);
    background: var(--prco-white);
}

.prco-calc__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px;
    color: var(--prco-dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prco-calc__eyebrow::before {
    content: "";
    width: 25px;
    height: 3px;
    border-radius: 20px;
    background: var(--prco-yellow);
}

.prco-calc__title {
    margin: 0;
    color: var(--prco-dark);
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.prco-calc__description {
    max-width: 720px;
    margin: 13px 0 0;
    color: var(--prco-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.prco-calc__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 410px);
    min-height: 420px;
}

.prco-calc__fields {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 24px;
    padding: 38px;
}

.prco-calc__field {
    display: block;
    width: 100%;
    max-width: 680px;
    margin: 0;
}

.prco-calc__label {
    display: block;
    margin-bottom: 10px;
    color: var(--prco-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.prco-calc__label small {
    display: block;
    margin-top: 3px;
    color: var(--prco-muted);
    font-size: 12px;
    font-weight: 450;
}

.prco-calc__select-wrap {
    position: relative;
    display: block;
}

.prco-calc__control {
    width: 100%;
    min-width: 0;
    height: 54px;
    margin: 0;
    border: 1px solid var(--prco-border) !important;
    border-radius: 10px !important;
    outline: 0;
    background: var(--prco-white) !important;
    color: var(--prco-dark) !important;
    font-size: 15px !important;
    font-weight: 550 !important;
    line-height: 1.3;
    box-shadow: none !important;
}

.prco-calc__select {
    padding: 0 50px 0 16px !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.prco-calc__select-wrap svg {
    position: absolute;
    top: 50%;
    right: 17px;
    width: 20px;
    height: 20px;
    pointer-events: none;
    fill: none;
    stroke: var(--prco-dark);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateY(-50%);
}

.prco-calc__control:focus {
    border-color: var(--prco-yellow) !important;
    box-shadow: 0 0 0 3px rgba(255, 182, 0, 0.14) !important;
}

.prco-calc__quantity-row {
    display: block;
}

.prco-calc__stepper {
    display: grid;
    width: min(100%, 360px);
    grid-template-columns: 52px minmax(70px, 1fr) 52px;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid var(--prco-border);
    border-radius: 10px;
    background: var(--prco-white);
}

.prco-calc__stepper button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 52px;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--prco-bg) !important;
    color: var(--prco-dark) !important;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    text-shadow: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

.prco-calc__stepper button:hover,
.prco-calc__stepper button:focus,
.prco-calc__stepper button:active {
    background: var(--prco-yellow-soft) !important;
    color: var(--prco-dark) !important;
}

.prco-calc__quantity {
    height: 52px;
    padding: 0 8px !important;
    border: 0 !important;
    border-right: 1px solid var(--prco-border) !important;
    border-left: 1px solid var(--prco-border) !important;
    border-radius: 0 !important;
    text-align: center;
    appearance: textfield;
}

.prco-calc__quantity::-webkit-outer-spin-button,
.prco-calc__quantity::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.prco-calc__result {
    display: flex;
    flex-direction: column;
    padding: 38px 34px;
    background: var(--prco-fill);
    color: var(--prco-white);
}

.prco-calc__result-label {
    color: rgba(255, 255, 255, 0.63);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.prco-calc__total {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 9px;
    margin-top: 11px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.prco-calc__total strong {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--prco-white);
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 750;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.prco-calc__total span {
    padding-bottom: 5px;
    color: var(--prco-yellow);
    font-size: 14px;
    font-weight: 750;
}

.prco-calc__result-hint {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
}

.prco-calc__order {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    margin-top: auto;
    padding: 14px 20px;
    border: 1px solid var(--prco-yellow) !important;
    border-radius: 9px !important;
    outline: 0;
    background: var(--prco-yellow) !important;
    color: var(--prco-dark) !important;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.prco-calc__order::before,
.prco-calc__order::after {
    content: none !important;
    display: none !important;
}

.prco-calc__order:hover,
.prco-calc__order:focus,
.prco-calc__order:active {
    border-color: var(--prco-yellow) !important;
    background: var(--prco-white) !important;
    color: var(--prco-dark) !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.prco-calc__order:focus-visible {
    outline: 3px solid rgba(255, 182, 0, 0.35);
    outline-offset: 3px;
}

.prco-calc__order svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.prco-calc__note {
    margin: 13px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 450;
    line-height: 1.5;
}

.prco-calc-admin-message {
    padding: 15px;
    border-left: 4px solid #FFB600;
    background: #FFF6D8;
    color: #15283a;
    font-family: "Montserrat", sans-serif;
}

@media (max-width: 900px) {
    .prco-calc__field {
        max-width: none;
    }

    .prco-calc__header {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .prco-calc__body {
        grid-template-columns: 1fr;
    }

    .prco-calc__result {
        min-height: 300px;
    }
}

@media (max-width: 767px) {
    .prco-calc {
        border-radius: 14px;
    }

    .prco-calc__header,
    .prco-calc__fields,
    .prco-calc__result {
        padding: 24px 19px;
    }

    .prco-calc__header {
        gap: 20px;
    }

    .prco-calc__title {
        overflow-wrap: anywhere;
        font-size: clamp(24px, 7vw, 32px);
    }

    .prco-calc__total strong {
        font-size: clamp(32px, 10vw, 40px);
    }

    .prco-calc__description {
        font-size: 14px;
        line-height: 1.55;
    }

    .prco-calc__fields {
        gap: 21px;
    }

    .prco-calc__result {
        min-height: 250px;
    }

    .prco-calc__stepper {
        width: 100%;
        max-width: 360px;
    }
}

