/* Out-of-stock ordering confirmation (shop / product / cart). */

.altawazun-stock-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    z-index: 10000010; /* above .klb-notice-ajax (10000000) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.altawazun-stock-modal {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    max-width: 420px;
    width: 100%;
    padding: 26px 26px 20px;
    text-align: left;
}

.altawazun-stock-modal__title {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #9f1239;
}

.altawazun-stock-modal__product {
    margin: 0 0 10px;
    font-weight: 600;
    font-size: .95rem;
    color: #111827;
}

.altawazun-stock-modal__body {
    margin: 0 0 8px;
    font-size: .9rem;
    line-height: 1.55;
    color: #374151;
}

.altawazun-stock-modal__note {
    margin: 0 0 18px;
    font-size: .8rem;
    line-height: 1.5;
    color: #6b7280;
}

.altawazun-stock-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.altawazun-stock-modal__btn {
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
}

.altawazun-stock-modal__btn--ghost {
    background: #fff;
    border-color: #d1d5db;
    color: #374151;
}

.altawazun-stock-modal__btn--ghost:hover {
    background: #f3f4f6;
}

.altawazun-stock-modal__btn--primary {
    background: #29843B;
    color: #fff;
}

.altawazun-stock-modal__btn--primary:hover {
    background: #226d31;
}

/* ============================================================
   QUANTITY FIELD INSIDE THE ADD-TO-CART DIALOG
   ------------------------------------------------------------
   Product cards carry no inline quantity box: clicking Add to cart opens
   the dialog above and this is the field it holds.
   ============================================================ */
.altawazun-stock-modal__qty {
    margin: 16px 0 4px;
}

.altawazun-stock-modal__qty-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #5b6674;
}

.altawazun-stock-modal__qty-row {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #d7dce3;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.altawazun-stock-modal__step {
    flex: 0 0 auto;
    width: 38px;
    padding: 0;
    border: 0;
    background: #f2f4f7;
    color: #1d2733;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.altawazun-stock-modal__step:hover {
    background: #e6eaf0;
}

.altawazun-stock-modal__qty-input {
    flex: 0 0 72px;
    width: 72px;
    min-width: 0;
    padding: 10px 4px;
    border: 0;
    border-left: 1px solid #e4e8ee;
    border-right: 1px solid #e4e8ee;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #1d2733;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}

.altawazun-stock-modal__qty-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(26, 115, 232, .3);
}

/* The native spinners are too small to hit and steal width at this size. */
.altawazun-stock-modal__qty-input::-webkit-outer-spin-button,
.altawazun-stock-modal__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.altawazun-stock-modal__qty-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: #5b6674;
}

/* ============================================================
   MINI-CART (HEADER DRAWER) QUANTITY CONTROL
   ------------------------------------------------------------
   Replaces the drawer's "2 × AED 569.00" text, so it has to sit inside
   the card's .price line without breaking its wrapping.
   ============================================================ */
.altawazun-mini-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.altawazun-mini-qty.is-busy {
    opacity: .5;
    pointer-events: none;
}

.altawazun-mini-qty-step {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dce3;
    border-radius: 6px;
    background: #fff;
    color: #1d2733;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.altawazun-mini-qty-step:hover {
    background: #f3f5f9;
    border-color: #b9c2cf;
}

.altawazun-mini-qty-input {
    flex: 0 0 46px;
    width: 46px;
    min-width: 0;
    height: 24px;
    padding: 0 2px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #1d2733;
    background: #fff;
    border: 1px solid #d7dce3;
    border-radius: 6px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.altawazun-mini-qty-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, .13);
}

.altawazun-mini-qty-input::-webkit-outer-spin-button,
.altawazun-mini-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.altawazun-mini-qty-price {
    flex: 1 1 auto;
    min-width: 0;
}
