/**
 * Recamoto — banner y preferencias de cookies (AEPD / LSSI 22.2 / RGPD).
 * Consentimiento explícito por finalidad: mismas opciones para aceptar y rechazar.
 */

#recamoto-cookie-fab {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 10050;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1c1c1c;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  line-height: 0;
}

#recamoto-cookie-fab:hover,
#recamoto-cookie-fab:focus {
  background: #333;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

#recamoto-cookie-fab svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

#recamoto-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10040;
  background: #1c1c1c;
  color: #f3f3f3;
  padding: 16px 18px 18px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.28);
}

#recamoto-cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
}

#recamoto-cookie-banner[hidden],
#recamoto-cookie-modal[hidden] {
  display: none !important;
}

.recamoto-cc-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.recamoto-cc-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
}

.recamoto-cc-text a,
.recamoto-cc-legal a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.recamoto-cc-actions {
  display: block;
}

.recamoto-cc-actions .recamoto-cc-btn {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 12px 16px;
  min-height: 44px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  line-height: 20px;
  box-sizing: border-box;
}

/* Aceptar y rechazar: mismo peso visual (guía AEPD, sin dirigir al sí). */
.recamoto-cc-btn-choice {
  background: #fff;
  border: 2px solid #fff;
  color: #1c1c1c;
}

.recamoto-cc-btn-config,
.recamoto-cc-btn-save {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.recamoto-cc-btn-choice:hover,
.recamoto-cc-btn-choice:focus {
  background: #e8e8e8;
  border-color: #e8e8e8;
}

.recamoto-cc-btn-config:hover,
.recamoto-cc-btn-config:focus,
.recamoto-cc-btn-save:hover,
.recamoto-cc-btn-save:focus {
  background: rgba(255, 255, 255, 0.12);
}

#recamoto-cookie-modal {
  position: fixed;
  z-index: 10120;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
}

body.recamoto-cc-open #recamoto-cookie-fab {
  visibility: hidden;
  pointer-events: none;
}

.recamoto-cc-dialog {
  background: #fff;
  color: #333;
  max-width: 720px;
  margin: 24px auto;
  border-radius: 6px;
  padding: 20px 18px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.recamoto-cc-dialog h2 {
  margin: 0 40px 10px 0;
  font-size: 20px;
  color: #111;
}

.recamoto-cc-lead {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #444;
}

.recamoto-cc-status {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #1c1c1c;
  min-height: 18px;
}

.recamoto-cc-close {
  float: right;
  width: 40px;
  height: 40px;
  margin: -8px -8px 0 0;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 36px;
  cursor: pointer;
  color: #666;
}

.recamoto-cc-group {
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  padding: 12px;
  margin: 0 0 10px;
}

.recamoto-cc-group-off {
  background: #f7f7f7;
}

.recamoto-cc-group-head {
  display: block;
}

.recamoto-cc-group h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.recamoto-cc-group p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #555;
}

.recamoto-cc-switch {
  display: block;
  position: relative;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  min-height: 48px;
  line-height: 32px;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}

#recamoto-cookie-root div.checker {
  display: none !important;
}

.recamoto-cc-switch input.recamoto-cc-box,
.recamoto-cc-switch input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 8px;
  width: 52px;
  height: 32px;
  margin: 0;
  padding: 0;
  opacity: 0;
  z-index: 3;
  cursor: pointer;
}

.recamoto-cc-toggle {
  display: inline-block;
  width: 52px;
  height: 32px;
  margin-right: 10px;
  vertical-align: middle;
  background: #c5c5c5;
  border-radius: 16px;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.recamoto-cc-toggle:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.recamoto-cc-switch input:checked + .recamoto-cc-toggle {
  background: #1c1c1c;
}

.recamoto-cc-switch input:checked + .recamoto-cc-toggle:after {
  left: 23px;
}

.recamoto-cc-switch input:disabled + .recamoto-cc-toggle {
  opacity: 0.55;
}

.recamoto-cc-switch input:disabled {
  cursor: default;
}

.recamoto-cc-switch-text {
  vertical-align: middle;
}

.recamoto-cc-switch-text em {
  font-style: normal;
  font-weight: 700;
  margin-left: 4px;
}

.recamoto-cc-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

.recamoto-cc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.recamoto-cc-table th,
.recamoto-cc-table td {
  border: 1px solid #e4e4e4;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.recamoto-cc-table th {
  background: #f4f4f4;
  font-weight: 700;
}

.recamoto-cc-dialog .recamoto-cc-actions {
  margin-top: 14px;
}

.recamoto-cc-dialog .recamoto-cc-btn-choice {
  background: #1c1c1c;
  border-color: #1c1c1c;
  color: #fff;
}

.recamoto-cc-dialog .recamoto-cc-btn-choice:hover,
.recamoto-cc-dialog .recamoto-cc-btn-choice:focus {
  background: #333;
  border-color: #333;
}

.recamoto-cc-dialog .recamoto-cc-btn-save {
  background: #fff;
  border: 2px solid #1c1c1c;
  color: #1c1c1c;
}

.recamoto-cc-dialog .recamoto-cc-legal a {
  color: #1c1c1c;
}

.recamoto-cc-legal {
  margin: 8px 0 0;
  font-size: 12px;
}

body.recamoto-cc-open {
  overflow: hidden;
}

.js-open-cookie-settings {
  cursor: pointer;
}

@media (min-width: 768px) {
  .recamoto-cc-actions {
    display: table;
    width: 100%;
    border-spacing: 8px 0;
    margin: 0 -8px;
  }
  .recamoto-cc-actions .recamoto-cc-btn {
    display: table-cell;
    width: 33.33%;
    margin: 0;
  }
  #recamoto-cookie-banner {
    padding: 20px 24px;
  }
  .recamoto-cc-group-head {
    display: table;
    width: 100%;
  }
  .recamoto-cc-group-head > div {
    display: table-cell;
    vertical-align: top;
    padding-right: 12px;
  }
  .recamoto-cc-group-head .recamoto-cc-switch {
    display: table-cell;
    width: 220px;
    vertical-align: middle;
    text-align: right;
    white-space: nowrap;
    margin-top: 0;
  }
}
