/* Kajal Digital — Privacy Consent Component
   Version 1.0
   Reusable ATG Web Component
*/

.consent-panel[hidden] {
    display: none !important;
}

.consent-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;

    width: 400px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    padding: 24px;

    background: #12202b;
    color: #f8f2e7;
    border: 1px solid rgba(197, 168, 114, 0.45);
    border-radius: 16px;

    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.consent-panel h3 {
    margin: 0 0 12px;
    font-family: Georgia, serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #c5a872;
}

.consent-panel p {
    margin: 0 0 20px;
    color: #bdcfcb;
    font-size: 0.875rem;
    line-height: 1.7;
}

.consent-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.consent-actions button {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #c5a872;
    border-radius: 8px;
    background: transparent;
    color: #c5a872;

    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;

    transition: background 0.2s ease,
                color 0.2s ease;
}

.consent-actions button:hover {
    background: #c5a872;
    color: #12202b;
}

.consent-panel a {
    color: #bdcfcb;
    font-size: 0.75rem;
    text-decoration: underline;
}

.consent-panel a:hover {
    color: #f8f2e7;
}

.consent-panel button:focus-visible,
.consent-panel a:focus-visible {
    outline: 2px solid #f8f2e7;
    outline-offset: 4px;
}

.privacy-preferences {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.privacy-preferences:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .consent-panel {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .consent-actions button {
        transition: none;
    }
}