/* =========================
Popup
========================= */
:root {
    --tcm-primary-bg: #35003d;
    --tcm-text-color: #ffffff;
}

.tcm-cookie-popup{
    position:fixed;
    left:20px;
    bottom:20px;
    width:420px;
    background:#fff;
    border-radius:4px;
    box-shadow:0 5px 25px rgba(0,0,0,.15);
    border:1px solid #ddd;
    z-index:999999;
}

.tcm-popup-content{
    padding:24px;
}

.tcm-popup-title{
    margin:0 0 12px;
    font-size:18px;
    font-weight:700;
    color:#111;
}

.tcm-popup-description{
    margin:0 0 20px;
    font-size:15px;
    line-height:1.7;
    color:#555;
}

.tcm-buttons{
    display:flex;
    gap:10px;
}

.tcm-buttons button{
    height:42px;
    padding:0 22px;
    border-radius:2px;
    cursor:pointer;
    font-size:14px;
}

.tcm-accept-btn{
    background: var(--tcm-primary-bg);
    border:none;
    color:#fff;
}

.tcm-reject-btn{
    background:#fff;
    border:1px solid #ccc;
}

.tcm-customize-btn{
    background:#fff;
    border:1px solid #ccc;
}

/* =========================
Sticky Button
========================= */
.tcm-sticky-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background: var(--tcm-primary-bg);
    color: #fff;
    padding: 4px;
    border-radius: 100%;
    cursor: pointer;
    margin: 0;
    z-index: 999;
    font-size: 0;
}

.tcm-sticky-btn-text {
    color: #fff;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;

    position: fixed;
    bottom: 35px;
    left: 88px;

    background: var(--tcm-primary-bg);
    padding: 6px 12px;
    border-radius: 6px;
    line-height: 1;
    font-size: 16px;
    white-space: nowrap;
}

/* sibling hover */
.tcm-sticky-btn:hover + .tcm-sticky-btn-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.tcm-sticky-btn:hover svg {
    transform: rotate(10deg);
    transition: transform 0.3s ease;
}
/* =========================
Modal
========================= */

.tcm-modal{
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.45);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999999;
}

.tcm-modal.active{
    display:flex;
}

.tcm-modal-content{
    width:850px;
    max-width:95%;
    max-height:90vh;
    overflow:auto;
    background:#fff;
    border-radius:4px;
}

.tcm-modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 25px;
    border-bottom:1px solid #eee;
}

.tcm-modal-header h2{
    margin:0;
    font-size:20px;
}
.tcm-active-label {
    font-size: 15px;
    /*background: #efe;*/
    padding: 6px 10px;
    font-weight: 600;
    color: #0b830b;
}
.tcm-modal-close{
    background:none;
    border:none;
    font-size:30px;
    cursor:pointer;
}

.tcm-modal-body{
    padding:25px;
}
.tcm-modal-description {
    margin-bottom: 20px;
}
.tcm-modal-description p {
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: normal;
}

.tcm-description-content {
    max-height: 72px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.tcm-description-content.expanded {
    max-height: 500px;
}

.tcm-description-content p {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
}

.tcm-show-more-btn {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.tcm-show-more-btn:hover {
    text-decoration: underline;
}
/* =========================
Category
========================= */

.tcm-cookie-category{
    border-top:1px solid #eee;
    padding:20px 0;
}

.tcm-category-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
    font-size:20px;
}

.tcm-arrow {
    display: inline-block;
    transition: 0.3s;
}

.tcm-arrow.active {
    transform: rotate(90deg);
    margin-left: 5px;
}

.tcm-category-title{
    display:flex;
    align-items:center;
    gap:12px;
}

.tcm-accordion-icon{
    font-size:22px;
    transition:.3s;
}

.tcm-accordion-icon.active{
    transform:rotate(90deg);
}

.tcm-category-description {
    display: none;
    margin-top: 5px;
    color: #555;
    line-height: normal;
    padding-left: 13px;
    font-size: 18px;
}

.tcm-category-description.active{
    display:block;
}

.tcm-always-active{
    color:green;
    font-weight:600;
}

/* =========================
Toggle
========================= */

.tcm-switch{
    position:relative;
    display:inline-block;
    width:50px;
    height:26px;
}

.tcm-switch input{
    opacity:0;
    width:0;
    height:0;
}

.tcm-slider{
    position:absolute;
    cursor:pointer;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:#ccc;
    transition:.3s;
    border-radius:30px;
}

.tcm-slider:before{
    position:absolute;
    content:"";
    height:20px;
    width:20px;
    left:3px;
    bottom:3px;
    background:white;
    transition:.3s;
    border-radius:50%;
}

.tcm-switch input:checked + .tcm-slider{
    background: var(--tcm-primary-bg);
}

.tcm-switch input:checked + .tcm-slider:before{
    transform:translateX(24px);
}

/* =========================
Footer
========================= */

.tcm-modal-footer{
    display:flex;
    gap:15px;
    padding:20px 25px;
    border-top:1px solid #eee;
}

.tcm-modal-footer button {
    flex: 1;
    height: 46px;
    cursor: pointer;
    font-size: 16px;
    padding: 10px;
}

.tcm-btn-secondary {
    background: #9f0101;
    border: none;
    color: #fff;
}

.tcm-btn-primary{
    background: var(--tcm-primary-bg);
    color:#fff;
    border:none;
}


/*==========================
===================*/

.tcm-cookie-table{
    margin-top:20px;
}

.tcm-cookie-box{
    border-bottom:1px solid #e5e5e5;
    padding:18px 0;
}

.tcm-cookie-box:last-child{
    border-bottom:none;
}

.tcm-cookie-row{
    display:flex;
    gap:25px;
    margin-bottom:14px;
    align-items:flex-start;
}

.tcm-cookie-row:last-child{
    margin-bottom:0;
}

.tcm-cookie-label{
    width:90px;
    min-width:90px;
    font-size:14px;
    font-weight:600;
    color:#222;
    line-height:1.6;
}

.tcm-cookie-value{
    flex:1;
    font-size:14px;
    color:#555;
    line-height:1.7;
    word-break:break-word;
}

.tcm-cookie-detected{
    display:inline-block;
    margin-left:10px;
    background:#e7f7ea;
    color:#198754;
    padding:3px 10px;
    border-radius:20px;
    font-size:11px;
    font-weight:600;
    vertical-align:middle;
}

/* =========================
Responsive
========================= */

@media(max-width:768px){

    .tcm-cookie-popup{
        width:calc(100% - 20px);
        left:10px;
        bottom:10px;
    }

    .tcm-buttons{
        flex-direction:column;
    }

    .tcm-modal-footer{
        flex-direction:column;
    }
    
    .tcm-cookie-row{
        flex-direction:column;
        gap:6px;
    }

    .tcm-cookie-label{
        width:100%;
        min-width:100%;
    }

}