.bood-bags-calculator-wrapper,
.bood-bags-calculator-wrapper * {
    box-sizing: border-box;
}

.bood-bags-calculator-wrapper {
    --bood-primary: #111827;
    --bood-accent: #f15a24;
    --bood-soft: #fff7f1;
    --bood-border: #e8e1dc;
    --bood-muted: #6b7280;
    --bood-bg: #fffaf6;
    direction: rtl;
    text-align: right;
    margin: 22px 0;
    padding: 18px;
    border: 1px solid var(--bood-border);
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff 0%, var(--bood-bg) 100%);
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
    font-family: inherit;
}

.bood-calc-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: radial-gradient(circle at top right, #ffe3d1 0, #fff 48%, #fff7f1 100%);
    border: 1px solid #ffe0cd;
}

.bood-calc-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.bood-calc-hero h3 {
    margin: 0 0 6px;
    color: var(--bood-primary);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.bood-calc-hero p {
    margin: 0;
    color: var(--bood-muted);
    font-size: 14px;
    line-height: 1.7;
}

.bood-calc-badge {
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: var(--bood-accent);
    color: #fff;
    box-shadow: 0 12px 22px rgba(241, 90, 36, 0.24);
}

.bood-calc-badge strong {
    font-size: 28px;
    line-height: 1;
}

.bood-calc-badge span {
    font-size: 12px;
    margin-top: 4px;
}

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

.bood-calc-card {
    padding: 16px;
    border: 1px solid var(--bood-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
}

.bood-calc-card-wide {
    grid-column: 1 / -1;
}

.bood-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    color: var(--bood-primary);
    font-weight: 800;
    font-size: 16px;
}

.bood-card-title > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bood-primary);
    color: #fff;
    font-size: 13px;
}

.bood-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
    padding: 5px;
    border-radius: 15px;
    background: #f4f4f5;
}

.bood-segment-soft {
    background: #fff0e7;
}

.bood-segment label {
    margin: 0;
    cursor: pointer;
}

.bood-segment input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bood-segment label > span {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 9px 10px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
    transition: 0.18s ease;
}

.bood-segment label.is-active > span {
    background: #fff;
    color: var(--bood-accent);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.bood-field {
    margin-bottom: 12px;
}

.bood-field label,
.bood-qty-box label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.bood-field small,
.bood-qty-hint {
    display: block;
    margin-top: 7px;
    color: var(--bood-muted);
    font-size: 12px;
    line-height: 1.5;
}

.bood-field input[type="number"],
.bood-field input[type="file"],
.bood-field select,
#bood_display_qty {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #ded7d2;
    border-radius: 13px;
    background: #fff;
    color: var(--bood-primary);
    box-shadow: none;
    outline: none;
    font-size: 14px;
    transition: 0.18s ease;
}

.bood-field input:focus,
.bood-field select:focus,
#bood_display_qty:focus {
    border-color: var(--bood-accent);
    box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.12);
}

.bood-custom-box {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    margin-top: 10px;
    border-radius: 16px;
    border: 1px dashed #f0b08d;
    background: #fffaf7;
}

.bood-custom-box .bood-field {
    margin-bottom: 0;
}

.bood-print-colors {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.bood-print-colors strong {
    display: block;
    margin-bottom: 8px;
    color: var(--bood-primary);
}

.bood-print-color-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.bood-print-color-fields .bood-field {
    margin-bottom: 0;
}

.bood-print-colors small {
    display: block;
    margin-top: 8px;
    color: var(--bood-muted);
    font-size: 12px;
}

.bood-notice-box {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 15px;
    background: var(--bood-soft);
    border: 1px solid #ffe0cd;
}

.bood-notice-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--bood-primary);
}

.bood-notice-box label {
    display: block;
    margin: 7px 0;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
}

.bood-qty-box {
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: #fff7f1;
    border: 1px solid #ffe0cd;
}

.bood-qty-control {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    gap: 8px;
    align-items: center;
}

.bood-qty-btn {
    width: 50px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--bood-primary);
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: 0.18s ease;
}

.bood-qty-btn:hover {
    transform: translateY(-1px);
    background: var(--bood-accent);
}

#bood_display_qty {
    text-align: center;
    font-weight: 900;
    font-size: 18px;
    direction: ltr;
}

.bood-price-panel {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #fde1d3;
    background: #fff;
}

.bood-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f1e8e2;
    color: #374151;
}

.bood-price-row:last-child {
    border-bottom: 0;
}

.bood-price-row strong {
    color: var(--bood-primary);
    font-size: 17px;
    white-space: nowrap;
}

.bood-price-row-total {
    background: var(--bood-primary);
    color: #fff;
}

.bood-price-row-total strong {
    color: #fff;
    font-size: 22px;
}

.bood-price-row-muted {
    font-size: 13px;
    color: var(--bood-muted);
}

.bood-original-quantity-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    opacity: 0 !important;
}

@media (max-width: 768px) {
    .bood-bags-calculator-wrapper {
        padding: 12px;
        border-radius: 18px;
    }

    .bood-calc-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .bood-calc-badge {
        width: 100%;
        height: auto;
        min-height: 68px;
        border-radius: 18px;
        flex-direction: row;
        gap: 8px;
    }

    .bood-calc-grid,
    .bood-custom-box,
    .bood-print-color-fields {
        grid-template-columns: 1fr;
    }

    .bood-segment {
        grid-template-columns: 1fr;
    }

    .bood-price-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.bood-custom-add-to-cart {
    width: 100%;
    min-height: 52px;
    margin-top: 14px;
    border: 0;
    border-radius: 16px;
    background: var(--bood-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(241, 90, 36, 0.22);
    transition: 0.18s ease;
}

.bood-custom-add-to-cart:hover {
    transform: translateY(-1px);
    background: #111827;
}

.bood-order-note {
    margin-top: 9px;
    padding: 9px 11px;
    border-radius: 13px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: var(--bood-muted);
    font-size: 12px;
    line-height: 1.6;
}

.bood-calc-badge strong {
    font-size: 20px;
    text-align: center;
}

/* v1.4 bilingual Arabic/English interface */
.bood-bi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    direction: ltr;
}

.bood-bi .bood-en {
    order: 1;
    direction: ltr;
    text-align: left;
    font-family: inherit;
}

.bood-bi .bood-ar {
    order: 2;
    direction: rtl;
    text-align: right;
    font-family: inherit;
}

.bood-calc-hero h3 .bood-bi,
.bood-calc-hero p .bood-bi,
.bood-order-note .bood-bi,
.bood-qty-hint .bood-bi,
.bood-field small .bood-bi,
.bood-print-colors small .bood-bi {
    align-items: flex-start;
}

.bood-calc-hero h3 .bood-en,
.bood-calc-hero h3 .bood-ar {
    flex: 1;
}

.bood-calc-hero p .bood-en,
.bood-calc-hero p .bood-ar,
.bood-order-note .bood-en,
.bood-order-note .bood-ar,
.bood-qty-hint .bood-en,
.bood-qty-hint .bood-ar,
.bood-field small .bood-en,
.bood-field small .bood-ar,
.bood-print-colors small .bood-en,
.bood-print-colors small .bood-ar {
    flex: 1;
}

.bood-card-title {
    justify-content: space-between;
}

.bood-card-title > .bood-bi {
    flex: 1;
}

.bood-field label .bood-en,
.bood-field label .bood-ar,
.bood-qty-box label .bood-en,
.bood-qty-box label .bood-ar,
.bood-notice-box label .bood-en,
.bood-notice-box label .bood-ar {
    font-size: 13px;
}

.bood-segment label > span .bood-bi {
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.bood-segment label > span .bood-en,
.bood-segment label > span .bood-ar {
    width: 100%;
    text-align: center;
}

.bood-segment label > span .bood-en {
    font-size: 12px;
    color: #6b7280;
}

.bood-segment label.is-active > span .bood-en {
    color: #9a3412;
}

.bood-price-row > span {
    flex: 1;
}

.bood-custom-add-to-cart .bood-bi {
    justify-content: center;
    gap: 18px;
}

.bood-custom-add-to-cart .bood-en,
.bood-custom-add-to-cart .bood-ar {
    flex: 0 1 auto;
}

.bood-field select,
.bood-field input[type="file"] {
    direction: ltr;
    text-align: left;
}

@media (max-width: 768px) {
    .bood-bi {
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .bood-bi .bood-en,
    .bood-bi .bood-ar {
        width: 100%;
    }

    .bood-custom-add-to-cart .bood-bi {
        gap: 4px;
    }
}


/* v1.6 mobile-first bilingual alignment fix */
.bood-bi {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
    row-gap: 0;
    width: 100%;
    direction: ltr;
}

.bood-bi .bood-en,
.bood-bi .bood-ar {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.45;
}

.bood-bi .bood-en {
    grid-column: 1;
    text-align: left !important;
    direction: ltr;
}

.bood-bi .bood-ar {
    grid-column: 2;
    text-align: right !important;
    direction: rtl;
}

.bood-card-title {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.bood-card-title > span:first-child {
    margin-top: 1px;
}

.bood-card-title > .bood-bi {
    width: 100%;
}

.bood-field label,
.bood-qty-box label,
.bood-print-colors strong,
.bood-notice-box strong,
.bood-price-row > span,
.bood-qty-hint,
.bood-order-note,
.bood-field small,
.bood-print-colors small {
    width: 100%;
}

.bood-field label .bood-bi,
.bood-qty-box label .bood-bi,
.bood-print-colors strong .bood-bi,
.bood-notice-box strong .bood-bi,
.bood-price-row > span .bood-bi,
.bood-qty-hint .bood-bi,
.bood-order-note .bood-bi,
.bood-field small .bood-bi,
.bood-print-colors small .bood-bi {
    align-items: start;
}

.bood-segment label > span {
    min-height: 54px;
    padding: 8px;
}

.bood-segment label > span .bood-bi {
    grid-template-columns: 1fr 1fr;
    column-gap: 6px;
    align-items: center;
}

.bood-segment label > span .bood-en,
.bood-segment label > span .bood-ar {
    width: auto;
    font-size: 12px;
    line-height: 1.25;
}

.bood-custom-add-to-cart .bood-bi {
    max-width: 640px;
    margin: 0 auto;
    column-gap: 12px;
    align-items: center;
}

.bood-calc-badge {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    text-align: center;
}

.bood-calc-badge strong {
    text-align: left;
}

.bood-calc-badge span {
    text-align: right;
    direction: rtl;
}

@media (max-width: 768px) {
    .bood-bags-calculator-wrapper {
        padding: 10px;
    }

    .bood-calc-card {
        padding: 13px;
    }

    .bood-bi {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        column-gap: 8px;
        flex-direction: initial !important;
        align-items: start !important;
    }

    .bood-bi .bood-en,
    .bood-bi .bood-ar {
        width: auto !important;
        font-size: 12px;
        line-height: 1.35;
    }

    .bood-calc-hero h3 .bood-en,
    .bood-calc-hero h3 .bood-ar {
        font-size: 18px;
        line-height: 1.25;
    }

    .bood-calc-hero p .bood-en,
    .bood-calc-hero p .bood-ar {
        font-size: 12px;
        line-height: 1.45;
    }

    .bood-card-title {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 8px;
        font-size: 14px;
    }

    .bood-card-title > span:first-child {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .bood-field label .bood-en,
    .bood-field label .bood-ar,
    .bood-qty-box label .bood-en,
    .bood-qty-box label .bood-ar,
    .bood-notice-box label .bood-en,
    .bood-notice-box label .bood-ar {
        font-size: 12px;
    }

    .bood-field input[type="number"],
    .bood-field input[type="file"],
    .bood-field select,
    #bood_display_qty {
        min-height: 44px;
        font-size: 13px;
        padding: 9px 10px;
    }

    .bood-segment {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 4px;
    }

    .bood-segment label > span {
        min-height: 58px;
        padding: 7px 6px;
    }

    .bood-segment label > span .bood-bi {
        grid-template-columns: 1fr;
        row-gap: 2px;
    }

    .bood-segment label > span .bood-en,
    .bood-segment label > span .bood-ar {
        grid-column: 1;
        text-align: center !important;
        font-size: 11px;
        line-height: 1.2;
    }

    .bood-price-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        flex-direction: initial !important;
    }

    .bood-price-row strong {
        font-size: 14px;
        text-align: left;
        direction: rtl;
    }

    .bood-price-row-total strong {
        font-size: 18px;
    }

    .bood-custom-add-to-cart {
        min-height: 56px;
        font-size: 14px;
        padding: 10px;
    }

    .bood-custom-add-to-cart .bood-bi {
        grid-template-columns: 1fr 1fr !important;
        column-gap: 8px;
    }

    .bood-qty-control {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
    }

    .bood-qty-btn {
        width: 46px;
        height: 44px;
    }
}

@media (max-width: 390px) {
    .bood-bi .bood-en,
    .bood-bi .bood-ar {
        font-size: 11px;
    }

    .bood-calc-hero h3 .bood-en,
    .bood-calc-hero h3 .bood-ar {
        font-size: 16px;
    }

    .bood-field select {
        font-size: 12px;
    }
}


/* v1.7 hard mobile cleanup: stop bilingual nested spans from becoming pills */
.bood-bags-calculator-wrapper .bood-card-title .bood-bi span,
.bood-bags-calculator-wrapper .bood-segment .bood-bi span,
.bood-bags-calculator-wrapper .bood-custom-add-to-cart .bood-bi span,
.bood-bags-calculator-wrapper .bood-price-row .bood-bi span {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.bood-bags-calculator-wrapper .bood-card-title {
    overflow: hidden;
    border-radius: 999px;
    background: var(--bood-primary);
    color: #fff;
    padding: 9px 12px;
}

.bood-bags-calculator-wrapper .bood-card-title > span:first-child {
    order: 2;
    background: #fff !important;
    color: var(--bood-primary) !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.bood-bags-calculator-wrapper .bood-card-title > .bood-bi {
    order: 1;
    color: #fff;
}

.bood-bags-calculator-wrapper .bood-segment label > span {
    position: relative;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.bood-bags-calculator-wrapper .bood-segment label.is-active > span {
    background: #fff !important;
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.08) !important;
}

.bood-bags-calculator-wrapper .bood-segment label.is-active > span .bood-ar,
.bood-bags-calculator-wrapper .bood-segment label.is-active > span .bood-en {
    color: var(--bood-accent) !important;
    font-weight: 800;
}

.bood-bags-calculator-wrapper .bood-calc-badge {
    direction: ltr !important;
}

.bood-bags-calculator-wrapper .bood-calc-badge strong {
    grid-column: 1;
    text-align: left !important;
}

.bood-bags-calculator-wrapper .bood-calc-badge span {
    grid-column: 2;
    text-align: right !important;
    direction: rtl !important;
}

@media (max-width: 768px) {
    .bood-bags-calculator-wrapper {
        max-width: 100%;
        overflow: hidden;
    }

    .bood-bags-calculator-wrapper .bood-calc-hero {
        padding: 14px;
    }

    .bood-bags-calculator-wrapper .bood-card-title {
        grid-template-columns: minmax(0, 1fr) 26px;
        padding: 8px 10px;
        margin-bottom: 14px;
    }

    .bood-bags-calculator-wrapper .bood-segment {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .bood-bags-calculator-wrapper .bood-segment label > span {
        min-height: 64px;
        padding: 8px 6px !important;
        border-radius: 14px;
    }

    .bood-bags-calculator-wrapper .bood-segment label > span .bood-bi {
        display: grid !important;
        grid-template-columns: 1fr !important;
        row-gap: 4px;
        align-items: center;
    }

    .bood-bags-calculator-wrapper .bood-segment label > span .bood-en,
    .bood-bags-calculator-wrapper .bood-segment label > span .bood-ar {
        grid-column: 1 !important;
        text-align: center !important;
        width: 100% !important;
        font-size: 12px;
        line-height: 1.2;
    }

    .bood-bags-calculator-wrapper .bood-field label .bood-bi,
    .bood-bags-calculator-wrapper .bood-qty-box label .bood-bi,
    .bood-bags-calculator-wrapper .bood-price-row > span .bood-bi {
        grid-template-columns: 1fr 1fr !important;
        column-gap: 8px;
    }

    .bood-bags-calculator-wrapper .bood-calc-badge {
        grid-template-columns: 1fr 1fr !important;
        padding: 0 18px;
    }
}


.bood-smart-helper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 13px;
    background: #fff7f1;
    border: 1px solid #ffe0cd;
    color: var(--bood-muted);
    font-size: 12px;
    line-height: 1.55;
}

.bood-smart-helper .bood-bi {
    flex: 1 1 220px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.bood-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--bood-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .bood-smart-helper {
        padding: 9px 10px;
        gap: 6px;
    }

    .bood-smart-helper .bood-bi {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
        flex-basis: 100%;
    }

    .bood-mini-badge {
        font-size: 10px;
        padding: 4px 7px;
    }
}

/* v1.9 Clean Price Summary */
.bood-price-panel-clean {
    border-radius: 22px;
    border: 1px solid #fde1d3;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.bood-price-panel-clean .bood-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #f4e5dc;
}

.bood-price-panel-clean .bood-price-row:last-child {
    border-bottom: 0;
}

.bood-price-panel-clean .bood-price-label .bood-bi {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.bood-price-panel-clean .bood-price-label .bood-en {
    text-align: left !important;
    font-weight: 800;
    color: inherit;
}

.bood-price-panel-clean .bood-price-label .bood-ar {
    text-align: right !important;
    font-weight: 800;
    color: inherit;
}

.bood-price-label {
    flex: 1 1 auto;
    min-width: 0;
    color: #374151;
    font-size: 15px;
}

.bood-price-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    white-space: nowrap;
    line-height: 1.1;
}

.bood-money-en,
.bood-money-ar {
    display: block;
    font-weight: 900;
    color: var(--bood-primary);
}

.bood-money-en {
    font-size: 22px;
    direction: ltr;
}

.bood-money-ar {
    font-size: 17px;
    direction: rtl;
}

.bood-price-row-total {
    background: var(--bood-primary) !important;
    color: #fff !important;
}

.bood-price-row-total .bood-price-label,
.bood-price-row-total .bood-price-label .bood-en,
.bood-price-row-total .bood-price-label .bood-ar,
.bood-price-row-total .bood-money-en,
.bood-price-row-total .bood-money-ar {
    color: #fff !important;
}

.bood-price-row-total .bood-money-en {
    font-size: 34px;
    letter-spacing: -0.6px;
}

.bood-price-row-total .bood-money-ar {
    font-size: 21px;
}

.bood-price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    white-space: nowrap;
}

.bood-price-row-shablona .bood-price-amount-small .bood-money-en {
    font-size: 18px;
}

.bood-price-row-shablona .bood-price-amount-small .bood-money-ar {
    font-size: 14px;
}

@media (max-width: 768px) {
    .bood-price-panel-clean .bood-price-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 16px 14px !important;
    }

    .bood-price-panel-clean .bood-price-label {
        width: 100% !important;
        font-size: 14px !important;
    }

    .bood-price-panel-clean .bood-price-label .bood-bi {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .bood-price-amount {
        width: 100% !important;
        align-items: center !important;
        text-align: center !important;
        padding-top: 2px;
    }

    .bood-price-row-unit .bood-price-amount {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .bood-price-row-unit .bood-money-en {
        font-size: 24px !important;
    }

    .bood-price-row-unit .bood-money-ar {
        font-size: 18px !important;
    }

    .bood-price-row-total {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .bood-price-row-total .bood-price-amount {
        align-items: center !important;
        text-align: center !important;
    }

    .bood-price-row-total .bood-money-en {
        font-size: 36px !important;
        line-height: 1 !important;
    }

    .bood-price-row-total .bood-money-ar {
        font-size: 22px !important;
    }

    .bood-price-row-discount {
        align-items: center !important;
        text-align: center !important;
    }

    .bood-price-row-discount .bood-price-label .bood-bi {
        max-width: none !important;
    }

    .bood-price-badge {
        width: fit-content !important;
        align-self: center !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.35 !important;
    }
}

/* v2.0 Final total last + calmer mobile pricing */
.bood-price-panel-final {
    border-radius: 22px;
    border: 1px solid #fde1d3;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
}

.bood-price-panel-final .bood-price-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 14px !important;
    padding: 15px 18px !important;
    border-bottom: 1px solid #f4e5dc;
}

.bood-price-panel-final .bood-price-row:last-child {
    border-bottom: 0;
}

.bood-price-panel-final .bood-price-label {
    min-width: 0;
    font-size: 14px;
    font-weight: 800;
    color: #334155;
}

.bood-price-panel-final .bood-price-label .bood-bi {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.bood-price-panel-final .bood-price-label .bood-en {
    text-align: left !important;
    color: inherit;
}

.bood-price-panel-final .bood-price-label .bood-ar {
    text-align: right !important;
    color: inherit;
}

.bood-price-panel-final .bood-price-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    white-space: nowrap;
    line-height: 1.08;
}

.bood-price-panel-final .bood-money-en,
.bood-price-panel-final .bood-money-ar {
    display: block;
    font-weight: 900;
    color: var(--bood-primary);
}

.bood-price-panel-final .bood-money-en {
    font-size: 18px;
    letter-spacing: -0.15px;
    direction: ltr;
}

.bood-price-panel-final .bood-money-ar {
    font-size: 14px;
    direction: rtl;
}

.bood-price-panel-final .bood-money-en em,
.bood-price-panel-final .bood-money-ar em {
    font-style: normal;
    font-size: 0.62em;
    font-weight: 800;
    opacity: 0.72;
    margin-inline-start: 3px;
}

.bood-price-panel-final .bood-price-row-muted {
    background: #fffaf7;
}

.bood-price-panel-final .bood-price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
}

.bood-price-panel-final .bood-price-row-total {
    background: var(--bood-primary) !important;
    color: #fff !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

.bood-price-panel-final .bood-price-row-total .bood-price-label,
.bood-price-panel-final .bood-price-row-total .bood-price-label .bood-en,
.bood-price-panel-final .bood-price-row-total .bood-price-label .bood-ar,
.bood-price-panel-final .bood-price-row-total .bood-money-en,
.bood-price-panel-final .bood-price-row-total .bood-money-ar {
    color: #fff !important;
}

.bood-price-panel-final .bood-price-row-total .bood-money-en {
    font-size: 27px;
    letter-spacing: -0.35px;
}

.bood-price-panel-final .bood-price-row-total .bood-money-ar {
    font-size: 17px;
    opacity: 0.94;
}

.bood-price-panel-final .bood-price-row-total .bood-money-en em,
.bood-price-panel-final .bood-price-row-total .bood-money-ar em {
    opacity: 0.78;
}

.bood-price-panel-final .bood-price-row-shablona .bood-money-en {
    font-size: 16px;
}

.bood-price-panel-final .bood-price-row-shablona .bood-money-ar {
    font-size: 13px;
}

@media (max-width: 768px) {
    .bood-price-panel-final .bood-price-row {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
        padding: 14px 14px !important;
    }

    .bood-price-panel-final .bood-price-label {
        width: 100% !important;
        font-size: 13px !important;
    }

    .bood-price-panel-final .bood-price-label .bood-bi {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .bood-price-panel-final .bood-price-amount {
        width: 100% !important;
        align-items: center !important;
        text-align: center !important;
    }

    .bood-price-panel-final .bood-price-row-unit .bood-price-amount,
    .bood-price-panel-final .bood-price-row-shablona .bood-price-amount {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .bood-price-panel-final .bood-money-en {
        font-size: 19px !important;
    }

    .bood-price-panel-final .bood-money-ar {
        font-size: 14px !important;
    }

    .bood-price-panel-final .bood-price-row-total {
        margin-top: 0 !important;
        padding: 18px 14px !important;
    }

    .bood-price-panel-final .bood-price-row-total .bood-money-en {
        font-size: 30px !important;
        line-height: 1.02 !important;
    }

    .bood-price-panel-final .bood-price-row-total .bood-money-ar {
        font-size: 17px !important;
    }

    .bood-price-panel-final .bood-price-badge {
        align-self: center !important;
        margin-inline: auto !important;
    }
}

.bood-special-request-field textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid #ded7d2;
    border-radius: 13px;
    background: #fff;
    color: var(--bood-primary);
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    box-shadow: none;
    outline: none;
}

.bood-special-request-field textarea:focus {
    border-color: var(--bood-accent);
    box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.12);
}

.bood-special-request-field {
    padding: 12px;
    border: 1px dashed #ffd0bb;
    border-radius: 16px;
    background: #fffaf6;
}


/* v3.7: CSS-level safety lock. If Same saved design is selected, artwork/design blocks must disappear even if a theme script rerenders them. */
.bood-force-hidden,
.bood-bags-calculator-wrapper:has(input[name="bag_first_time"][value="no"]:checked) #design-service-p,
.bood-bags-calculator-wrapper:has(input[name="bag_first_time"][value="no"]:checked) #artwork-source-p,
.bood-bags-calculator-wrapper:has(input[name="bag_first_time"][value="no"]:checked) #logo-upload-p,
.bood-bags-calculator-wrapper:has(input[name="bag_first_time"][value="no"]:checked) #design-links-p {
    display: none !important;
    visibility: hidden !important;
}

/* v3.8: delivery method lock. File, link, and file+link must show only their matching fields. */
.bood-source-hidden {
    display: none !important;
    visibility: hidden !important;
}
