@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* Base styles */
body {
    margin: 0;
    padding: 0;
    border: 0;
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    color: #000000;
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: #f9b101;
    border-color: #f9b101;
    color: #292929;
}

.btn-primary:hover {
    background-color: #e0a000;
    border-color: #e0a000;
}

.btn-outline-primary {
    color: #f9b101;
    border-color: #f9b101;
}

.btn-outline-primary:hover {
    background-color: #f9b101;
    border-color: #f9b101;
}

/* Footnotes styles */
.ac-gf-footnotes {
    background-color: #f5f5f7;
    color: #6e6e73;
    font-size: 12px;
    line-height: 1.4;
}

.ac-gf-footnotes .footnotes-list {
    margin: 0;
    padding-left: 1.25rem;
}

.ac-gf-footnotes .footnotes-list li {
    margin-bottom: 6px;
}

.ac-gf-footnotes a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .ac-gf-footnotes {
        font-size: 11px;
    }
}

/* Footnote reference styles */
.footnote-ref {
    color: inherit;
    font-size: 0.75em;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 1px;
    transition: text-decoration 0.2s ease;
}

.footnote-ref:hover {
    text-decoration: none;
}

sup {
    font-size: 0.75em;
    vertical-align: super;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    top: -0.1em;
}

/* Стилі для списку з іконками verified (Material Symbols) */
.checklist {
    padding-left: 0;
}

.checklist li {
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.checklist .checklist-icon {
    font-size: 1.3em;
    flex-shrink: 0;
    color: inherit;
    line-height: 1.2;
    font-variation-settings: 'wght' 400;
}

/* Pasta Selection Styles */
.pasta-selection {
    margin-bottom: 1.5rem;
}

.pasta-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .pasta-options {
        flex-direction: row;
        gap: 1rem;
    }
    
    .pasta-option {
        flex: 1;
    }
    
    .pasta-label {
        height: 100%;
        display: flex;
        align-items: center;
        padding: 1rem;
    }
    
    .pasta-content {
        width: 100%;
        text-align: left;
    }
}

.pasta-option {
    position: relative;
}

.pasta-label {
    display: block;
    cursor: pointer;
    padding: 0.75rem;
    border: 1px solid #838383;
    border-radius: 0.5rem;
    background-color: transparent;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px transparent;
    transition: all 0.2s ease;
    margin: 0;
}

.pasta-label:hover {
    border-color: rgba(0, 0, 0, 0.4);
    background-color: rgba(0, 0, 0, 0.05);
}

.pasta-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pasta-label input[type="radio"]:checked + .pasta-content {
    color: #000000;
}

.pasta-label input[type="radio"]:checked {
    border-color: #f9b101;
    background-color: rgba(249, 177, 1, 0.1);
    box-shadow: inset 0 0 0 1px #f9b101;
}

.pasta-label:has(input[type="radio"]:checked) {
    border-color: #f9b101;
    background-color: rgba(249, 177, 1, 0.1);
    box-shadow: inset 0 0 0 1px #f9b101;
}

.pasta-content {
    color: #333333;
    transition: color 0.2s ease;
}

.pasta-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: inherit;
}

.pasta-description {
    font-size: 0.85rem;
    opacity: 0.9;
    color: inherit;
}

/* Fallback for browsers that don't support :has() */
.pasta-label.checked {
    border-color: #f9b101;
    background-color: rgba(249, 177, 1, 0.1);
    box-shadow: inset 0 0 0 1px #f9b101;
}

.pasta-label.checked .pasta-content {
    color: #000000;
}

@media (max-width: 768px) {
    .pasta-label {
        padding: 0.625rem;
    }
    
    .pasta-name {
        font-size: 0.9rem;
    }
    
    .pasta-description {
        font-size: 0.8rem;
    }
}
