/* Standalone CSS for Cookie Consent Components (Landing Page) */

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* Utilities */
.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

.w-full {
    width: 100%;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.min-h-screen {
    min-height: 100vh;
}

.max-h-\[70vh\] {
    max-height: 70vh;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.pl-4 {
    padding-left: 1rem;
}

.bg-white {
    background-color: #ffffff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-black\/60 {
    background-color: rgba(0, 0, 0, 0.6);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-l-2 {
    border-left-width: 2px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-blue-200 {
    border-color: #bfdbfe;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.cookie-consent-banner__content {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.cookie-consent-banner__inner {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cookie-consent-banner__inner {
        padding: 2rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-consent-banner__info {
    flex: 1 1 0%;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-consent-banner__icon-wrapper {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.cookie-consent-banner__icon {
    color: #06485b !important;
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.cookie-consent-banner__text {
    flex: 1 1 0%;
}

.cookie-consent-banner__title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: #1f2937 !important;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.cookie-consent-banner__description {
    color: #4b5563 !important;
    font-size: 0.875rem;
    line-height: 1.625;
    margin: 0;
}

.cookie-consent-banner__link {
    color: #06485b !important;
    font-weight: 600;
    text-decoration: underline;
    transition: color 150ms;
}

.cookie-consent-banner__link:hover {
    color: #054153 !important;
}

.cookie-consent-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .cookie-consent-banner__actions {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .cookie-consent-banner__actions {
        flex-shrink: 0;
    }
}

/* ========================================
   BUTTONS
   ======================================== */
/* ========================================
   BUTTONS
   ======================================== */
.cookie-consent-btn {
    font-weight: 600;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 0.5rem;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    /* Changed to 1px for cleaner look */
    font-size: 0.95rem;
    /* Slightly smaller for better fit */
    line-height: 1.5rem;
    letter-spacing: 0.025em;
}

.cookie-consent-btn:focus {
    outline: 2px solid #06485b;
    outline-offset: 2px;
}

.cookie-consent-btn:hover {
    transform: translateY(-1px);
    /* Lift effect */
}

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

.cookie-consent-btn__content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Reject Button (Clean White/Outline) */
.cookie-consent-btn--reject {
    background-color: #ffffff !important;
    border-color: #d1d5db !important;
    color: #4b5563 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.cookie-consent-btn--reject:hover {
    background-color: #f9fafb !important;
    border-color: #9ca3af !important;
    color: #1f2937 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Config Button (Secondary) */
.cookie-consent-btn--config {
    background-color: #2aafe5 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(42, 175, 229, 0.3), 0 2px 4px -1px rgba(42, 175, 229, 0.15);
}

.cookie-consent-btn--config:hover {
    background-color: #25a8de !important;
    box-shadow: 0 10px 15px -3px rgba(42, 175, 229, 0.4), 0 4px 6px -2px rgba(42, 175, 229, 0.2);
}

/* Accept/Save Button (Primary) */
.cookie-consent-btn--accept,
.cookie-consent-btn--save {
    background-color: #06485b !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(6, 72, 91, 0.3), 0 2px 4px -1px rgba(6, 72, 91, 0.15);
}

.cookie-consent-btn--accept:hover,
.cookie-consent-btn--save:hover {
    background-color: #054153 !important;
    box-shadow: 0 10px 15px -3px rgba(6, 72, 91, 0.4), 0 4px 6px -2px rgba(6, 72, 91, 0.2);
}

/* ========================================
   MODAL COMPONENT
   ======================================== */
.cookie-consent-modal {
    /* Container logic handled by Alpine */
}

.cookie-consent-modal__backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998 !important;
}

.cookie-consent-modal__container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999 !important;
    overflow-y: auto;
}

.cookie-consent-modal__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    padding-top: 1rem;
    padding-bottom: 5rem;
}

.cookie-consent-modal__content {
    display: inline-block;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: left;
    overflow: hidden;
    transform: translate(0, 0);
    transition: all 300ms;
    width: 100%;
    max-width: 42rem;
}

.cookie-consent-modal__header {
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-consent-modal__header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-consent-modal__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937 !important;
    margin: 0;
    display: flex;
    align-items: center;
}

.cookie-consent-modal__icon {
    margin-right: 0.5rem;
    color: #06485b !important;
}

.cookie-consent-modal__close {
    color: #9ca3af !important;
    transition: color 150ms;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
}

.cookie-consent-modal__close i {
    color: #9ca3af !important;
    /* Force icon color */
}

.cookie-consent-modal__close:hover {
    color: #4b5563 !important;
}

.cookie-consent-modal__close:hover i {
    color: #4b5563 !important;
}

.cookie-consent-modal__body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.cookie-consent-modal__description {
    color: #4b5563 !important;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.cookie-consent-modal__categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent-category {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.cookie-consent-category--necessary {
    background-color: #f9fafb;
}

.cookie-consent-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cookie-consent-category__info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.cookie-consent-category__icon {
    font-size: 1.25rem;
}

.cookie-consent-category__icon--success {
    color: #5cb85c !important;
}

.cookie-consent-category__icon--secondary {
    color: #2aafe5 !important;
}

.cookie-consent-category__icon--info {
    color: #3498db !important;
}

.cookie-consent-category__icon--warning {
    color: #f39c12 !important;
}

.cookie-consent-category__title {
    font-weight: 700;
    color: #1f2937 !important;
    margin: 0;
    font-size: 1rem;
}

.cookie-consent-category__subtitle {
    font-size: 0.875rem;
    color: #4b5563 !important;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.cookie-consent-category__toggle {
    flex-shrink: 0;
}

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

.toggle-switch__input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-switch__slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch__input:checked+.toggle-switch__slider {
    background-color: #06485b;
}

.toggle-switch__input:focus+.toggle-switch__slider {
    box-shadow: 0 0 1px #06485b;
}

.toggle-switch__input:checked+.toggle-switch__slider:before {
    transform: translateX(20px);
}

.toggle-switch--disabled .toggle-switch__slider {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.cookie-consent-category__details-wrapper {
    margin-top: 0.75rem;
}

.cookie-consent-category__details-btn {
    color: #06485b !important;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.cookie-consent-category__details-btn span,
.cookie-consent-category__details-btn i {
    color: #06485b !important;
    /* Force color on children */
}

.cookie-consent-category__details-btn:hover {
    color: #054153 !important;
}

.cookie-consent-category__details-btn:hover span,
.cookie-consent-category__details-btn:hover i {
    color: #054153 !important;
}

.cookie-consent-category__details {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563 !important;
    padding-left: 1rem;
    border-left: 2px solid #d1d5db;
}

.cookie-consent-category__details p {
    margin: 0.25rem 0;
    color: #4b5563 !important;
    /* Force color on paragraphs */
}

.cookie-consent-category__details strong {
    color: #1f2937 !important;
    /* Force darker color on strong tags */
}

.cookie-consent-modal__policy-link {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #1e40af !important;
}

.cookie-consent-modal__policy-link p,
.cookie-consent-modal__policy-link i,
.cookie-consent-modal__policy-link a {
    color: #1e40af !important;
    /* Force color on all children */
}

.cookie-consent-modal__policy-link a {
    font-weight: 600;
    text-decoration: underline;
}

.cookie-consent-modal__policy-link a:hover {
    color: #1e3a8a !important;
}

.cookie-consent-modal__footer {
    padding: 1rem 1.5rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.cookie-consent-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: flex-end;
}

@media (min-width: 640px) {
    .cookie-consent-modal__actions {
        flex-direction: row;
    }
}

/* Utilities */
.hidden {
    display: none;
}

.block {
    display: block;
}

/* Modal Fixes for Landing Page */
.cookie-consent-modal,
#cookie-preferences-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647 !important;
}

/* Support for Tailwind JIT class used in Blade */
.z-\[9999\] {
    z-index: 2147483647 !important;
}

/* Support for Tailwind JIT class used in Blade */
.z-\[9999\] {
    z-index: 9999 !important;
}