/* Cookie Consent Banner */
.ir-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    z-index: 9999;
    font-family: 'Nunito', sans-serif;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.ir-cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.ir-cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.ir-cookie-text {
    flex: 1;
    min-width: 300px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

.ir-cookie-text h3 {
    font-family: 'Nunito', sans-serif;
    color: #009B4D;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.ir-cookie-text a {
    color: #009B4D;
    text-decoration: underline;
}

.ir-cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ir-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem; /* Comic/Round style */
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.ir-btn-primary {
    background-color: #009B4D;
    color: white;
    box-shadow: 2px 2px 0 #000;
    border: 2px solid #000;
}

.ir-btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.ir-btn-primary:active {
    transform: translate(0, 0);
    box-shadow: 0 0 0 #000;
}

.ir-btn-secondary {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
}

.ir-btn-secondary:hover {
    background-color: #f5f5f5;
}

.ir-btn-link {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    font-size: 0.9rem;
    padding: 0.5rem;
    font-family: 'Nunito', sans-serif;
}

/* Settings Modal */
.ir-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ir-cookie-modal.show {
    display: flex;
}

.ir-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 3px solid #000;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.2);
}

.ir-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.ir-modal-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    color: #009B4D;
    margin: 0;
    font-weight: 800;
}

.ir-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.ir-cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.ir-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ir-cat-title {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ir-cat-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Switch */
.ir-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.ir-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ir-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
    border: 2px solid #000;
}

.ir-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    border: 1px solid #000;
}

input:checked + .ir-slider {
    background-color: #009B4D;
}

input:focus + .ir-slider {
    box-shadow: 0 0 1px #009B4D;
}

input:checked + .ir-slider:before {
    transform: translateX(22px);
}

input:disabled + .ir-slider {
    background-color: #99dbb8;
    cursor: not-allowed;
    opacity: 0.7;
}

.ir-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Legal Content Styles */
.ir-legal-content {
    font-family: 'Nunito', sans-serif;
    line-height: 1.8;
    color: #4b5563; /* muted-foreground */
}

.ir-legal-content p.last-updated {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 2rem;
}

.ir-legal-content h2 {
    font-family: 'Nunito', sans-serif;
    color: #111827; /* foreground */
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.ir-legal-content h3 {
    color: #111827;
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.ir-legal-content ul, 
.ir-legal-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.ir-legal-content li {
    margin-bottom: 0.5rem;
}

.ir-legal-content a {
    color: #009B4D;
    text-decoration: underline;
    transition: color 0.2s;
}

.ir-legal-content a:hover {
    color: #007a3d;
}

.ir-note-box {
    background-color: #f3f4f6;
    border-left: 4px solid #009B4D;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.ir-settings-embed {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .ir-cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    .ir-btn {
        width: 100%;
    }
    .ir-cookie-container {
        flex-direction: column;
        align-items: stretch;
    }
}
