/* F2H Shop — Footer (alle Shop-Seiten) und Seite „Kauf widerrufen".
   Farben/Radien aus dem Theme (--text, --border, --radius …) mit Rückfallwerten,
   damit es auch ohne das Theme fairway2hotelshop lesbar bleibt. */

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
/* Footer bei kurzen Seiten (Danke, Widerruf) unten am Fenster statt mitten im Bild. */
body:has(> .f2h-shop-footer) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body:has(> .f2h-shop-footer) > .site-main {
  flex: 1 0 auto;
  width: 100%;
}

body:has(> .f2h-shop-footer) > header,
body:has(> .f2h-shop-footer) > .f2h-shop-footer {
  flex: 0 0 auto;
  width: 100%;
}
.f2h-shop-footer {
  /* Theme setzt auf `footer` max-width/padding/Farbe — hier volle Breite. */
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #092714;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.5;
}

.f2h-shop-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 28px 24px;
}

.f2h-shop-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-right: auto;
}

.f2h-shop-footer a {
  color: #fff;
  text-decoration: none;
}

.f2h-shop-footer__links a:hover,
.f2h-shop-footer__links a:focus-visible {
  text-decoration: underline;
}

.f2h-shop-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* „Kauf widerrufen": umrandeter Knopf, gut sichtbar (§ 13a FAGG). */
.f2h-shop-footer__withdraw {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.f2h-shop-footer__withdraw:hover,
.f2h-shop-footer__withdraw:focus-visible {
  background: #fff;
  color: #092714 !important;
}

.f2h-shop-footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 640px) {
  .f2h-shop-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 16px 32px;
  }

  .f2h-shop-footer__links {
    flex-direction: column;
    gap: 4px;
    margin-right: 0;
  }

  .f2h-shop-footer__links a {
    display: inline-block;
    padding: 6px 0;
  }
}

/* ---------------------------------------------------------------------
   Seite „Kauf widerrufen" (Germanized-Formular)
   --------------------------------------------------------------------- */
.f2h-withdrawal {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e3e6e4);
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(20, 25, 22, 0.05));
}

.f2h-withdrawal__title {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.25;
  color: var(--text, #1a201c);
}

.f2h-withdrawal__intro {
  margin: 0 0 24px;
  color: var(--text-muted, #6a7370);
}

.f2h-withdrawal .form-row {
  margin: 0 0 14px;
  padding: 0;
}

.f2h-withdrawal .form-row label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text, #1a201c);
}

.f2h-withdrawal .form-row .optional {
  font-weight: 400;
  color: var(--text-muted, #6a7370);
}

.f2h-withdrawal input[type="text"],
.f2h-withdrawal input[type="email"],
.f2h-withdrawal input[type="tel"],
.f2h-withdrawal select,
.f2h-withdrawal textarea {
  width: 100%;
  min-height: var(--field-h, 46px);
  padding: 11px 14px;
  font: inherit;
  font-size: 1rem; /* ≥16px: kein Auto-Zoom auf iOS */
  color: var(--text, #1a201c);
  background: var(--surface, #fff);
  border: 1px solid var(--border-strong, #cfd4d1);
  border-radius: var(--radius-sm, 10px);
  box-sizing: border-box;
}

.f2h-withdrawal input:focus,
.f2h-withdrawal select:focus,
.f2h-withdrawal textarea:focus {
  border-color: #092714;
  box-shadow: 0 0 0 3px rgba(9, 39, 20, 0.18);
  outline: none;
}

/* Auswahlfeld „Bestellung" (angemeldet, mehrere Bestellungen): wie die übrigen
   Felder, mit eigenem Pfeil statt des Browser-Pfeils. */
.f2h-withdrawal select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a201c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  line-height: 1.4;
  cursor: pointer;
}

.f2h-withdrawal select::-ms-expand {
  display: none;
}

/* Freiwillige Anmerkung: mehrzeilig, Hinweis darunter. */
.f2h-withdrawal textarea {
  min-height: 112px;
  line-height: 1.45;
  resize: vertical;
}

.f2h-withdrawal .form-row-f2h-note {
  margin-bottom: 6px;
}

/* „(optional)" steht schon in der Beschriftung — WooCommerces eigenen Zusatz weglassen. */
.f2h-withdrawal .form-row-f2h-note label .optional {
  display: none;
}

/* Germanized hebt Bestellnummer und Datum unter dem Auswahlfeld mit <mark> hervor
   (Browser: gelb). Ruhig und fett statt Textmarker. */
.f2h-withdrawal mark {
  background: none;
  color: inherit;
  font-weight: 600;
}

.f2h-withdrawal__hint {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--text-muted, #6a7370);
}

/* Vor-/Nachname nebeneinander, am Handy untereinander. */
@media (min-width: 641px) {
  .f2h-withdrawal .form-row-first,
  .f2h-withdrawal .form-row-last {
    width: calc(50% - 8px);
    float: left;
  }

  .f2h-withdrawal .form-row-last {
    float: right;
  }
}

.f2h-withdrawal .clear {
  clear: both;
}

.f2h-withdrawal .woocommerce-form-return_request__submit {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  padding: 0 28px;
  background: var(--f2h-red, #aa1945);
  border: 0;
  border-radius: var(--radius-sm, 10px);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.f2h-withdrawal .woocommerce-form-return_request__submit:hover {
  background: var(--brand-hover, #821527);
}

.f2h-withdrawal .woocommerce-form-return_request__submit:focus-visible {
  outline: none;
  box-shadow: var(--ring, 0 0 0 3px rgba(158, 27, 50, 0.18));
}

/* Germanized-Meldungen (Fehler/Erfolg) behalten den Hinweis-Stil der Kasse,
   nur der Abstand zum Formular kommt von hier. */
.f2h-withdrawal .woocommerce-error,
.f2h-withdrawal .woocommerce-message,
.f2h-withdrawal .woocommerce-info {
  margin: 0 0 18px;
}
