/* hhconsent - Front-end styles */

.hhconsent-queue-page,
.hhconsent-sign-page,
.hhconsent-withdraw-page,
.hhconsent-error-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.hhconsent-section {
    margin-bottom: 40px;
}

.hhconsent-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--rose-300, #fda4af);
    color: var(--stone-800, #292524);
}

.hhconsent-cards {
    display: grid;
    gap: 15px;
}

.hhconsent-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.hhconsent-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hhconsent-card--pending {
    border-left: 4px solid #FF9800;
}

.hhconsent-card--signed {
    border-left: 4px solid #4CAF50;
}

.hhconsent-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hhconsent-card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--stone-800, #292524);
}

.hhconsent-check {
    color: #4CAF50;
    font-size: 1.3rem;
    font-weight: bold;
}

.hhconsent-type-badge {
    display: inline-block;
    background: var(--rose-100, #ffe4e6);
    color: var(--rose-700, #be123c);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.hhconsent-meta {
    color: #757575;
}

.hhconsent-card-footer {
    margin-top: 15px;
}

/* Consent signing page */
.hhconsent-form-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
}

.hhconsent-summary {
    background: var(--rose-50, #fff1f2);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.hhconsent-summary h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.hhconsent-full-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.hhconsent-scroll-area {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 4px;
    background: #fafafa;
    line-height: 1.6;
}

.hhconsent-accept-group {
    margin: 25px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.hhconsent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.hhconsent-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hhconsent-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

#hhconsent-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Checkout consent block */
.hhconsent-checkout-block {
    margin-bottom: 20px;
}

.hhconsent-alert {
    background: #fff3e0;
    border: 1px solid #FF9800;
    border-radius: 8px;
    padding: 20px;
}

.hhconsent-alert h4 {
    color: #E65100;
    margin: 0 0 10px;
}

.hhconsent-unsigned-list {
    list-style: none;
    padding: 0;
}

.hhconsent-unsigned-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #ffe0b2;
    flex-wrap: wrap;
}

.hhconsent-unsigned-list li:last-child {
    border-bottom: none;
}

.hhconsent-sign-btn {
    margin-left: auto;
}

/* Account link badge */
.hhconsent-badge {
    display: inline-block;
    background: #F44336;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 5px;
}

/* Withdraw page */
.hhconsent-withdraw-details {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.hhconsent-withdraw-details h3 {
    margin: 0 0 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .hhconsent-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .hhconsent-actions {
        flex-direction: column;
    }
    .hhconsent-actions .btn {
        width: 100%;
        text-align: center;
    }
    .hhconsent-sign-btn {
        margin-left: 0;
        margin-top: 5px;
    }
    .hhconsent-unsigned-list li {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hhconsent-scroll-area {
        max-height: 50vh;
    }
}
