/* Stock Alert Button – high specificity to override theme .button */
button.notify-me-btn,
a.notify-me-btn,
.notify-me-btn {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    width: 100%;
    text-align: center;
}

button.notify-me-btn:hover,
a.notify-me-btn:hover,
.notify-me-btn:hover {
    opacity: 0.85;
    background: #000 !important;
    color: #fff !important;
}

/* Shop page, carousels, cross-sell – outlined style */
.products .notify-me-btn,
.products-carousel .notify-me-btn,
.water-cross-sell .notify-me-btn {
    background: #fff !important;
    color: #1e1e1c !important;
    border: 1px solid #1e1e1c !important;
}

.products .notify-me-btn:hover,
.products-carousel .notify-me-btn:hover,
.water-cross-sell .notify-me-btn:hover {
    background: #f5f5f5 !important;
    color: #1e1e1c !important;
    opacity: 1;
}

button.notify-me-btn--subscribed,
.notify-me-btn--subscribed {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    cursor: default;
    opacity: 0.8;
}

button.notify-me-btn--subscribed:hover,
.notify-me-btn--subscribed:hover {
    opacity: 0.8;
    background: #e8f5e9 !important;
}

/* Restock ETA */
.restock-eta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.875rem;
    margin: 8px 0 12px;
    font-style: italic;
}

/* Notify Modal */
.pl-notify-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.pl-notify-modal--active {
    opacity: 1;
    visibility: visible;
}

.pl-notify-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.pl-notify-modal__content {
    position: relative;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(10px);
    transition: transform 0.2s;
}

.pl-notify-modal--active .pl-notify-modal__content {
    transform: translateY(0);
}

.pl-notify-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 4px;
    line-height: 1;
}

.pl-notify-modal__close:hover {
    color: #333;
}

.pl-notify-modal__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e1e1c;
    font-family: 'Jost', sans-serif;
}

.pl-notify-modal__text {
    margin: 0 0 16px;
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.pl-notify-modal__email {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: 'Jost', sans-serif;
    margin-bottom: 12px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.pl-notify-modal__email:focus {
    border-color: #b07852;
}

.pl-notify-modal .pl-notify-modal__submit {
    width: 100%;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem !important;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pl-notify-modal .pl-notify-modal__submit:hover {
    opacity: 0.85;
    background: #000 !important;
    color: #fff !important;
}

.pl-notify-modal .pl-notify-modal__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pl-notify-modal__message {
    margin: 8px 0 0;
    font-size: 0.8125rem;
    text-align: center;
    min-height: 1.2em;
}

.pl-notify-modal__message--error {
    color: #dc2626;
}

.pl-notify-modal__message--success {
    color: #16a34a;
}

/* Auth Actions (Login/Signup) */
.pl-notify-modal__auth-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.pl-notify-modal a.pl-notify-modal__login-btn,
.pl-notify-modal a.pl-notify-modal__login-btn:hover {
    flex: 1;
    text-align: center;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem !important;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.pl-notify-modal a.pl-notify-modal__login-btn:hover {
    opacity: 0.85;
}

.pl-notify-modal a.pl-notify-modal__signup-btn,
.pl-notify-modal a.pl-notify-modal__signup-btn:hover {
    flex: 1;
    text-align: center;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem !important;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.pl-notify-modal a.pl-notify-modal__signup-btn:hover {
    opacity: 0.85;
}

/* Unsubscribe Note */
.pl-notify-modal__unsub-note {
    margin: 12px 0 0;
    font-size: 0.8125rem;
    color: #999;
    text-align: center;
}

/* Skip Confirm Checkbox */
.pl-notify-modal__skip-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.8125rem;
    color: #999;
    cursor: pointer;
    justify-content: center;
}

.pl-notify-modal__skip-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #b07852;
}

/* My Account Notifications Table */
.pl-account-notifications {
    width: 100%;
    border-collapse: collapse;
}

.pl-account-notifications th,
.pl-account-notifications td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.pl-account-notifications th {
    font-weight: 600;
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pl-col-notify {
    width: 60px;
    text-align: center !important;
}

.pl-account-notifications input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #b07852;
}

.pl-notification-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
}

.pl-notification-actions .button-primary {
    background: #b07852;
    color: #1e1e1c;
    border: none;
    font-weight: 600;
}

.pl-notification-actions .button-primary:hover {
    opacity: 0.9;
}

#pl-unsubscribe-all {
    color: #dc2626;
    border-color: #dc2626;
}

#pl-unsubscribe-all:hover {
    background: #dc2626;
    color: #fff;
}

/* Confirm Modal Actions */
.pl-confirm-modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.pl-confirm-modal__actions .button-primary {
    background: #dc2626;
    color: #fff;
    border: none;
}

.pl-confirm-modal__actions .button-primary:hover {
    opacity: 0.9;
}
