.cookie-consent-wrapper {
    position: fixed;
    z-index: 99999;
}
.cookie-pos-bottom-left { bottom: 30px; left: 30px; }
.cookie-pos-bottom-right { bottom: 30px; right: 30px; }
.cookie-pos-bottom-center { bottom: 30px; left: 50%; transform: translateX(-50%); }

.cookie-consent-card {
    max-width: 420px;
    background-color: #ffffff;
    border: 1px solid #eaeaea; 
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    padding: 28px;
    box-sizing: border-box;
    font-family: inherit;
}

.cookie-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.cookie-text {
    margin: 0 0 24px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}
.cookie-text p {
    margin: 0 0 10px 0;
}
.cookie-text p:last-child {
    margin-bottom: 0;
}
.cookie-text a {
    color: #15499F;
    text-decoration: underline;
}

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

.cookie-btn {
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn.btn-primary {
    background-color: #15499F; 
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
}

.cookie-btn.btn-primary:hover {
    background-color: #0d3273;
}

.cookie-btn.btn-secondary {
    background-color: transparent;
    color: #15499F;
    border: none;
    padding: 12px 0;
    gap: 6px;
}

.cookie-btn.btn-secondary:hover {
    color: #0d3273;
    text-decoration: underline;
}

/* Customize Modal */
.cookie-customize-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cookie-customize-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.cookie-customize-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    font-family: inherit;
}
.cookie-customize-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cookie-customize-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}
.cookie-customize-close {
    background: none; border: none; font-size: 24px; cursor: pointer; color: #666;
}
.cookie-customize-body {
    padding: 20px 24px;
    overflow-y: auto;
}
.cookie-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}
.cookie-category:last-child {
    margin-bottom: 0; border-bottom: none; padding-bottom: 0;
}
.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.cookie-category-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}
.cookie-category-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.cookie-category-desc p {
    margin: 0 0 10px 0;
}
.cookie-category-desc p:last-child {
    margin: 0;
}
.cookie-category-desc ul {
    margin: 10px 0;
    padding-left: 20px;
}
.cookie-category-desc li {
    margin-bottom: 5px;
}

/* Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.cookie-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 22px;
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .cookie-slider {
  background-color: #15499F;
}
input:disabled + .cookie-slider {
  opacity: 0.6;
  cursor: not-allowed;
}
input:checked + .cookie-slider:before {
  transform: translateX(18px);
}

.cookie-customize-footer {
    padding: 20px 24px;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: flex-end;
}



/* Floating Button */
.cookie-floating-btn {
    position: fixed;
    z-index: 99998;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #15499F;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.cookie-floating-btn:hover {
    transform: scale(1.05);
    background-color: #0d3273;
}
.cookie-float-pos-bottom-left {
    left: 20px;
}
.cookie-float-pos-bottom-right {
    right: 20px;
}

@media (max-width: 768px) {
    .cookie-pos-bottom-left, .cookie-pos-bottom-right, .cookie-pos-bottom-center {
        left: 15px;
        right: 15px;
        bottom: 15px;
        transform: none;
    }
    .cookie-consent-card {
        max-width: 100%;
        padding: 20px;
    }
    .cookie-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    .cookie-text {
        font-size: 13px;
        margin-bottom: 20px;
    }
    .cookie-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .cookie-btn {
        width: 100%;
        font-size: 13px;
    }
    .cookie-btn.btn-primary {
        padding: 10px 15px;
    }
    .cookie-btn.btn-secondary {
        padding: 8px 0;
    }
    
    .cookie-customize-content {
        width: calc(100% - 30px);
        max-height: 85vh;
    }
    .cookie-customize-header,
    .cookie-customize-body,
    .cookie-customize-footer {
        padding: 15px;
    }
    .cookie-customize-header h3 {
        font-size: 16px;
    }
    .cookie-category-header h4 {
        font-size: 14px;
    }
    .cookie-category-desc {
        font-size: 12px;
    }
    .cookie-switch {
        transform: scale(0.9);
        transform-origin: right center;
    }
    
    .cookie-floating-btn {
        width: 42px;
        height: 42px;
        bottom: 15px;
    }
    .cookie-float-pos-bottom-left {
        left: 15px;
    }
    .cookie-float-pos-bottom-right {
        right: 15px;
    }
    .cookie-floating-btn svg {
        width: 20px;
        height: 20px;
    }
}
