/**
 * CozyVora DPDP Consent Banner, Modal & Auth Overlay Styles
 * Digital Personal Data Protection Act (India) Compliance
 */

/* Strict SVG sizing across all compliance components to prevent FOUC */
#cozyvora-dpdp-banner svg,
.cozyvora-dpdp-checkout-title svg,
.cozyvora-account-privacy-panel svg,
#cozyvora-unverified-bar svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Compact low-profile bottom banner */
#cozyvora-dpdp-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background-color: rgba(18, 20, 26, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f3f4f6;
    padding: 0.85rem 1.5rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.875rem;
    line-height: 1.45;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

#cozyvora-dpdp-banner.is-visible {
    display: block !important;
    animation: cozyvoraSlideUp 0.25s ease-out forwards;
}

@keyframes cozyvoraSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cozyvora-dpdp-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 860px) {
    .cozyvora-dpdp-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cozyvora-dpdp-text {
    flex: 1;
}

.cozyvora-dpdp-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.cozyvora-dpdp-text p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.8125rem;
}

.cozyvora-dpdp-text a {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cozyvora-dpdp-text a:hover {
    color: #93c5fd;
}

.cozyvora-dpdp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.cozyvora-dpdp-btn {
    padding: 0.42rem 0.9rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.cozyvora-dpdp-btn-primary {
    background-color: #2563eb;
    color: #ffffff;
}

.cozyvora-dpdp-btn-primary:hover {
    background-color: #1d4ed8;
}

.cozyvora-dpdp-btn-secondary {
    background-color: #374151;
    color: #ffffff;
}

.cozyvora-dpdp-btn-secondary:hover {
    background-color: #4b5563;
}

.cozyvora-dpdp-btn-outline {
    background-color: transparent;
    color: #d1d5db;
    border: 1px solid #4b5563;
}

.cozyvora-dpdp-btn-outline:hover {
    background-color: #262626;
    color: #ffffff;
    border-color: #6b7280;
}

/* Modal Overlay */
#cozyvora-dpdp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#cozyvora-dpdp-modal-overlay.is-open {
    display: flex;
}

.cozyvora-dpdp-modal {
    background-color: #1a1d24;
    color: #f3f4f6;
    max-width: 580px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cozyvora-dpdp-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cozyvora-dpdp-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.cozyvora-dpdp-modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.cozyvora-dpdp-modal-close:hover {
    color: #ffffff;
}

.cozyvora-dpdp-modal-body {
    padding: 1.25rem 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.cozyvora-dpdp-category {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cozyvora-dpdp-category:last-child {
    border-bottom: none;
}

.cozyvora-dpdp-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.cozyvora-dpdp-category-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9375rem;
}

.cozyvora-dpdp-category-desc {
    margin: 0;
    color: #9ca3af;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.cozyvora-dpdp-badge-essential {
    font-size: 0.72rem;
    background-color: #064e3b;
    color: #34d399;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-weight: 500;
}

/* Switches */
.cozyvora-dpdp-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cozyvora-dpdp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cozyvora-dpdp-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #374151;
    transition: 0.2s;
    border-radius: 24px;
}

.cozyvora-dpdp-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.cozyvora-dpdp-switch input:checked + .cozyvora-dpdp-slider {
    background-color: #2563eb;
}

.cozyvora-dpdp-switch input:checked + .cozyvora-dpdp-slider:before {
    transform: translateX(20px);
}

.cozyvora-dpdp-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background-color: #14171e;
}

/* Floating badge suppressed permanently */
#cozyvora-dpdp-badge-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Checkout DPDP Checkbox styles */
.cozyvora-dpdp-checkout-group {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cozyvora-dpdp-checkout-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cozyvora-dpdp-checkbox-item {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cozyvora-dpdp-checkbox-item:last-child {
    margin-bottom: 0;
}

.cozyvora-dpdp-checkbox-item input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.cozyvora-dpdp-checkbox-item label {
    cursor: pointer;
    color: #374151;
}

.cozyvora-dpdp-required {
    color: #dc2626;
    font-weight: bold;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * LUXURY GOOGLE SIGN-IN LOADING OVERLAY
 * ───────────────────────────────────────────────────────────────────────────── */
#cozyvora-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999999;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cozyvora-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.cozyvora-auth-modal {
    position: relative;
    width: 90%;
    max-width: 390px;
    padding: 2.25rem 2rem;
    background: #131722;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    text-align: center;
    color: #ffffff;
    animation: cvAuthPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cvAuthPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cozyvora-auth-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    position: relative;
}

.cozyvora-auth-checkmark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    stroke-width: 2.5;
    stroke: #10b981;
    stroke-miterlimit: 10;
}

.cozyvora-auth-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2.5;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: none;
    animation: cvStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.cozyvora-auth-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #10b981;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: cvStroke 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.45s forwards;
}

@keyframes cvStroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.cozyvora-auth-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
    color: #f9fafb;
}

.cozyvora-auth-subtitle {
    font-size: 0.84rem;
    color: #9ca3af;
    margin: 0 0 1.5rem;
    line-height: 1.45;
}

.cozyvora-auth-loader {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.85rem;
    position: relative;
}

.cozyvora-auth-progress {
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 999px;
    position: absolute;
    animation: cvAuthBar 1.5s ease-in-out infinite;
}

@keyframes cvAuthBar {
    0% { left: -45%; }
    50% { left: 40%; width: 55%; }
    100% { left: 100%; width: 45%; }
}

.cozyvora-auth-note {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}