/* Price Drop Alerts — Button & Modal */

/* Button container (hidden by default, shown via JS fadeIn) */
#hrck-price-alerts-container {
    display: none;
    margin-top: 12px;
}

#hrck-price-alerts-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: var(--hrck-price-alerts-color, #ff385c);
    border: 2px solid var(--hrck-price-alerts-color, #ff385c);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
    line-height: 1.4;
    text-align: center;
}

#hrck-price-alerts-btn svg {
    flex-shrink: 0;
}

#hrck-price-alerts-btn:hover {
    background: rgba(255, 56, 92, 0.06);
}

#hrck-price-alerts-btn:active {
    background: rgba(255, 56, 92, 0.12);
}

/* Modal overlay */
#hrck-price-alerts-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#hrck-price-alerts-modal[style*="display: block"],
#hrck-price-alerts-modal[style*="display:block"] {
    display: flex !important;
}

/* Modal body */
.hrck-pa-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 440px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Close button */
.hrck-pa-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    line-height: 1;
}

.hrck-pa-close:hover {
    background: #f0f0f0;
}

/* Heading */
.hrck-pa-modal h3 {
    font-size: 20px;
    color: #333;
    margin: 0 0 8px;
}

/* Description */
.hrck-pa-modal p.hrck-pa-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* Email input */
#hrck-pa-email {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#hrck-pa-email:focus {
    outline: none;
    border-color: #999;
}

/* Consent checkbox */
.hrck-pa-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
    cursor: pointer;
    line-height: 1.4;
}

.hrck-pa-consent-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Submit button */
#hrck-pa-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--hrck-price-alerts-color, #ff385c);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    text-align: center;
}

#hrck-pa-submit:hover {
    filter: brightness(0.9);
}

#hrck-pa-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: none;
}

/* Success message */
#hrck-pa-success {
    display: none;
    text-align: center;
    color: #2e7d32;
    padding: 20px 0;
    font-size: 15px;
    line-height: 1.5;
}

/* Error message */
#hrck-pa-error {
    display: none;
    color: #d32f2f;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Responsive: 960px breakpoint (matches HomeRunner) */
@media (max-width: 960px) {
    .hrck-pa-modal {
        width: 95%;
        padding: 24px;
    }
}
