/* ============================================================
   BOTIGA ORDER FORM — Main Stylesheet
   Font: Cairo (Arabic) — loaded via Google Fonts
   ============================================================ */


/* hide some sections  text*/

/* ── Font application ──────────────────────────────────────── */
.bof-form-wrapper,
.bof-form-wrapper * {
    font-family: 'Cairo', sans-serif;
}

/* ── Botiga theme override: entry-summary padding ──────────── */
.product-gallery-summary .entry-summary {
    padding-left: 0;
    padding-right: 40px;
}

@media (max-width: 768px) {
    .product-gallery-summary .entry-summary {
        padding-right: 0 !important;
    }
}

/* ════════════════════════════════════════════
   VARIATION SWATCHES
════════════════════════════════════════════ */
.variations {
    border: none;
    margin-bottom: 6px;
}

.variations tr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    border: none;
}

.variations th.label {
    min-width: 0;
    white-space: nowrap;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #111;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

.variations th.label label {
    margin: 0;
}

.woo-selected-variation-item-name {
    font-size: .75rem;
    font-weight: 600;
    color: #666;
    margin-right: 4px;
}

.variations td.value {
    padding: 0;
    flex: 1;
}

.variable-items-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Color swatches */
.color-variable-item {
    width: 26px !important;
    height: 20px !important;
    border-radius: 5px !important;
    border: 2px solid transparent !important;
    padding: 0 !important;
    box-shadow: 0 0 0 1.5px #ccc;
    cursor: pointer;
    transition: box-shadow .15s;
    list-style: none;
}

.color-variable-item.selected,
.color-variable-item:hover {
    box-shadow: 0 0 0 2.5px #111 !important;
}

.color-variable-item .variable-item-contents {
    width: 100%;
    height: 100%;
    border-radius: 3px;
    overflow: hidden;
}

.color-variable-item .variable-item-span-color {
    display: block;
    width: 100%;
    height: 100%;
}

/* Size / button swatches */
.radio-variable-item,
.button-variable-item {
    min-width: 32px !important;
    height: 26px !important;
    border: 1.5px solid #ddd !important;
    border-radius: 6px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 8px !important;
    transition: border-color .15s, background .15s;
    list-style: none;
}

.radio-variable-item.selected,
.radio-variable-item:hover,
.button-variable-item.selected,
.button-variable-item:hover {
    border-color: #111 !important;
    background: #111 !important;
}

.radio-variable-item.selected .variable-item-radio-value-wrapper,
.radio-variable-item:hover .variable-item-radio-value-wrapper {
    color: #fff !important;
}

.variable-item-radio-input {
    display: none !important;
}

.variable-item-radio-value-wrapper {
    font-size: .73rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    font-family: 'Cairo', sans-serif;
}

.reset_variations {
    display: none !important;
}

/* ════════════════════════════════════════════
   HIDE NATIVE WOOCOMMERCE CART BUTTON
════════════════════════════════════════════ */
.single_add_to_cart_button,
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
    display: none !important;
}

.quantity {
    display: none !important;
}

/* ════════════════════════════════════════════
   FORM WRAPPER
════════════════════════════════════════════ */
.bof-form-wrapper {
    margin-top: 20px;
    width: 100%;
    direction: rtl;
}

/* ── CTA Header block ──────────────────────────────────────── */
.bof-cta-header {
    background: #fffbf0;
    border: 1.5px solid #fcd34d;
    border-radius: 12px;
    padding: 14px 16px 12px;
    margin-bottom: 18px;
    direction: rtl;
}

.bof-cta-delivery {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.bof-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f59e0b;
    color: #fff;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.bof-cta-icon svg {
    width: 15px;
    height: 15px;
    stroke: #fff;
    fill: none;
}

.bof-cta-delivery-text {
    font-size: .92rem;
    font-weight: 900;
    color: #b45309;
    font-family: 'Cairo', sans-serif;
}

.bof-cta-sub {
    font-size: .82rem;
    color: #78716c;
    margin: 2px 0 10px;
    font-family: 'Cairo', sans-serif;
    line-height: 1.5;
}

.bof-cta-divider {
    height: 1px;
    background: #fde68a;
    margin-bottom: 10px;
}

.bof-cta-prompt {
    font-size: .88rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    font-family: 'Cairo', sans-serif;
}

/* ── Quantity row ──────────────────────────────────────────── */
.bof-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    direction: rtl;
}

.bof-qty-label {
    font-size: .82rem;
    font-weight: 700;
    color: #555;
    white-space: nowrap;
    font-family: 'Cairo', sans-serif;
}

.bof-qty-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e5e5;
    border-radius: 9px;
    overflow: hidden;
    height: 42px;
    background: #fafafa;
    flex-shrink: 0;
}

.bof-qty-btn {
    width: 42px;
    height: 100%;
    background: none;
    border: none;
    font-size: 1.15rem;
    cursor: pointer;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
    font-weight: 300;
    font-family: 'Cairo', sans-serif;
}

.bof-qty-btn:hover {
    background: #f0f0f0;
}

.bof-qty-num {
    width: 38px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    user-select: none;
    font-family: 'Cairo', sans-serif;
}

.bof-qty-divider {
    width: 1px;
    height: 24px;
    background: #e5e5e5;
    flex-shrink: 0;
}

/* ── Dynamic price display ─────────────────────────────────── */
.bof-price-display {
    font-size: 1.05rem;
    font-weight: 900;
    color: #111;
    font-family: 'Cairo', sans-serif;
    letter-spacing: .01em;
    flex: 1;
    text-align: left;
    direction: ltr;
}

/* ── Input fields ──────────────────────────────────────────── */
.bof-field {
    position: relative;
    margin-bottom: 9px;
    direction: rtl;
}

.bof-field input,
.bof-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #e5e5e5;
    border-radius: 9px;
    padding: 13px 16px 13px 42px;
    font-size: .9rem;
    font-family: 'Cairo', sans-serif;
    background: #fafafa;
    color: #111;
    transition: border-color .2s, background .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
    direction: rtl;
}

.bof-field input:focus,
.bof-field textarea:focus {
    border-color: #111;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
    outline: none;
}

.bof-field input.bof-error,
.bof-field textarea.bof-error {
    border-color: #e53935 !important;
    background: #fff8f8;
}

.bof-field textarea {
    height: 60px;
    resize: none;
    padding-top: 14px;
}

.bof-form-wrapper .bof-field input,
.bof-form-wrapper input[type="text"],
.bof-form-wrapper input[type="tel"] {
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1.5px solid #e5e5e5 !important;
    border-radius: 9px !important;
    padding: 13px 16px 13px 42px !important;
    font-size: .9rem !important;
    font-family: 'Cairo', sans-serif !important;
    background: #fafafa !important;
    color: #111 !important;
    transition: border-color .2s, background .2s, box-shadow .2s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    direction: rtl !important;
}

/* SVG icon inside field */
.bof-field .bof-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.bof-field .bof-icon svg {
    width: 15px;
    height: 15px;
    stroke: #b0b0b0;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bof-field.bof-textarea-field .bof-icon {
    top: 15px;
    transform: none;
}

/* ── Field error messages ──────────────────────────────────── */
.bof-field-error {
    display: none;
    font-size: .73rem;
    color: #e53935;
    margin-top: 3px;
    padding-right: 4px;
    font-weight: 600;
    direction: rtl;
    align-items: center;
    gap: 4px;
    font-family: 'Cairo', sans-serif;
}

.bof-field-error.visible {
    display: flex;
}

.bof-field-error svg {
    width: 12px;
    height: 12px;
    stroke: #e53935;
    flex-shrink: 0;
}

/* ── Variation error banner ────────────────────────────────── */
.bof-var-error {
    display: none;
    background: #fff0f0;
    border: 1.5px solid #fca5a5;
    border-radius: 8px;
    color: #c62828;
    font-size: .82rem;
    font-weight: 600;
    padding: 10px 14px;
    margin-bottom: 12px;
    direction: rtl;
    align-items: center;
    gap: 8px;
    font-family: 'Cairo', sans-serif;
}

.bof-var-error.visible {
    display: flex;
}

.bof-var-error svg {
    width: 14px;
    height: 14px;
    stroke: #e53935;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ── Submit button ─────────────────────────────────────────── */
.bof-submit-btn {
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: background .2s, transform .1s;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: rtl;
}

.bof-submit-btn:hover {
    background: #2d2d2d;
}

.bof-submit-btn:active {
    transform: scale(.98);
}

.bof-submit-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
    transform: none;
}

/* ── Spinner ───────────────────────────────────────────────── */
.bof-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bof-spin .65s linear infinite;
}

@keyframes bof-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ════════════════════════════════════════════
   THANK YOU PAGE
════════════════════════════════════════════ */

.bof-ty-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 14px;
    padding: 40px 36px;
}

.bof-ty-icon {
    text-align: center;
    margin-bottom: 10px;
}

.bof-ty-icon svg {
    width: 36px;
    height: 36px;
}

.bof-ty-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 8px;
    color: #111;
    font-family: 'Cairo', sans-serif;
}

.bof-ty-subtitle {
    text-align: center;
    color: #777;
    font-size: .93rem;
    margin: 0 0 28px;
    line-height: 1.7;
    font-family: 'Cairo', sans-serif;
}

.bof-ty-table {
    max-width: 700px;
    border-collapse: collapse;
    direction: rtl;
}

.bof-ty-table th {
    text-align: right;
    font-size: .74rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 11px 0 7px;
    border-top: 1px solid #f2f2f2;
    width: 38%;
    font-family: 'Cairo', sans-serif;
}

.bof-ty-table td {
    font-size: .93rem;
    color: #222;
    padding: 11px 0 7px;
    border-top: 1px solid #f2f2f2;
    font-weight: 500;
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

.bof-ty-badge {
    display: inline-block;
    background: #fff8e1;
    color: #b45309;
    border: 1px solid #fcd34d;
    border-radius: 20px;
    padding: 3px 13px;
    font-size: .78rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
}

.bof-ty-btn {
    display: block;
    text-align: center;
    background: #111;
    color: #fff !important;
    border-radius: 9px;
    padding: 15px 28px;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .04em;
    margin-top: 28px;
    transition: background .2s;
    font-family: 'Cairo', sans-serif;
}

.bof-ty-btn:hover {
    background: #333;
}

 .bof-ty-wrapper { max-width:620px; margin:40px auto; font-family:inherit; }
        .bof-ty-card { background:#fff; border:1px solid #ebebeb; border-radius:14px; padding:40px 36px; }
        .bof-ty-icon { text-align:center; margin-bottom:18px; }
        .bof-ty-icon svg { width:58px; height:58px; }
        .bof-ty-title { text-align:center; font-size:1.5rem; font-weight:700; margin:0 0 8px; color:#111; }
        .bof-ty-subtitle { text-align:center; color:#777; font-size:.93rem; margin:0 0 28px; line-height:1.7; }
        .bof-ty-table { width:100%; border-collapse:collapse; }
        .bof-ty-table th { text-align:right; font-size:.74rem; font-weight:700; color:#aaa; text-transform:uppercase; letter-spacing:.05em; padding:11px 0 7px; border-top:1px solid #f2f2f2; width:38%; }
        .bof-ty-table td { font-size:.93rem; color:#222; padding:11px 0 7px; border-top:1px solid #f2f2f2; font-weight:500; text-align:right; }
        .bof-ty-badge { display:inline-block; background:#fff8e1; color:#b45309; border:1px solid #fcd34d; border-radius:20px; padding:3px 13px; font-size:.78rem; font-weight:700; }
        .bof-ty-btn { display:block; text-align:center; background:#111; color:#fff !important; border-radius:9px; padding:15px 28px; font-size:.95rem; font-weight:700; text-decoration:none; letter-spacing:.04em; margin-top:28px; transition:background .2s; }
        .bof-ty-btn:hover { background:#333; }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 480px) {

    .bof-field input,
    .bof-field textarea {
        font-size: .85rem;
        padding: 12px 14px 12px 38px;
    }

    .bof-qty-btn {
        width: 38px;
    }

    .bof-ty-card {
        padding: 28px 18px;
    }

    .bof-cta-header {
        padding: 12px 14px 10px;
    }
}

.merchant-payment-logos, .product_meta, .woocommerce-tabs .wc-tabs-wrapper{
    display: none !important; 
}