/* ===============================
   SCIOM COOKIE BANNER
================================= */

/* Overlay */

.cookie-overlay {
  position: fixed;
  inset: 0;

  background: rgba(4, 24, 54, 0.55);

  display: flex;
  align-items: flex-end;
  justify-content: center;

  z-index: 99999;

  padding: 35px;

  animation: fadeIn 0.35s ease;
}

/* Banner */

.cookie-banner {
  width: 100%;
  max-width: 1000px;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: slideUp 0.45s ease;
}

/* Top Area */

.cookie-top {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 20px 50px;

  position: relative;

  overflow: hidden;

  background: #fff;
}

/* Decorative Background */

.cookie-top::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -180px;
  width: 530px;
  height: 550px;
  border-radius: 50%;
  background: rgba(22, 129, 195, 0.06);
}

.cookie-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(22, 129, 195, 0.08);
  display: flex;
  align-content: center;
  justify-content: center;
}

.cookie-image img {
  max-width: 140px;
  width: 100%;
}

/* Left Content */

.cookie-content {
  width: 58%;

  position: relative;

  z-index: 2;
}

.cookie-logo {
  width: 150px;
  margin-bottom: 35px;
  border-radius: 0px;
}

.cookie-content h2 {
  color: var(--primary);
  font-size: 30px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  margin-bottom: 10px;
  color: #173d7a;
}

.cookie-content p {
  font-size: 15px;
  line-height: 1.4;
  color: #404b59;
  max-width: 900px;
}

/* Right */

.cookie-image {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Footer */

.cookie-footer {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 15px 50px;

  border-top: 1px solid #e3edf5;

  background: #fff;
}

/* Learn More */

.learn-more:hover {
  color: #0b2f66;
}

.learn-more i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #0d7ea7;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 19px;
}

/* Buttons */

.cookie-buttons {
  display: flex;

  gap: 22px;
}

.cookie-buttons button {
  cursor: pointer;
  transition: 0.3s;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 10px;
}

.customize-btn:hover {
  background: #eaf8fd;
}

/* Reject */

.reject-btn {
  background: #fff;

  border: 2px solid #1596c7;

  color: #0d7ea7;
}

.reject-btn:hover {
  background: #f3f8fc;
}

/* Accept */

.accept-btn {
  border: none;

  color: #fff;

  background: linear-gradient(90deg, #0d7ea7, #0a90be);
}

.accept-btn:hover {
  transform: translateY(-2px);

  box-shadow: 0 10px 25px rgba(21, 150, 199, 0.25);
}

/* Animation */

@keyframes slideUp {
  from {
    transform: translateY(120px);

    opacity: 0;
  }

  to {
    transform: translateY(0);

    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive */

@media (max-width: 1200px) {
  .cookie-top {
    flex-direction: column;

    text-align: center;
  }

  .cookie-content {
    width: 100%;
  }

  .cookie-image {
    width: 100%;

    margin-top: 40px;
  }

  .cookie-footer {
    flex-direction: column;

    gap: 30px;
  }

  .cookie-buttons {
    width: 100%;

    flex-wrap: wrap;

    justify-content: center;
  }
}

@media (max-width: 768px) {
  .cookie-overlay {
    padding: 15px;
  }

  .cookie-top {
    padding: 30px 25px;
  }

  .cookie-content h2 {
    font-size: 36px;
  }

  .cookie-content p {
    font-size: 18px;
  }

  .cookie-logo {
    width: 160px;
  }

  .cookie-image img {
    width: 180px;
  }

  .cookie-footer {
    padding: 25px;
  }

  .cookie-buttons {
    flex-direction: column;

    width: 100%;
  }

  .cookie-buttons button {
    width: 100%;
  }

  .learn-more {
    font-size: 18px;
  }
}

/* Hide Animation */

.cookie-hide {
  animation: cookieFadeOut 0.3s forwards;
}

@keyframes cookieFadeOut {
  from {
    opacity: 1;

    transform: translateY(0);
  }

  to {
    opacity: 0;

    transform: translateY(50px);
  }
}

.cookie-popup-overlay {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.6) !important;
  z-index: 999999 !important;
  justify-content: center !important;
  align-items: center !important;
}

/* ==========================================
        POPUP OVERLAY
========================================== */

.cookie-popup-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  animation: fadeIn 0.3s ease;
}

/* ==========================================
        POPUP
========================================== */

.cookie-popup {
  width: 1200px;
  max-width: 95%;
  height: 600px;
  max-height: 90vh;

  background: #ffffff;

  border-radius: 24px;

  overflow: hidden;

  display: flex;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);

  position: relative;
}
.popup-left {
  width: 36%;

  background-image: url("/assets/images/cookie-image/Shield-background.png");
  background-position: bottom;
  padding: 50px;

  display: flex;

  flex-direction: column;

  justify-content: center;
}

.popup-logo {
  width: 170px;

  margin-bottom: 30px;
}

.popup-left h2 {
  font-size: 30px;
  font-weight: 700;
  color: #173d7a;
  margin-bottom: 20px;
}

.popup-line {
  width: 80px;

  height: 5px;

  background: #f5a623;

  border-radius: 10px;

  margin: 20px 0;
}

.popup-left p {
  font-size: 17px;

  line-height: 30px;

  color: #666;
}

.popup-image {
  margin-top: auto;

  text-align: center;
}

.popup-image img {
  width: 185px;
}
.popup-right {
  width: 64%;

  padding: 50px;

  overflow-y: auto;
}

.popup-right h2 {
  color: #173d7a;

  font-size: 34px;

  margin-bottom: 10px;
}

.popup-description {
  color: #666;

  margin-bottom: 35px;

  font-size: 16px;
}
.cookie-card {
  border: 1px solid #e5e5e5;

  border-radius: 18px;

  margin-bottom: 18px;

  overflow: hidden;
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
}

.cookie-left {
  display: flex;

  align-items: center;

  gap: 18px;
}

.cookie-left img {
  width: 30px;
  border-radius: 0px;
}

.cookie-left h3 {
  margin: 0;

  font-size: 20px;
}

.cookie-right {
  display: flex;

  align-items: center;

  gap: 18px;
}

.cookie-body {
  display: none;

  padding: 0 22px 22px;

  color: #666;

  line-height: 28px;
}

.cookie-card.active .cookie-body {
  display: block;
}
.popup-footer {
  margin-top: 35px;

  display: flex;

  justify-content: space-between;

  align-items: center;
}

.popup-buttons {
  display: flex;

  gap: 15px;
}

.popup-buttons button {
  padding: 14px 30px;

  border: none;

  border-radius: 40px;

  cursor: pointer;

  font-size: 15px;

  font-weight: 600;
}

.popup-reject {
  background: #e8e8e8;
}

.popup-save {
  background: #173d7a;

  color: #fff;
}

.popup-accept {
  background: #f5a623;

  color: #fff;
}

.popup-policy {
  color: #173d7a;

  font-weight: 600;
}
.cookie-popup-overlay .popup-close {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 42px;
  height: 42px;
  border: none;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 22px;
  color: #525c69;
  line-height: 22px;
}

.popup-hide {
  animation: fadeOut 0.3s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;

    visibility: hidden;
  }
}
/* ==========================================
        IOS TOGGLE SWITCH
========================================== */

.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 29px;
}
.switch input {
  opacity: 0;

  width: 0;

  height: 0;
}

.slider {
  position: absolute;

  cursor: pointer;

  inset: 0;

  background: #d8d8d8;

  transition: 0.35s ease;

  border-radius: 50px;
}

.slider::before {
  position: absolute;
  content: "";
  width: 21px;
  height: 21px;
  left: 2px;
  top: 0;
  background: #ffffff;
  border-radius: 50%;
  transition: 0.35s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  bottom: 0;
  margin: auto;
}
.switch input:checked + .slider {
  background: #0b6d94;
}

.switch input:checked + .slider:before {
  transform: translateX(30px);
}

.switch:hover .slider {
  box-shadow: 0 0 0 6px rgba(11, 109, 148, 0.12);
}

/* ==========================================
        ACCORDION BUTTON
========================================== */

.accordion-btn {
  width: 28px;

  height: 28px;

  border: none;

  background: transparent;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 0;

  transition: transform 0.3s ease;

  color: #183b6b;

  font-size: 28px;

  font-weight: 300;

  line-height: 1;
}

.accordion-btn:hover {
  color: #0b6d94;
}

.cookie-card.active .accordion-btn {
  transform: rotate(180deg);
}
#cookieBannerContainer .cookie-close {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 42px;
  height: 42px;
  border: none;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 22px;
  color: #525c69;
  line-height: 22px;
}
#cookieBannerContainer button,
.cookie-popup-overlay button {
  display: inline-block;
  display: inline;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(
    135deg,
    #00518f,
    #3782b5,
    #afcc3e,
    #fdc72f,
    #f4863b,
    #9d1c4b
  );
  background-size: auto;
  background-size: 300% 300%;
  animation: gradientMove 6s ease infinite;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 10px 25px rgba(0, 81, 143, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.4s ease;
  color: #fff;
  border: none;
}
.accordion-btn {
  background: none !important;
  box-shadow: none !important;
}
