/**
 * ENNU Checkout Consent - Subdued Legal Style
 * Traditional, professional appearance
 */

/* Container - minimal styling */
.ennu-consent-wrapper {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 16px 20px;
    margin: 20px 0;
    box-shadow: none;
    font-family: Georgia, "Times New Roman", Times, serif;
}

.ennu-consent-wrapper:hover {
    box-shadow: none;
}

/* Header - understated */
.ennu-consent-header {
    margin-bottom: 12px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.ennu-consent-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    font-family: Georgia, "Times New Roman", Times, serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ennu-consent-subtitle {
    font-size: 11px;
    color: #666;
    margin: 4px 0 0 0;
}

/* Scrollable Content Box - plain */
.ennu-consent-scrollbox {
    position: relative;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 12px 16px;
    background: #fafafa;
    margin-bottom: 12px;
    scroll-behavior: smooth;
}

.ennu-consent-scrollbox::-webkit-scrollbar {
    width: 6px;
}

.ennu-consent-scrollbox::-webkit-scrollbar-track {
    background: #eee;
}

.ennu-consent-scrollbox::-webkit-scrollbar-thumb {
    background: #999;
}

/* Hide scroll progress container - not needed */
.ennu-scroll-progress-container {
    display: none;
}

/* Content - smaller, traditional */
.ennu-consent-content {
    color: #444;
    font-size: 11px;
    line-height: 1.5;
    font-family: Georgia, "Times New Roman", Times, serif;
}

.ennu-consent-document {
    margin-bottom: 16px;
}

.ennu-consent-document:last-child {
    margin-bottom: 0;
}

.ennu-consent-document h4 {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #ddd;
    font-family: Georgia, "Times New Roman", Times, serif;
}

/* Document Text Formatting - legal style */
.ennu-document-text {
    font-size: 10px;
    line-height: 1.4;
    color: #444;
    font-family: Georgia, "Times New Roman", Times, serif;
}

.ennu-document-text h3 {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    margin: 12px 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}

.ennu-document-text h4 {
    font-size: 10px;
    font-weight: 600;
    color: #444;
    margin: 10px 0 6px 0;
}

.ennu-document-text h5 {
    font-size: 10px;
    font-weight: 600;
    color: #333;
    margin: 8px 0 4px 0;
}

/* Paragraphs */
.ennu-document-text p {
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-align: justify;
}

.ennu-document-text p:last-child {
    margin-bottom: 0;
}

/* Emphasis & Strong */
.ennu-document-text strong,
.ennu-document-text b {
    font-weight: 700;
    color: #333;
}

.ennu-document-text em,
.ennu-document-text i {
    font-style: italic;
}

/* Lists */
.ennu-document-text ul,
.ennu-document-text ol {
    margin: 8px 0;
    padding-left: 20px;
}

.ennu-document-text ul {
    list-style-type: disc;
}

.ennu-document-text ol {
    list-style-type: decimal;
}

.ennu-document-text li {
    margin: 4px 0;
    line-height: 1.4;
    color: #444;
}

/* Blockquotes */
.ennu-document-text blockquote {
    border-left: 2px solid #999;
    padding-left: 10px;
    margin: 8px 0;
    color: #555;
    font-style: italic;
}

/* Tables */
.ennu-document-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 9px;
}

.ennu-document-text table th,
.ennu-document-text table td {
    padding: 4px 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.ennu-document-text table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* Horizontal Rule */
.ennu-document-text hr {
    border: none;
    height: 1px;
    background: #ddd;
    margin: 12px 0;
}

/* Divider */
.ennu-consent-divider {
    height: 1px;
    background: #ddd;
    margin: 16px 0;
}

/* CSS-only Icons (no font dependencies) */
.ennu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ennu-icon-check::before {
    content: '';
    display: block;
    width: 8px;
    height: 5px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-top: -2px;
}

.ennu-icon-arrow-down::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -2px;
}

/* Scroll Indicator - subtle */
.ennu-scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 0;
    color: #666;
    font-size: 10px;
    margin-top: 8px;
    animation: none;
    font-family: Georgia, "Times New Roman", Times, serif;
}

.ennu-scroll-indicator .ennu-icon {
    color: #666;
}

/* Acceptance Checkbox - Custom Styled */
.ennu-consent-acceptance {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.ennu-consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
}

/* Hide native checkbox but keep it accessible */
#ennu-consent-checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom checkbox box */
.ennu-custom-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #666;
    border-radius: 3px;
    background: #fff;
    margin-right: 10px;
    margin-top: 1px;
    flex-shrink: 0;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

/* Checkmark inside custom checkbox */
.ennu-custom-checkbox::after {
    content: '';
    display: block;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-top: -2px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* Checked state */
.ennu-consent-checkbox-label.is-checked .ennu-custom-checkbox {
    background: #2e7d32;
    border-color: #2e7d32;
}

.ennu-consent-checkbox-label.is-checked .ennu-custom-checkbox::after {
    opacity: 1;
}

/* Hover state */
.ennu-consent-checkbox-label:hover .ennu-custom-checkbox {
    border-color: #333;
}

/* Disabled state */
#ennu-consent-checkbox:disabled ~ .ennu-custom-checkbox {
    background: #f5f5f5;
    border-color: #ccc;
    cursor: not-allowed;
}

/* Focus state */
#ennu-consent-checkbox:focus ~ .ennu-custom-checkbox {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

.ennu-consent-checkbox-text {
    font-size: 10px;
    color: #333;
    font-weight: 400;
    line-height: 1.4;
    font-family: Georgia, "Times New Roman", Times, serif;
    flex: 1;
}

.ennu-consent-checkbox-text .required {
    color: #900;
    font-weight: 600;
}

/* Validation Message - minimal */
.ennu-consent-validation-message {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 0;
    font-size: 10px;
    font-family: Georgia, "Times New Roman", Times, serif;
}

.ennu-consent-validation-message.error {
    background: #fff5f5;
    border: 1px solid #dcc;
    color: #800;
}

.ennu-consent-validation-message.success {
    background: #f5fff5;
    border: 1px solid #cdc;
    color: #060;
}

.ennu-consent-validation-message.info {
    background: #f5f5ff;
    border: 1px solid #ccd;
    color: #006;
}

/* Loading State */
.ennu-consent-wrapper.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ennu-consent-wrapper {
        padding: 12px;
        margin: 12px 0;
    }

    .ennu-consent-header h3 {
        font-size: 12px;
    }

    .ennu-consent-scrollbox {
        max-height: 200px;
        padding: 10px;
    }

    .ennu-document-text {
        font-size: 9px;
    }
}

/* Print Styles */
@media print {
    .ennu-consent-scrollbox {
        max-height: none;
        overflow: visible;
        border: none;
    }

    .ennu-scroll-indicator {
        display: none;
    }
}

/* Timer - hidden by default now */
.ennu-consent-timer {
    display: none;
}

/* Peptide-Specific - keep simple */
.ennu-consent-wrapper.ennu-consent-peptide .ennu-consent-checkbox-text {
    font-size: 10px;
    line-height: 1.4;
}
