/* ============================================================
   Out-of-stock + Wishlist buttons — match buy-now button style
   Scoped to match theme specificity
   ============================================================ */
.moments-product-list .product-buttons .oos-button,
.moments-product-list .product-buttons .add-to-wishlist-btn {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    border-radius: 10px;
    padding: 10.5px 40px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: filter 0.18s;
}

/* Out of Stock — same shape as buy-now but visually disabled */
.moments-product-list .product-buttons .oos-button {
    color: #787C80;
    background: #BCBDBF;
    border: 1px solid #BCBDBF;
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* Add to Wishlist — gold gradient matching buy-now */
.moments-product-list .product-buttons .add-to-wishlist-btn {
    color: #161109;
    background: linear-gradient(90deg, #CAAB7D 10%, #E7C797 90%);
    border: 1px solid #E7C797;
    margin-left: 15px;
    position: relative;
}

.moments-product-list .product-buttons .add-to-wishlist-btn:hover,
.moments-product-list .product-buttons .add-to-wishlist-btn:focus {
    filter: brightness(0.92);
    outline: none;
}

/* Added state — once user is on the wishlist */
.moments-product-list .product-buttons .add-to-wishlist-btn.dl-added {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
    filter: none;
}

/* Loading state — spinner appears inside the button */
.moments-product-list .product-buttons .add-to-wishlist-btn.dl-loading {
    pointer-events: none;
    opacity: 0.75;
    padding-right: 52px;
}

.moments-product-list .product-buttons .add-to-wishlist-btn.dl-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 14px;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(22, 17, 9, 0.25);
    border-top-color: #161109;
    border-radius: 50%;
    animation: dl-wishlist-spin 0.75s linear infinite;
    transform: translateY(-50%);
}

@keyframes dl-wishlist-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ============================================================
   Body scroll lock while modal is open
   ============================================================ */
body.dl-modal-open {
    overflow: hidden;
}

/* ============================================================
   Modal — full-screen overlay
   ============================================================ */
#dl-wishlist-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.dl-wishlist-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

/* ============================================================
   Modal — centred card
   ============================================================ */
.dl-wishlist-modal-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
}

.dl-wishlist-modal-content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
    pointer-events: all;
}

/* ============================================================
   Close button — black, no border, no fill on hover
   ============================================================ */
.dl-wishlist-close#btn-close-wishlist {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #161109;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.dl-wishlist-close:hover,
.dl-wishlist-close:focus {
    background: none;
    opacity: 1;
    outline: none;
}

/* ============================================================
   Header
   ============================================================ */
.dl-wishlist-modal-header h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
}

.dl-wishlist-modal-header p {
    margin: 0 0 24px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================================
   Form fields
   ============================================================ */
.dl-field-group {
    margin-bottom: 16px;
}

.dl-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.dl-field-group input[type="email"],
.dl-field-group input[type="tel"] {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.15s;
    background: #fff;
    color: #222;
}

.dl-field-group input:focus {
    outline: none;
    border-color: #222;
}

.dl-field-group input.dl-readonly {
    background: #f7f7f7;
    color: #888;
    cursor: default;
}

.dl-field-note {
    font-size: 12px;
    color: #999;
    margin: -8px 0 16px;
}

/* ============================================================
   Submit button — matches buy-now gold gradient
   ============================================================ */
.dl-wishlist-submit-wrap {
    margin-top: 8px;
}

.dl-wishlist-submit-btn#btn-submit-wishlist {
    display: block;
    width: 100%;
    padding: 13px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    color: #161109;
    background: linear-gradient(90deg, #CAAB7D 10%, #E7C797 90%);
    border: 1px solid #E7C797;
    border-radius: 10px;
    cursor: pointer;
    transition: filter 0.18s;
}

.dl-wishlist-submit-btn:hover {
    filter: brightness(0.92);
}

.dl-wishlist-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 480px) {
    .dl-wishlist-modal-content {
        padding: 28px 20px 22px;
    }
}
