.galo-calc {
    --galo-font-body: Urbanist, Arial, sans-serif;
    --galo-font-heading: Akshar, Urbanist, Arial, sans-serif;
    margin: 40px 0;
    color: #10223f;
    font-family: var(--galo-font-body);
}

.galo-calc * {
    box-sizing: border-box;
}

.galo-calc [hidden] {
    display: none !important;
}

.galo-calc__shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px;
    background: #f4f8fc;
    border: 1px solid #d9e6f2;
    border-radius: 8px;
}

.galo-calc__header {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
}

.galo-calc__eyebrow {
    width: max-content;
    padding: 5px 10px;
    color: #003f9e;
    background: #dff23a;
    border-radius: 4px;
    font-size: 12px;
    font-family: var(--galo-font-body);
    font-weight: 800;
    letter-spacing: 0;
}

.galo-calc h2 {
    margin: 0;
    color: #002b72;
    font-family: var(--galo-font-heading);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
}

.galo-calc p {
    max-width: 720px;
    margin: 0;
    color: #43536b;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.galo-calc__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 20px;
    align-items: start;
}

.galo-calc--product .galo-calc__shell {
    max-width: 960px;
}

.galo-calc--product .galo-calc__grid {
    grid-template-columns: 1fr;
    gap: 22px;
}

.galo-calc--product .galo-calc__form {
    grid-template-columns: 1fr;
}

.galo-calc--product .galo-calc__field:first-child,
.galo-calc--product .galo-calc__mode,
.galo-calc--product .galo-calc__button {
    grid-column: 1 / -1;
}

.galo-calc--product .galo-calc__result {
    min-height: 0;
}

.galo-calc__form,
.galo-calc__result,
.galo-calc__quote {
    min-width: 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dce8f4;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 46, 111, 0.08);
}

.galo-calc__form {
    display: grid;
    gap: 16px;
}

.galo-calc__field {
    display: grid;
    gap: 8px;
    margin: 0;
    font-weight: 700;
}

.galo-calc__field span,
.galo-calc__field > label,
.galo-calc__mode legend {
    color: #01265f;
    font-family: var(--galo-font-heading);
    font-size: 14px;
    font-weight: 600;
}

.galo-calc__field select,
.galo-calc__field input[type="number"] {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    color: #10223f;
    -webkit-text-fill-color: #10223f;
    background: #ffffff;
    border: 1px solid #718096;
    border-radius: 6px;
    font-family: var(--galo-font-body);
    font-size: 16px;
    font-weight: 600;
}

.galo-calc__field select::placeholder,
.galo-calc__field input[type="number"]::placeholder {
    color: #52647d;
    -webkit-text-fill-color: #52647d;
    font-style: italic;
    font-weight: 500;
    opacity: 1;
}

.galo-calc__field select {
    color: #10223f !important;
    -webkit-text-fill-color: #10223f !important;
    border-radius: 6px !important;
    padding-right: 36px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%2310223f' stroke-width='2' d='m5 7 5 5 5-5'/%3E%3C/svg%3E");
    background-size: 18px;
    background-position: right 12px center;
    background-repeat: no-repeat;
}

.galo-calc .galo-calc__field input[type="number"] {
    color: #10223f !important;
    -webkit-text-fill-color: #10223f !important;
    font-style: normal;
    font-weight: 600;
}

.galo-calc__field input[type="number"]::-webkit-outer-spin-button,
.galo-calc__field input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.galo-calc__field input[type="number"] {
    appearance: textfield;
}

.galo-calc__field select {
    overflow: hidden;
    text-overflow: ellipsis;
}

.galo-calc__product-preview {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 104px;
    padding: 10px;
    background: #f7fbff;
    border: 1px solid #d8e7f5;
    border-radius: 8px;
}

.galo-calc__product-preview img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #e3edf7;
    border-radius: 6px;
}

.galo-calc__product-preview strong {
    min-width: 0;
    color: #002b72;
    font-family: var(--galo-font-heading);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.galo-calc__field select:focus,
.galo-calc__field input[type="number"]:focus {
    outline: 3px solid rgba(0, 125, 196, 0.18);
    border-color: #008bd2;
}

.galo-calc__dimensions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.galo-calc__input {
    position: relative;
}

.galo-calc__input--stepper {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
}

.galo-calc__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #ffffff;
    background: #07111f;
    border: 0;
    border-radius: 50%;
    font-family: var(--galo-font-body);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
}

.galo-calc__step:hover,
.galo-calc__step:focus-visible {
    background: #0066ba;
}

.galo-calc__step:focus-visible {
    outline: 3px solid rgba(0, 125, 196, 0.25);
    outline-offset: 2px;
}

.galo-calc__input em {
    position: absolute;
    top: 50%;
    right: 58px;
    transform: translateY(-50%);
    color: #5d6b7f;
    font-style: normal;
    font-weight: 800;
    pointer-events: none;
}

.galo-calc__input input {
    padding-right: 54px;
    text-align: center;
}

.galo-calc__mode {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.galo-calc__mode legend {
    width: 100%;
    margin-bottom: 2px;
    font-weight: 800;
}

.galo-calc__mode label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    background: #eef5fb;
    border: 1px solid #d3e2f1;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--galo-font-body);
    font-weight: 700;
}

.galo-calc__range {
    width: 100%;
    accent-color: #0066ba;
}

.galo-calc__button,
.galo-calc__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    color: #ffffff;
    background: #0066ba;
    border: 0;
    border-radius: 6px;
    font-family: var(--galo-font-heading);
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.galo-calc__whatsapp {
    margin-top: 10px;
}

.galo-calc__add + .galo-calc__whatsapp {
    margin-top: 0;
}

.galo-calc__add-status + .galo-calc__whatsapp {
    margin-top: 14px;
}

.galo-calc__button:hover,
.galo-calc__whatsapp:hover {
    color: #ffffff;
    background: #003f9e;
}

.galo-calc__add {
    width: 100%;
    margin-bottom: 10px;
    color: #002b72;
    background: #dff23a;
}

.galo-calc__add:hover {
    color: #ffffff;
    background: #003f9e;
}

.galo-calc__add.is-added,
.galo-calc__add.is-added:hover {
    color: #ffffff;
    background: #116b2c;
    cursor: default;
}

.galo-calc__add-status {
    max-width: none;
    margin: -2px 0 12px;
    padding: 11px 12px;
    color: #174126;
    background: #eef9ed;
    border: 1px solid #b8e5bf;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.galo-calc__result {
    min-height: 360px;
}

.galo-calc__quote {
    grid-column: 1 / -1;
    display: grid;
    gap: 16px;
    min-height: 0;
}

.galo-calc__quote-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.galo-calc__quote h3 {
    margin: 8px 0 0;
    color: #002b72;
    font-family: var(--galo-font-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.galo-calc__quote-clear {
    min-height: 40px;
    padding: 0 14px;
    color: #002b72;
    background: #eef5fb;
    border: 1px solid #cbd9e8;
    border-radius: 6px;
    font-family: var(--galo-font-heading);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.galo-calc__quote-clear:hover {
    background: #dcecf8;
}

.galo-calc__quote-list {
    display: grid;
    gap: 12px;
}

.galo-calc__quote-empty {
    max-width: none;
    padding: 14px;
    background: #f7fbff;
    border: 1px dashed #b8cbe0;
    border-radius: 8px;
}

.galo-calc__quote-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px;
    background: #f7fbff;
    border: 1px solid #d8e7f5;
    border-radius: 8px;
}

.galo-calc__quote-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.galo-calc__quote-info {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.galo-calc__quote-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #d8e7f5;
    border-radius: 6px;
}

.galo-calc__quote-thumb--empty {
    display: block;
    background: #edf4fb;
}

.galo-calc__quote-main strong {
    color: #002b72;
    font-family: var(--galo-font-heading);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

.galo-calc__quote-main small {
    color: #315f92;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.galo-calc__quote-main span {
    color: #506179;
    font-size: 14px;
    line-height: 1.45;
}

.galo-calc__quote-actions {
    display: grid;
    grid-template-columns: 38px 58px 38px;
    gap: 7px;
    align-items: center;
}

.galo-calc__quote-step,
.galo-calc__quote-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0;
    color: #ffffff;
    background: #07111f;
    border: 0;
    border-radius: 50%;
    font-family: var(--galo-font-body);
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}

.galo-calc__quote-step:hover,
.galo-calc__quote-remove:hover {
    background: #0066ba;
}

.galo-calc__quote-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    color: #07111f;
    background: #ffffff;
    border: 1px solid #cbd9e8;
    border-radius: 6px;
    font-family: var(--galo-font-body);
    font-weight: 900;
}

.galo-calc__quote-remove {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: 6px;
    font-size: 14px;
}

.galo-calc__quote-send.is-disabled {
    pointer-events: none;
    opacity: 0.5;
}

.galo-calc__status,
.galo-calc__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.galo-calc a[aria-disabled="true"] {
    pointer-events: none;
    opacity: .65;
}

.galo-calc :is(button, a, input, select):focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
}

.galo-calc input[aria-invalid="true"] {
    border: 2px solid #a31515;
}

.galo-calc__button:disabled {
    cursor: not-allowed;
    background: #e4e9ef;
    color: #273f60;
}

@media (forced-colors: active) {
    .galo-calc :is(input, select, button, a) { border: 1px solid ButtonText; }
}

.galo-calc__placeholder {
    display: grid;
    place-items: center;
    min-height: 300px;
    gap: 8px;
    text-align: center;
    color: #546277;
}

.galo-calc__placeholder strong {
    color: #002b72;
    font-family: var(--galo-font-heading);
    font-size: 20px;
    font-weight: 600;
}

.galo-calc__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.galo-calc__card {
    padding: 14px;
    background: #f7fbff;
    border: 1px solid #d8e7f5;
    border-radius: 8px;
}

.galo-calc__card span {
    display: block;
    margin-bottom: 6px;
    color: #52647d;
    font-size: 13px;
    font-weight: 700;
}

.galo-calc__card strong {
    display: block;
    color: #002b72;
    font-family: var(--galo-font-heading);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.galo-calc__summary {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.galo-calc__summary li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #e3edf7;
}

.galo-calc__summary span {
    color: #5a6880;
}

.galo-calc__summary strong {
    color: #122747;
    font-family: var(--galo-font-body);
    font-weight: 700;
    text-align: right;
}

.galo-calc .galo-calc__note {
    margin: 0 0 16px;
    padding: 12px;
    color: #273f60;
    background: #eef7df;
    border-left: 4px solid #c7e812;
    border-radius: 6px;
    font-size: 14px;
}

.galo-calc__error {
    padding: 14px;
    color: #771a1a;
    background: #fff1f1;
    border: 1px solid #ffd0d0;
    border-radius: 8px;
    font-family: var(--galo-font-body);
    font-weight: 700;
}

@media (max-width: 860px) {
    /* GALO/Monpicko: the floating scroll-up widget overlaps numeric controls.
       Only suppress it on the full calculator, never on product calculators. */
    body:has(.galo-calc:not(.galo-calc--product)) .scrollup {
        display: none !important;
    }

    .galo-calc__shell {
        padding: 18px;
    }

    .galo-calc__grid,
    .galo-calc__dimensions,
    .galo-calc__cards,
    .galo-calc--product .galo-calc__form {
        grid-template-columns: 1fr;
    }

    .galo-calc h2 {
        font-size: 28px;
    }

    .galo-calc__product-preview {
        grid-template-columns: 70px minmax(0, 1fr);
        min-height: 88px;
    }

    .galo-calc__product-preview img {
        width: 70px;
        height: 70px;
    }

    .galo-calc__quote-item {
        grid-template-columns: 1fr;
    }

    .galo-calc__quote-info {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .galo-calc__quote-thumb {
        width: 56px;
        height: 56px;
    }

    .galo-calc__quote-actions {
        grid-template-columns: 44px minmax(70px, 1fr) 44px;
    }
}
