/* TEG Cookie Consent — banner + cookie policy popup styles.
   Enqueued as a normal stylesheet (handle: tcc-consent-banner-style) so a theme or child theme
   can override it by enqueuing its own stylesheet with a dependency on this handle, or a site
   owner can override individual rules via the "Custom CSS" setting under Settings → Cookie
   Consent, which is always printed after this file. */

#tcc-banner *,
#tcc-banner *::before,
#tcc-banner *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
#tcc-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 99998;
}
#tcc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
#tcc-banner__inner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}
#tcc-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}
#tcc-banner__text {
    margin-bottom: 16px;
}
#tcc-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
#tcc-banner__actions button {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #333;
    transition: background 0.15s, border-color 0.15s;
}
#tcc-banner__actions button:hover {
    background: #f5f5f5;
}
#tcc-banner__accept,
#tcc-banner__reject,
#tcc-banner__save {
    background: #1a73e8 !important;
    color: #fff !important;
    padding: 8px 16px;
    border-color: #1a73e8 !important;
}
#tcc-banner__accept:hover,
#tcc-banner__reject:hover,
#tcc-banner__save:hover {
    background: #1557b0 !important;
    border-color: #1557b0 !important;
}
#tcc-banner__customize-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    display: none;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
#tcc-banner__customize-panel.tcc-visible {
    display: flex;
}
#tcc-banner .tcc-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}
#tcc-banner .tcc-toggle input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #1a73e8;
}
#tcc-banner__policy-link {
    color: #1a73e8;
    text-decoration: underline;
}
button#tcc-banner__policy-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
#tcc-banner label {
    color: black;
}
#tcc-policy-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}
#tcc-policy-modal.tcc-visible {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#tcc-policy-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
#tcc-policy-modal__inner {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px 24px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
#tcc-policy-modal__close {
    position: absolute;
    top: 4px;
    right: 4px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 8px;
}
#tcc-policy-modal__close:hover {
    color: #333;
}
#tcc-policy-modal__cookies-title {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: 600;
}
