/**
 * TNT Cookie Consent Banner Styles
 * 
 * Basic styling for the cookie consent banner.
 * Can be customized per brand while maintaining the required IDs/classes.
 */

#tnt-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 16px;
    z-index: 999999999999999;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

#tnt-cookie-banner .tnt-cookie-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px 45px;
    align-items: center;
    justify-content: center;
}

#tnt-cookie-banner p {
    margin: 0;
    line-height: 1.5;
    color: #fff;
    font-size: 17px;
    text-align: left;
    max-width: 360px;
}

.tnt-cookie-options {
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.tnt-cookie-options label {
    margin-bottom: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    display: flex;
}

.tnt-cookie-options label:last-child {
    margin-bottom: 0;
}

.tnt-cookie-options input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.tnt-cookie-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.tnt-cookie-buttons button {
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s, opacity 0.2s;
}

.tnt-cookie-buttons button:hover {
    opacity: 0.9;
}

.tnt-cookie-buttons button:active {
    opacity: 0.8;
}

/* Accept all button - primary action */
#tnt-consent-accept-all {
    background: #4CAF50;
    color: #fff;
}

#tnt-consent-accept-all:hover {
    background: #45a049;
}

/* Save choices button - secondary action */
#tnt-consent-save {
    background: #2196F3;
    color: #fff;
}

#tnt-consent-save:hover {
    background: #0b7dda;
}

/* Reject non-essential button - tertiary action */
#tnt-consent-reject {
    background: #757575;
    color: #fff;
}

#tnt-consent-reject:hover {
    background: #616161;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    #tnt-cookie-banner {
        padding: 12px;
        font-size: 13px;
    }

    #tnt-cookie-banner .tnt-cookie-inner {
        flex-direction: column;
        align-items: stretch;
    }

    #tnt-cookie-banner p {
        margin-bottom: 12px;
        margin: 0 auto;
    }

    .tnt-cookie-options {
        margin-bottom: 12px;
        margin: 0 auto;
    }

    .tnt-cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .tnt-cookie-buttons button {
        width: 100%;
        padding: 10px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    #tnt-cookie-banner {
        background: #000;
        border-top: 2px solid #fff;
    }

    .tnt-cookie-buttons button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .tnt-cookie-buttons button {
        transition: none;
    }
}
