/* YG Cookie Consent - Premium Styles */

/* Container & Backdrop */
.ygcc-container {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    direction: rtl;
}

.ygcc-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999998;
}

/* Position: Footer */
.ygcc-pos-footer {
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass through around the banner */
}

.ygcc-pos-footer .ygcc-banner {
    pointer-events: auto;
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Position: Center (Modal-like banner) */
.ygcc-pos-center {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ygcc-pos-center .ygcc-banner {
    pointer-events: auto;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Banner Styles */
.ygcc-banner {
    background: #fff;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    animation: ygcc-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ygcc-content {
    flex: 1;
    min-width: 280px;
}

.ygcc-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.ygcc-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.85;
}

.ygcc-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    text-decoration: underline;
    color: inherit;
    opacity: 0.7;
}

.ygcc-link:hover {
    opacity: 1;
}

.ygcc-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.ygcc-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    outline: none;
}

.ygcc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ygcc-btn:active {
    transform: translateY(0);
}

.ygcc-btn-primary {
    /* bg color set inline */
    border: none;
}

.ygcc-btn-outline {
    background: transparent;
    /* border color set inline */
}

.ygcc-btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Modal Styles */
.ygcc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    width: 90%;
    max-width: 600px;
    pointer-events: auto;
}

.ygcc-modal-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.ygcc-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ygcc-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.ygcc-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    line-height: 1;
}

.ygcc-close:hover {
    opacity: 1;
}

.ygcc-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.ygcc-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: flex-end;
}

/* Options / Toggles */
.ygcc-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ygcc-option:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ygcc-option-info {
    flex: 1;
    padding-left: 20px;
}

.ygcc-option-title {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.ygcc-option-desc {
    display: block;
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.4;
}

/* Toggle Switch */
.ygcc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.ygcc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #48bb78;
    /* Green for active */
}

input:focus+.slider {
    box-shadow: 0 0 1px #48bb78;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.ygcc-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ygcc-toggle.disabled .slider {
    background-color: #48bb78;
    /* Always green for necessary */
    cursor: not-allowed;
}

/* Animations */
@keyframes ygcc-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .ygcc-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .ygcc-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 16px;
    }

    .ygcc-btn {
        flex: 1;
        text-align: center;
    }
}