/* ======================================================
   ONPAL WEB — Shared Buy Now Quantity Sheet
   File: /web/assets/buy_sheet.css
====================================================== */

.op-buy-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.48);
}

.op-buy-sheet-backdrop.is-open {
    display: flex;
}

.op-buy-sheet {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.op-buy-sheet__head {
    display: grid;
    grid-template-columns: 88px 1fr 38px;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid #edf2ee;
}

.op-buy-sheet__image {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 14px;
    background: #eef3ef;
}

.op-buy-sheet__price {
    color: #0b7a31;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
}

.op-buy-sheet__stock {
    margin-top: 8px;
    color: #69776e;
    font-size: 14px;
    font-weight: 700;
}

.op-buy-sheet__close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #f2f5f3;
    color: #1f3327;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.op-buy-sheet__body {
    padding: 18px;
}

.op-buy-sheet__label {
    margin-bottom: 12px;
    color: #14251a;
    font-size: 16px;
    font-weight: 900;
}

.op-buy-sheet__qty {
    display: flex;
    align-items: center;
    gap: 14px;
}

.op-buy-sheet__qty button {
    width: 48px;
    height: 48px;
    border: 1px solid #d8e3dc;
    border-radius: 12px;
    background: #ffffff;
    color: #14251a;
    font-size: 26px;
    font-weight: 900;
    cursor: pointer;
}

.op-buy-sheet__qty button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.op-buy-sheet__qty span {
    min-width: 38px;
    text-align: center;
    color: #14251a;
    font-size: 22px;
    font-weight: 900;
}

.op-buy-sheet__actions {
    padding: 18px;
    display: grid;
    gap: 10px;
}

.op-buy-sheet__confirm {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    background: #ff8a00;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.op-buy-sheet__confirm:disabled {
    opacity: 0.6;
    cursor: wait;
}

.op-buy-sheet__cancel {
    width: 100%;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #5f4a78;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

@media screen and (max-width: 720px) {
    .op-buy-sheet-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .op-buy-sheet {
        max-width: none;
        border-radius: 22px 22px 0 0;
    }
}