/**
 * Data-sharing consent checkbox on single product pages.
 *
 * Was a heredoc-style echo inside add_consent_styles(), printed into wp_head.
 */

.mental-health-consent-wrapper {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
}

.mental-health-consent-notice {
    margin-bottom: 15px;
}

.mental-health-consent-notice p {
    margin: 0 0 8px 0;
}

.mental-health-consent-notice strong {
    color: #dc3545;
}

.consent-description {
    font-size: 14px;
    color: #6c757d;
}

.mental-health-consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.mental-health-consent-checkbox {
    margin: 3px 4px 0 0 !important;
    flex-shrink: 0;
}

.consent-text {
    flex: 1;
}

/*
 * Disable add to cart until consent is given. This is presentation only -- the
 * add-to-cart validation on the server is what actually enforces it.
 */
.mental-health-product .single_add_to_cart_button:not(.consent-given),
.mental-health-product .add_to_cart_button:not(.consent-given) {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.mental-health-consent-alert {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}
