/* Cookie Button */
.cookiesModal {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
}

#cookies-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

#cookies-btn:hover {
    transform: scale(1.1);
}

/* Modal Overlay */
.modal-overlay-cookies {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 0;
}

.modal-overlay-cookies.active {
    display: block;
}

/* Modal Container */
.modal-container-cookies {
 background: #ffffff;
    border-radius: 15px;
    border: 1px solid #2649A8;
    max-width: 100%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px 40px;
    position: relative;
    animation: slideUp 0.3s 
ease-out;
}
.modal-overlay-cookies {
    display: none;
    position: fixed;
    bottom: 13px;
    left: 50%;
    width: calc(100% - 30px);
    z-index: 10000;
    padding: 0;
    margin: auto;
    transform: translateX(-50%);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Modal Header */
.modal-header-cookies {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header-cookies h2 {
     font-size: 20px;
    font-weight: 400;
    color: #3E4058;
    margin-bottom: 14px;
    font-family: 'Poppins'!important;
}

.modal-header-cookies p {
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Poppins' !important;
    color: #55677E;
    font-weight: 300;
        height: 67px;
    max-width: 1000px;
    margin: 0 auto 24px;
}

/* Buttons */
.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.btn {
 padding: 8px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    border: none;
    transition: all 0.3s 
ease;
    font-family: 'Poppins' !important;
}

.btn-manage {
    background: #233F8C;
    color: white;
}

.btn-manage:hover {
    background: #2c61bb;
}

.btn-deny {
    background: #233F8C;
    color: white;
}

.btn-deny:hover {
    background: #2c61bb;
}

.btn-accept {
    background: #233F8C;
    color: white;
}

.btn-accept:hover {
    background: #2c61bb;
}

/* Cookie Policy Link */
.cookie-policy {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.cookie-policy a {
    color: #233F8C;
    text-decoration: none;
}

.cookie-policy a:hover {
    text-decoration: underline;
}

/* Cookie Categories */
.cookie-categories {
       display: none;
    margin-top: 32px;
    max-width: 900px;
    margin: 32px auto 0;
}

.cookie-categories.active {
    display: block;
}

.cookie-category {
    background: #f9fafb;
    border-radius: 12px;
    padding: 10px 20px;
    margin-bottom: 12px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.category-name {
    font-size: 13px;
    font-weight: 400;
    color: #55677E;
    font-family: Poppins !important;
}

.category-count {
    font-size: 13px;
 color: #55677E;
    font-family: Poppins !important;
}

.category-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.show-details-btn {
        background: none;
    border: none;
    color: #233F8C;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-family: Poppins !important;
}

.show-details-btn:hover {
    color: #2c61bb;
}

/* Toggle Switch */
.toggle-switch {
      position: relative;
    width: 45px;
    height: 21px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
      position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background: linear-gradient(
312deg, #233F8C 1.85%, #1176CA 100%);
}

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

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

/* Cookie Details */
.cookie-details {
    display: none;
    margin-top: 16px;
}

.cookie-details.active {
    display: block;
}

.details-description {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.details-table thead {
    background: #EEF4FA;
}

.details-table th {
    border:none;
    padding: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    font-family: Poppins !important;
    color: #1f2937;
}

.details-table td {
    padding: 12px;
    font-size: 13px;
    color: #55677E;
       border: none;
    border-top: 1px solid #e5e7eb;
        font-family: Poppins !important;
}

.details-table td a {
    color: #233F8C;
    text-decoration: none;
        font-family: Poppins !important;
}

.details-table td a:hover {
    text-decoration: underline;
}

/* Accept Button at Bottom */
.accept-bottom {
    display: none;
    text-align: center;
    margin-top: 24px;
}

.accept-bottom.active {
    display: block;
}

.btn-accept-bottom {
    padding: 9px 41px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    border: none;
    background: #e5e7eb;
    color: #1f2937;
    transition: all 0.3s ease;
}

.btn-accept-bottom:hover {
    background: #d1d5db;
}

.hide-details-btn {
    background: none;
    border: none;
    color: #233F8C;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.hide-details-btn:hover {
    color: #2c61bb;
}

.modal-header-cookies {
  position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #000;
    cursor: pointer;
    opacity: 0.55;
    z-index: 1;
    transition: opacity 0.2s 
ease;
}

.modal-close:hover,
.modal-close:focus {
  opacity: 1;
  outline: none;
}
.responsiveTable{
    width: 100%;
   overflow-x: auto;
}
@media (max-width:575px){
    .modal-header-cookies p {
    height: unset;
    font-size: 13px;
 
}
.responsiveTable {
    white-space: nowrap;
    overflow-x: auto;
}
.modal-buttons {
    
    flex-direction: column;
}
.modal-container-cookies {
    
    padding: 20px 15px;
 
}
}