/* Styles of list/templates/list/accept_third_party_cookies.html, moved out of its inline <style>. */

/* Allow scroll while modal open */
body.cookie-bottomsheet-open {
  overflow: auto !important;
  padding-right: 0 !important;
}

/* Docked, full-width modal at bottom */
#accept_third_party_cookies.modal .modal-dialog {
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  transform: translateY(100%) !important;
  transition: transform 0.3s ease-out;
  pointer-events: none;
  z-index: 1060;
}
#accept_third_party_cookies.show .modal-dialog {
  transform: translateY(0) !important;
}

/* Modal card surface */
#accept_third_party_cookies .modal-content {
  border-radius: 16px 16px 0 0 !important;
  background-color: #ffffff;
  border: none;
  pointer-events: auto;
  box-shadow: 0 -2px 25px rgba(0, 0, 0, 0.25);
}

/* Header: smaller height, lighter gradient, subtle handle */
#accept_third_party_cookies .modal-header {
  display: flex !important;
  justify-content: flex-start !important; /* title stays left */
  align-items: center !important;
}

#accept_third_party_cookies .modal-title {
  font-size: 1rem; /* smaller text */
  font-weight: 600;
  color: #444;
  margin: 0;
  justify-content: flex-start !important; /* title stays left */
}

/* Body: clean typography */
#accept_third_party_cookies .modal-body {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}
#accept_third_party_cookies .modal-body a {
  color: #fe9a2d;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#accept_third_party_cookies .modal-body a:hover {
  color: #f18f31;
}

/* Footer */
#accept_third_party_cookies .modal-footer {
  padding: 0.8rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Accept button — your existing orange style */
#accept_third_party_cookies .btn-primary {
  background-color: #fea64d;
  border: none;
  color: #16181d;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.55rem 1.3rem;
  box-shadow: 0 3px 10px rgba(254, 166, 77, 0.3);
  transition: all 0.2s ease-in-out;
}
#accept_third_party_cookies .btn-primary:hover {
  background-color: #f18f31;
}
#accept_third_party_cookies .btn-primary:active {
  background-color: #e78125;
}

/* Backdrop: slightly darker for contrast */
.modal-backdrop.cookie-bottomsheet-backdrop {
  background-color: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(2px);
}

/* Allow scroll but block clicks */
#accept_third_party_cookies {
  pointer-events: none;
}
#accept_third_party_cookies .modal-content {
  pointer-events: auto;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  #accept_third_party_cookies .modal-body,
  #accept_third_party_cookies .modal-footer {
    padding: 1rem;
  }
}

/* Container */
.select-wrap {
  position: relative;
  width: 100%;
}

/* Button (fake select) */
#lang-btn {
  width: 100%;
  text-align: left;
  padding: 12px 40px 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff8f0;
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

#lang-btn:hover {
  background: #fff2e0;
  border-color: rgba(0, 0, 0, 0.2);
}

#lang-btn::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23555555' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
  opacity: 0.6;
}

/* Dropdown menu — appears above the field */
.select-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px); /* 👈 ABOVE the field */
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 220px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 1070;
  animation: fadeInUp 0.15s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.select-menu [role="option"] {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.select-menu [role="option"]:hover {
  background: #fff2e0;
}
.select-menu [aria-selected="true"] {
  background: #ffe7cc;
}

/* Mobile-safe */
@media (max-width: 576px) {
  #lang-btn {
    font-size: 16px;
  } /* prevent iOS zoom */
}
