/**
 * TODEY Consent Engine - Luxury Minimalist Dark Mode Styles
 * Matches TODEY.XYZ Design System tokens: #030303 background, #ffffff14 borders, #ff4400 accent.
 */

#todey-consent-modal,
#todey-consent-modal * {
    box-sizing: border-box !important;
}

#todey-consent-modal.todey-consent-wrapper {
    position: fixed !important;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    left: calc(24px + env(safe-area-inset-left, 0px)) !important;
    z-index: 999999 !important;
    max-width: 380px !important;
    width: calc(100% - 48px) !important;
    pointer-events: none !important;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 0 !important;
    padding: 0 !important;
}

#todey-consent-modal.todey-consent-wrapper.todey-consent-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#todey-consent-modal.todey-consent-wrapper.todey-consent-closing {
    opacity: 0 !important;
    transform: translateY(12px) scale(0.98) !important;
    transition: opacity 0.25s ease-in, transform 0.25s ease-in !important;
}

#todey-consent-modal .todey-consent-card {
    pointer-events: auto !important;
    background: #030303 !important;
    background-color: #030303 !important;
    border: 1px solid #ffffff14 !important;
    border-radius: 4px !important;
    padding: 18px 20px !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.9) !important;
    position: relative !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    margin: 0 !important;
}

/* Header Tag */
#todey-consent-modal .todey-consent-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

#todey-consent-modal .todey-consent-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#todey-consent-modal .todey-consent-tag-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #ff4400 !important;
    background-color: #ff4400 !important;
    box-shadow: 0 0 6px rgba(255, 68, 0, 0.6) !important;
    flex-shrink: 0 !important;
}

#todey-consent-modal .todey-consent-tag-text {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    color: #ff4400 !important;
    text-transform: uppercase !important;
    line-height: normal !important;
}

/* Body Content */
#todey-consent-modal .todey-consent-body {
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
}

#todey-consent-modal .todey-consent-text {
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    color: #b3b3b3 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

#todey-consent-modal .todey-consent-link {
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.14) !important;
    padding-bottom: 2px !important;
    white-space: nowrap !important;
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out !important;
}

#todey-consent-modal .todey-consent-link:hover {
    color: #ff4400 !important;
    border-color: #ff4400 !important;
}

/* Action Buttons Container */
#todey-consent-modal .todey-consent-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Common Button Defensive Resets */
#todey-consent-modal .todey-consent-btn {
    box-sizing: border-box !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    text-align: center !important;
    line-height: normal !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Clean Rectangular Accept Button */
#todey-consent-modal .todey-consent-btn-accept {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ff4400 !important;
    background-color: #ff4400 !important;
    border: 1px solid #ff4400 !important;
    color: #000000 !important;
    padding: 7px 18px !important;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out !important;
}

#todey-consent-modal .todey-consent-btn-accept .todey-btn-text,
#todey-consent-modal .todey-consent-btn-accept span {
    display: inline-block !important;
    color: #000000 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-transform: uppercase !important;
    line-height: inherit !important;
}

#todey-consent-modal .todey-consent-btn-accept:hover {
    background: #ff5500 !important;
    background-color: #ff5500 !important;
    border-color: #ff5500 !important;
    color: #000000 !important;
    transform: translateY(-2px) !important;
}

#todey-consent-modal .todey-consent-btn-accept:hover .todey-btn-text,
#todey-consent-modal .todey-consent-btn-accept:hover span {
    color: #000000 !important;
}

/* Decline Button */
#todey-consent-modal .todey-consent-btn-decline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #888888 !important;
    padding: 7px 16px !important;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s ease-in-out !important;
}

#todey-consent-modal .todey-consent-btn-decline span {
    display: inline-block !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-transform: uppercase !important;
    line-height: inherit !important;
}

#todey-consent-modal .todey-consent-btn-decline:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

#todey-consent-modal .todey-consent-btn-decline:hover span {
    color: #ffffff !important;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
    #todey-consent-modal.todey-consent-wrapper {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        left: calc(16px + env(safe-area-inset-left, 0px)) !important;
    }
}

@media (max-width: 480px) {
    #todey-consent-modal.todey-consent-wrapper {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        left: calc(12px + env(safe-area-inset-left, 0px)) !important;
        right: calc(12px + env(safe-area-inset-right, 0px)) !important;
        width: auto !important;
        max-width: 100% !important;
    }

    #todey-consent-modal .todey-consent-card {
        padding: 14px 16px !important;
    }

    #todey-consent-modal .todey-consent-header {
        margin-bottom: 6px !important;
    }

    #todey-consent-modal .todey-consent-body {
        margin-bottom: 12px !important;
    }

    #todey-consent-modal .todey-consent-text {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    #todey-consent-modal .todey-consent-actions {
        display: flex !important;
        gap: 8px !important;
        width: 100% !important;
    }

    #todey-consent-modal .todey-consent-btn-accept,
    #todey-consent-modal .todey-consent-btn-decline {
        flex: 1 !important;
        min-height: 38px !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
        text-align: center !important;
        justify-content: center !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

@media (max-width: 340px) {
    #todey-consent-modal .todey-consent-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }

    #todey-consent-modal .todey-consent-btn-accept,
    #todey-consent-modal .todey-consent-btn-decline {
        width: 100% !important;
    }
}
