/* Tia Tula Consent Mode Styles */

:root {
    --tt-primary: #FE7B0F;
    --tt-primary-hover: #e56a00;
    --tt-text: #333;
    --tt-bg: #fff;
    --tt-overlay: rgba(0, 0, 0, 0.7);
    --tt-border: #ddd;
}

/* Modal Overlay (formerly Banner) */
.tt-consent-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--tt-overlay);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tt-consent-content {
    background-color: var(--tt-bg);
    max-width: 500px;
    width: calc(90% - 20px);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.tt-consent-content h3 {
    margin: 0;
    font-size: 22px;
    color: var(--tt-text);
    font-weight: 600;
}

.tt-consent-content p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    font-family: Verdana, Amble, Arial;
}

.tt-consent-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Buttons */
.tt-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-weight: 600;
    font-family: 'Verdana', sans-serif;
}

.tt-btn-primary {
    background-color: var(--tt-primary);
    color: white;
    box-shadow: 0 2px 5px rgba(254, 123, 15, 0.3);
}

.tt-btn-primary:hover {
    background-color: var(--tt-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(254, 123, 15, 0.4);
}

.tt-btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.tt-btn-secondary:hover {
    background-color: #e5e5e5;
}

.tt-btn-link {
    background: none;
    color: #666;
    text-decoration: underline;
    padding: 10px;
}

.tt-btn-link:hover {
    color: var(--tt-primary);
}

/* Configuration Modal (Nested or Separate) */
.tt-consent-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Slightly lighter overlay on top if needed */
    z-index: 1000000;
    overflow-y: auto;
}

.tt-modal-content {
    background-color: var(--tt-bg);
    margin: 50px auto;
    padding: 0;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-family: 'Verdana', sans-serif;
    position: relative;
}

.tt-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--tt-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tt-modal-header h3 {
    margin: 0;
    color: var(--tt-text);
    font-size: 18px;
}

.tt-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.tt-close:hover {
    color: var(--tt-text);
}

.tt-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.tt-consent-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tt-consent-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tt-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.tt-category-name {
    font-weight: bold;
    margin-left: 15px;
    font-size: 16px;
    color: #333;
}

.tt-category-desc {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.tt-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--tt-border);
    text-align: right;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

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

.tt-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tt-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.tt-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.tt-slider {
    background-color: var(--tt-primary);
}

input:focus+.tt-slider {
    box-shadow: 0 0 1px var(--tt-primary);
}

input:checked+.tt-slider:before {
    transform: translateX(22px);
}

/* Rounded sliders */
.tt-slider.round {
    border-radius: 34px;
}

.tt-slider.round:before {
    border-radius: 50%;
}

input:disabled+.tt-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .tt-consent-content {
        padding: 20px;
    }

    /*box-shadow: 0 2px 5px rgba(254, 123, 15, 0.3);*/
}

.tt-btn-primary:hover {
    background-color: var(--tt-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(254, 123, 15, 0.4);
}

.tt-btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.tt-btn-secondary:hover {
    background-color: #e5e5e5;
}

.tt-btn-link {
    background: none;
    color: #666;
    text-decoration: underline;
    padding: 10px;
}

.tt-btn-link:hover {
    color: var(--tt-primary);
}

/* Configuration Modal (Nested or Separate) */
.tt-consent-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Slightly lighter overlay on top if needed */
    z-index: 1000000;
    overflow-y: auto;
}

.tt-modal-content {
    background-color: var(--tt-bg);
    margin: 50px auto;
    padding: 0;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-family: 'Verdana', sans-serif;
    position: relative;
}

.tt-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--tt-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tt-modal-header h3 {
    margin: 0;
    color: var(--tt-text);
    font-size: 18px;
}

.tt-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.tt-close:hover {
    color: var(--tt-text);
}

.tt-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.tt-consent-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tt-consent-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tt-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.tt-category-name {
    font-weight: bold;
    margin-left: 15px;
    font-size: 16px;
    color: #333;
}

.tt-category-desc {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.tt-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--tt-border);
    text-align: right;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

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

.tt-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tt-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.tt-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.tt-slider {
    background-color: var(--tt-primary);
}

input:focus+.tt-slider {
    box-shadow: 0 0 1px var(--tt-primary);
}

input:checked+.tt-slider:before {
    transform: translateX(22px);
}

/* Rounded sliders */
.tt-slider.round {
    border-radius: 34px;
}

.tt-slider.round:before {
    border-radius: 50%;
}

input:disabled+.tt-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .tt-consent-content {
        padding: 20px;
    }

    /*box-shadow: 0 2px 5px rgba(254, 123, 15, 0.3);*/
}

.tt-btn-primary:hover {
    background-color: var(--tt-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(254, 123, 15, 0.4);
}

.tt-btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.tt-btn-secondary:hover {
    background-color: #e5e5e5;
}

.tt-btn-link {
    background: none;
    color: #666;
    text-decoration: underline;
    padding: 10px;
}

.tt-btn-link:hover {
    color: var(--tt-primary);
}

/* Configuration Modal (Nested or Separate) */
.tt-consent-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Slightly lighter overlay on top if needed */
    z-index: 1000000;
    overflow-y: auto;
}

.tt-modal-content {
    background-color: var(--tt-bg);
    margin: 50px auto;
    padding: 0;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-family: 'Verdana', sans-serif;
    position: relative;
}

.tt-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--tt-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tt-modal-header h3 {
    margin: 0;
    color: var(--tt-text);
    font-size: 18px;
}

.tt-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.tt-close:hover {
    color: var(--tt-text);
}

.tt-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.tt-consent-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tt-consent-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tt-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.tt-category-name {
    font-weight: bold;
    margin-left: 15px;
    font-size: 16px;
    color: #333;
}

.tt-category-desc {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.tt-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--tt-border);
    text-align: right;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

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

.tt-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tt-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.tt-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.tt-slider {
    background-color: var(--tt-primary);
}

input:focus+.tt-slider {
    box-shadow: 0 0 1px var(--tt-primary);
}

input:checked+.tt-slider:before {
    transform: translateX(22px);
}

/* Rounded sliders */
.tt-slider.round {
    border-radius: 34px;
}

.tt-slider.round:before {
    border-radius: 50%;
}

input:disabled+.tt-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .tt-consent-content {
        padding: 20px;
    }

    .tt-consent-buttons {
        flex-direction: column;
        width: 100%;
    }

    .tt-btn {
        width: 100%;
    }
}

/* Reconsent Icon */
.tt-reconsent-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 999990;
    transition: transform 0.3s ease;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 7px 7px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    overflow: hidden;
}

.tt-reconsent-icon:hover {
    transform: scale(1.1) rotate(10deg);
}

.tt-reconsent-icon img {
    width: 150%;
    height: 150%;
    object-fit: contain;
}