/* Price Drop Alerts — Button & Modal */

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

.hrck-pa-cta-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    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;
    box-sizing: border-box;
}

.hrck-pa-trigger-icon {
    flex-shrink: 0;
}

.hrck-pa-trigger-label {
    flex: 1;
    text-align: left;
}

.hrck-pa-trigger-chevron {
    flex-shrink: 0;
    opacity: 0.5;
}

.hrck-pa-cta-btn:hover {
    background: rgba(255, 56, 92, 0.06);
}

.hrck-pa-cta-btn:active {
    background: rgba(255, 56, 92, 0.12);
}

/* Modal overlay */
#hrck-price-alerts-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#hrck-price-alerts-modal.hrck-pa-modal-open {
    display: flex;
}

/* Backdrop */
#hrck-price-alerts-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (min-width: 960px) {
    #hrck-price-alerts-modal::before {
        background: rgba(0, 0, 0, 0.2);
    }
}

#hrck-price-alerts-modal.hrck-pa-modal-open::before {
    opacity: 1;
}

/* Modal dialog */
.hrck-pa-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

#hrck-price-alerts-modal.hrck-pa-modal-open .hrck-pa-modal {
    transform: scale(1);
    opacity: 1;
}

@starting-style {
    #hrck-price-alerts-modal.hrck-pa-modal-open::before {
        opacity: 0;
    }
    #hrck-price-alerts-modal.hrck-pa-modal-open .hrck-pa-modal {
        transform: scale(0.9);
        opacity: 0;
    }
}

/* 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 */
@media (max-width: 959px) {
    .hrck-pa-modal {
        width: 95%;
        padding: 24px;
    }
}

