/* ============================================================
   Buy Now for WooCommerce — modal styles
   ============================================================ */

/* Button */
.buy-now-button {
    display: block;
    width: 100%;
    margin-top: 8px;
    cursor: pointer;
}

/* Overlay */
.buy-now-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

/* Modal box */
.buy-now-modal-wrap {
    background: #fff;
    border-radius: 6px;
    padding: 28px 24px 24px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
    max-height: 90vh;
    overflow-y: auto;
}

/* Close button */
.buy-now-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0;
    transition: color .15s;
}
.buy-now-close:hover {
    color: #222;
}

/* Title */
.buy-now-title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 600;
    padding-right: 24px;
}

/* Product summary row */
.buy-now-product {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    background: #f6f6f6;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 18px;
}
.buy-now-product-name {
    font-weight: 500;
    font-size: 14px;
}
.buy-now-product-price {
    white-space: nowrap;
    font-weight: 600;
}

/* Additional note */
.buy-now-note {
    margin: -8px 0 16px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Form inputs */
.buy-now-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .15s;
    background: #fff;
}
.buy-now-input:focus {
    outline: none;
    border-color: #96588a;
}
.buy-now-textarea {
    resize: vertical;
    min-height: 64px;
}

/* Status message */
.buy-now-message {
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin: 4px 0 10px;
    text-align: center;
}

/* Submit button */
.buy-now-submit {
    width: 100%;
    margin-top: 2px;
}
.buy-now-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
