/* ================================================================
   Cookie Consent – Slim Bottom Banner
   hiddenaustria.travel – Redesign v2
   ================================================================ */

/* ---- Custom Properties ----------------------------------------- */
.cc-banner {
  --cc-dark: #085041;
  --cc-accent: #1D9E75;
  --cc-light: #E1F5EE;
  --cc-white: #ffffff;
  --cc-text: #222222;
  --cc-radius: 6px;
}

/* ---- Slim Bottom Banner ---------------------------------------- */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: var(--cc-white);
  border-top: 2px solid var(--cc-accent);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--cc-text);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 70px;
  overflow: hidden;
}

.cc-banner--visible {
  transform: translateY(0);
}

/* ---- Inner layout: single row ---------------------------------- */
.cc-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

/* ---- Text ------------------------------------------------------ */
.cc-text {
  flex: 1 1 auto;
  font-size: 14px;
  color: #444;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Actions: button + link ------------------------------------ */
.cc-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.cc-btn-accept {
  padding: 8px 20px;
  border: none;
  border-radius: var(--cc-radius);
  background: var(--cc-accent);
  color: var(--cc-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.cc-btn-accept:hover {
  background: var(--cc-dark);
}

.cc-btn-accept:focus-visible {
  outline: 2px solid var(--cc-dark);
  outline-offset: 2px;
}

.cc-settings-link {
  color: var(--cc-accent);
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.cc-settings-link:hover {
  color: var(--cc-dark);
}

/* ---- Responsive: stack on very small screens ------------------- */
@media (max-width: 540px) {
  .cc-banner {
    max-height: 90px;
  }
  .cc-inner {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 8px;
  }
  .cc-text {
    white-space: normal;
    font-size: 13px;
    flex-basis: 100%;
  }
  .cc-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ================================================================
   Cookie Settings Page Styles
   ================================================================ */

.cookie-settings-page {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px 60px;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
}

.cookie-settings-page h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  color: #085041;
  margin: 0 0 8px;
}

.cookie-settings-page .cs-intro {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 28px;
}

.cookie-settings-page .cs-intro a {
  color: #1D9E75;
  text-decoration: underline;
}

.cs-category {
  background: #E1F5EE;
  border: 1px solid #c4ddd5;
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.cs-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.cs-cat-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 17px;
  color: #085041;
}

.cs-cat-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #085041;
  color: #fff;
  font-weight: 600;
}

.cs-cat-desc {
  font-size: 14px;
  color: #555;
  padding-left: 28px;
  margin: 2px 0 0;
  line-height: 1.5;
}

/* Checkbox styling */
.cs-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #1D9E75;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.cs-checkbox:checked {
  background: #1D9E75;
  border-color: #1D9E75;
}

.cs-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cs-checkbox:disabled {
  opacity: 0.6;
  cursor: default;
}

.cs-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cs-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cs-btn--save {
  background: #1D9E75;
  color: #fff;
}

.cs-btn--save:hover {
  background: #085041;
}

.cs-btn--accept-all {
  background: #E1F5EE;
  color: #085041;
  border: 2px solid #1D9E75;
}

.cs-btn--accept-all:hover {
  background: #1D9E75;
  color: #fff;
}

.cs-btn:focus-visible {
  outline: 2px solid #085041;
  outline-offset: 2px;
}

.cs-back {
  display: inline-block;
  margin-top: 20px;
  color: #1D9E75;
  text-decoration: underline;
  font-size: 14px;
}

.cs-back:hover {
  color: #085041;
}

.cs-saved-msg {
  display: none;
  background: #085041;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

.cs-saved-msg--visible {
  display: block;
}
