/* Esherpa Cookie Consent Styles */

.esherpa-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.esherpa-cookie-banner.bottom {
    bottom: 0;
    transform: translateY(100%);
}

.esherpa-cookie-banner.bottom.show {
    transform: translateY(0);
}

.esherpa-cookie-banner.top {
    top: 0;
    transform: translateY(-100%);
}

.esherpa-cookie-banner.top.show {
    transform: translateY(0);
}

.esherpa-cookie-banner.light {
    background-color: #ffffff;
    color: #333333;
    border-top: 1px solid #e1e1e1;
}

.esherpa-cookie-banner.dark {
    background-color: #333333;
    color: #ffffff;
    border-top: 1px solid #555555;
}

.esherpa-cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.esherpa-cookie-banner-content {
    flex: 1;
}

.esherpa-cookie-banner-text {
    margin: 0 0 10px 0;
}

.esherpa-cookie-banner-privacy-link {
    color: inherit;
    text-decoration: underline;
}

.esherpa-cookie-banner-privacy-link:hover {
    opacity: 0.8;
}

.esherpa-cookie-banner-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.esherpa-cookie-banner-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.esherpa-cookie-banner-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.esherpa-cookie-banner-btn.accept {
    background-color: #007cba;
    color: #ffffff;
}

.esherpa-cookie-banner-btn.accept:hover {
    background-color: #005a87;
}

.esherpa-cookie-banner-btn.decline {
    background-color: transparent;
    color: inherit;
    border: 1px solid currentColor;
}

.esherpa-cookie-banner-btn.decline:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.esherpa-cookie-banner-btn.customize {
    background-color: transparent;
    color: inherit;
    text-decoration: underline;
}

.esherpa-cookie-banner-btn.customize:hover {
    opacity: 0.8;
}

/* Cookie Preferences Modal */
.esherpa-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.esherpa-cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.esherpa-cookie-modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.esherpa-cookie-modal.show .esherpa-cookie-modal-content {
    transform: translateY(0);
}

.esherpa-cookie-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.esherpa-cookie-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.esherpa-cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.esherpa-cookie-modal-body {
    padding: 20px 30px;
}

.esherpa-cookie-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.esherpa-cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.esherpa-cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.esherpa-cookie-category-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.esherpa-cookie-toggle {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.esherpa-cookie-toggle.active {
    background-color: #007cba;
}

.esherpa-cookie-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.esherpa-cookie-toggle.active .esherpa-cookie-toggle-slider {
    transform: translateX(26px);
}

.esherpa-cookie-category-description {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.esherpa-cookie-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e1e1e1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.esherpa-cookie-modal.dark {
    background-color: #333333;
    color: #ffffff;
}

.esherpa-cookie-modal.dark .esherpa-cookie-modal-content {
    background-color: #333333;
    color: #ffffff;
}

.esherpa-cookie-modal.dark .esherpa-cookie-modal-header {
    border-bottom-color: #555;
}

.esherpa-cookie-modal.dark .esherpa-cookie-category {
    border-bottom-color: #555;
}

.esherpa-cookie-modal.dark .esherpa-cookie-modal-footer {
    border-top-color: #555;
}

.esherpa-cookie-modal.dark .esherpa-cookie-category-description {
    color: #ccc;
}

/* Essential Only Banner */
.esherpa-essential-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.esherpa-essential-banner.bottom {
    bottom: 0;
    transform: translateY(100%);
}

.esherpa-essential-banner.bottom.show {
    transform: translateY(0);
}

.esherpa-essential-banner.top {
    top: 0;
    transform: translateY(-100%);
}

.esherpa-essential-banner.top.show {
    transform: translateY(0);
}

.esherpa-essential-banner.light {
    background-color: #f8f9fa;
    color: #333333;
    border-top: 1px solid #e1e1e1;
}

.esherpa-essential-banner.dark {
    background-color: #2d3748;
    color: #ffffff;
    border-top: 1px solid #4a5568;
}

.esherpa-essential-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.esherpa-essential-banner-content {
    flex: 1;
}

.esherpa-essential-banner-text {
    margin: 0;
    font-size: 14px;
}

.esherpa-essential-banner-privacy-link {
    color: inherit;
    text-decoration: underline;
    margin-left: 5px;
}

.esherpa-essential-banner-privacy-link:hover {
    opacity: 0.8;
}

.esherpa-essential-banner-buttons {
    flex-shrink: 0;
}

.esherpa-essential-banner-btn {
    padding: 6px 12px;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.esherpa-essential-banner-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.esherpa-essential-banner-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .esherpa-cookie-banner-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .esherpa-cookie-banner-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .esherpa-cookie-banner-btn {
        flex: 1;
        text-align: center;
    }

    .esherpa-cookie-modal-content {
        width: 95%;
        margin: 20px;
    }

    .esherpa-cookie-modal-header,
    .esherpa-cookie-modal-body,
    .esherpa-cookie-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}