#cookiePolicy {
  display: none;
  margin: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  background-color: #281e1d;
  color: #6c635b;
  border-top: 1px solid #483d38;
  font-family: sans-serif;
  padding: 15px 20px;
}

#cookiePolicyReopenBtn {
  position: fixed;
  bottom: 0px;
  left: 20px;
  background-color: #281e1d;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 150px;
}

#cookiePolicyReopenBtn svg {
  fill: white;
}

#cookiePolicy h3 {
  color: #d8c6b0;
}

#cookiePolicy .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#cookiePolicy .left {
  max-width: 75%;
}

#cookiePolicy a {
  color: #bfa78a;
  text-decoration: underline;
}

#cookiePolicy .dismiss,
#cookiePolicy #manageCookiesBtn {
  background-color: #483d38;
  color: #d8c6b0;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  margin-left: 10px;
  border-radius: 4px;
  font-size: 14px;
}

/* ------------------ MODAL ------------------ */

#cookiePreferencesModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  overflow-y: auto;
}

#cookiePreferencesModal.hidden {
  display: none;
}

#cookiePreferencesModal .modal-content {
  background-color: #281e1d;
  color: #d8c6b0;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* Close button (X) */
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  color: #bfa78a;
  background: none;
  border: none;
  cursor: pointer;
}

/* ------------------ CHECKBOXES ------------------ */

#cookiePreferencesModal label {
  display: block;
  margin-bottom: 10px;
}

#cookiePreferencesModal input[type="checkbox"] {
  margin-right: 8px;
}

#cookiePreferencesModal button {
  background-color: #483d38;
  color: #d8c6b0;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

#cookiePreferencesModal .modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ------------------ CHECKBOX STYLE ------------------ */

.cookie-section {
  margin: 20px 0;
  text-align: left;
}

.cookie-section label {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.cookie-section > label {
  display: flex !important;
  flex-direction: row-reverse;
  justify-content: space-between;
}

/* Custom checkbox style */
.cookie-section input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: #1e1a18 !important;
  border: 2px solid #bfa78a;
  border-radius: 4px;
  width: 16px !important;
  height: 16px !important;
  cursor: pointer;
  position: relative !important;
  margin-right: 10px !important;
  opacity: 1 !important;
}

.cookie-section input[type="checkbox"]:checked {
  background-color: #bfa78a !important;
}

.cookie-section input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #281e1d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cookie-section input[type="checkbox"]:focus {
  outline: 2px solid #d8c6b0;
}

/* ------------------ TABLE ------------------ */

.cookie-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
  color: #bfa78a;
  overflow: auto;
}

.cookie-section table th,
.cookie-section table td {
  border: 1px solid #483d38;
  padding: 6px 10px;
  text-align: left;
}

/* ------------------ COLLAPSIBLE ------------------ */

.collapse-toggle {
  background: none;
  border: none;
  color: #bfa78a;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.collapsible-content {
  display: none;
  transition: max-height 0.3s ease;
}

.collapsible-content.active {
  display: block;
}

/* ------------------ ACTION BUTTONS ------------------ */

.cookie-actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions button {
  padding: 8px 16px;
  background-color: #bfa78a;
  color: #281e1d;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

@media (min-width: 1025px) {
  header .menu .main-menu.more-main {
    gap: 20px;
    width: 39%;
  }
}
