/* ========================================================================== 
   SKYTIME – SCHLANKER BESTELLKORB
   Gemeinsame Darstellung für Rundflug, Gutschein, Medien und Bestellseite.
   ========================================================================== */

.skytime-cart-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid rgb(240 199 111 / 46%);
  border-radius: 999px;
  color: #f2d088;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.skytime-cart-link:hover,
.skytime-cart-link:focus-visible {
  transform: translateY(-1px);
  border-color: #f2d088;
  background: rgb(240 199 111 / 10%);
  outline: none;
}

.skytime-cart-link.is-empty {
  color: #d5e0eb;
  border-color: rgb(255 255 255 / 18%);
}

.cart-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.cart-selection-actions .btn {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.cart-selection-actions .btn.ghost {
  border: 1px solid rgb(255 255 255 / 20%);
}

.cart-next-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgb(240 199 111 / 32%);
  border-radius: 15px;
  background: rgb(240 199 111 / 7%);
}

.cart-next-actions[hidden] {
  display: none;
}

.cart-next-actions strong {
  grid-column: 1 / -1;
  color: #f2d088;
  font-size: 13px;
}

.cart-next-actions a {
  padding: 10px 12px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 10px;
  background: rgb(255 255 255 / 5%);
  color: #eef4f8;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.cart-next-actions a:hover,
.cart-next-actions a:focus-visible {
  border-color: rgb(240 199 111 / 55%);
  color: #f2d088;
  outline: none;
}

.media-cart-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.media-cart-button {
  display: inline-grid;
  width: 44px;
  min-height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.media-cart-button:hover,
.media-cart-button:focus-visible {
  transform: translateY(-1px);
  background: rgb(240 199 111 / 10%);
  color: #f2d088;
  outline: none;
}

.media-cart-button .inline-cart-icon {
  width: 34px;
  height: 30px;
}

.media-cart-button.is-added {
  background: #f0c76f;
  color: #29496f;
}

/* Bestellseite */
.order-cart-heading {
  margin: 9px 24px 18px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}

.order-cart-items {
  border-top: 1px solid #7190b2;
}

.order-cart-item {
  padding: 18px 20px;
  border-bottom: 1px solid rgb(113 144 178 / 68%);
}

.order-cart-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.order-cart-item-title {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.order-cart-item-detail {
  display: block;
  margin-top: 5px;
  color: #b8d8e9;
  font-size: 12px;
  line-height: 1.45;
}

.order-cart-item-price {
  color: #f2d088;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.order-cart-gift-recipient {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  padding: 13px 14px;
  border: 1px solid rgb(240 199 111 / 36%);
  border-radius: 11px;
  background: rgb(240 199 111 / 7%);
}

.order-cart-gift-recipient > span {
  color: #f2d088;
  font-size: 12px;
  font-weight: 850;
}

.order-cart-gift-recipient input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #86a1bd;
  border-radius: 9px;
  background: #f7fafc;
  color: #18314f;
  font: inherit;
  font-size: 13px;
}

.order-cart-gift-recipient input:focus {
  border-color: #f0c76f;
  outline: 2px solid rgb(240 199 111 / 20%);
  outline-offset: 1px;
}

.order-cart-assignment {
  display: grid;
  gap: 6px;
  margin-top: 13px;
}

.order-cart-assignment label,
.order-cart-assignment span {
  color: #b8d8e9;
  font-size: 11px;
  font-weight: 800;
}

.order-cart-assignment select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #86a1bd;
  border-radius: 9px;
  background: #f7fafc;
  color: #18314f;
  font: inherit;
  font-size: 12px;
}

.order-cart-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 14px;
}

.cart-quantity {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 9px;
}

.cart-fixed-quantity {
  display: inline-grid;
  min-height: 32px;
  place-items: center;
  padding: 6px 10px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 9px;
  background: rgb(255 255 255 / 5%);
  color: #dce6ee;
  font-size: 12px;
  font-weight: 850;
}

.cart-quantity button,
.cart-item-action {
  border: 0;
  background: rgb(255 255 255 / 6%);
  color: #eef4f8;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.cart-quantity button {
  width: 32px;
  height: 30px;
}

.cart-quantity output {
  display: grid;
  min-width: 34px;
  height: 30px;
  place-items: center;
  border-right: 1px solid rgb(255 255 255 / 12%);
  border-left: 1px solid rgb(255 255 255 / 12%);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.cart-item-action {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 9px;
}

.cart-item-action:hover,
.cart-item-action:focus-visible,
.cart-quantity button:hover,
.cart-quantity button:focus-visible {
  background: rgb(240 199 111 / 12%);
  color: #f2d088;
  outline: none;
}

.order-cart-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  padding: 20px 24px;
  border-bottom: 1px solid #7190b2;
}

.order-cart-total span {
  color: #b8d8e9;
  font-size: 13px;
  font-weight: 800;
}

.order-cart-total strong {
  color: #f2d088;
  font-size: 25px;
}

.order-cart-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 18px 24px 22px;
}

.order-cart-links a {
  color: #f2d088;
  font-size: 12px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-assignment-warning {
  margin: 16px 24px 0;
  padding: 12px 14px;
  border: 1px solid rgb(240 199 111 / 48%);
  border-radius: 11px;
  background: rgb(240 199 111 / 9%);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
}

.cart-assignment-warning[hidden] {
  display: none;
}

@media (max-width: 1000px) {
  .skytime-cart-link {
    width: fit-content;
    margin: 8px 4px;
  }
}

@media (max-width: 760px) {
  .cart-next-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .cart-next-actions {
    grid-template-columns: 1fr;
  }

  .order-cart-item-head {
    grid-template-columns: 1fr;
  }

  .order-cart-item-price {
    justify-self: start;
  }
}


/* ==========================================================================
   REV04 – SICHTBARES WARENKORB-FEEDBACK DIREKT AN DER AUSWAHL
   ========================================================================== */

.cart-inline-link,
.media-cart-link {
  position: relative;
  display: inline-grid;
  width: 48px;
  min-width: 48px;
  height: 42px;
  place-items: center;
  padding: 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  line-height: 0;
  text-decoration: none;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.cart-inline-link:hover,
.cart-inline-link:focus-visible,
.media-cart-link:hover,
.media-cart-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgb(240 199 111 / 58%);
  background: rgb(240 199 111 / 9%);
  color: #f2d088;
  box-shadow: 0 0 18px rgb(240 199 111 / 12%);
  outline: none;
}

.cart-inline-link.has-items {
  color: #f0c76f;
}

.inline-cart-icon {
  display: block;
  width: 39px;
  height: 34px;
  overflow: visible;
}

.cart-inline-total,
.media-cart-item-count {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 2;
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #f0c76f;
  color: #29496f;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.cart-inline-total[hidden] {
  display: none;
}

.cart-selection-actions .cart-add-feedback {
  border-color: #f0c76f !important;
  background: #f0c76f !important;
  color: #29496f !important;
  box-shadow: 0 0 18px rgb(240 199 111 / 20%);
}

[data-cart-media].is-in-cart {
  border-color: rgb(240 199 111 / 56%) !important;
  box-shadow:
    0 0 0 1px rgb(240 199 111 / 10%),
    0 18px 46px rgb(0 0 0 / 18%);
}

.media-cart-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.media-cart-icon-link {
  position: relative;
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  line-height: 0;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.media-cart-icon-link:hover,
.media-cart-icon-link:focus-visible {
  transform: translateY(-1px);
  background: rgb(240 199 111 / 10%);
  color: #f2d088;
  outline: none;
}

.media-cart-icon-link.has-items {
  color: #f0c76f;
}

.media-cart-icon {
  display: block;
  width: 39px;
  height: 34px;
  overflow: visible;
}

.media-cart-shell,
.media-cart-bar {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-cart-shell {
  stroke-width: 5.2;
}

.media-cart-wheel {
  fill: currentColor;
}

.media-cart-bar {
  stroke-width: 4.8;
  opacity: 0;
}

.media-cart-icon-link.has-items .media-cart-bar,
.cart-inline-link.has-items .media-cart-bar {
  opacity: 1;
}

.media-cart-quantity {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgb(240 199 111 / 42%);
  border-radius: 10px;
  background: rgb(240 199 111 / 7%);
}

.media-cart-quantity button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #f2d088;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.media-cart-quantity output {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border-right: 1px solid rgb(240 199 111 / 22%);
  border-left: 1px solid rgb(240 199 111 / 22%);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.media-cart-quantity button:hover,
.media-cart-quantity button:focus-visible {
  background: rgb(240 199 111 / 14%);
  color: #fff;
  outline: none;
}

@media (max-width: 620px) {
  .cart-selection-actions {
    align-items: stretch;
  }

  .cart-selection-actions .btn,
  .cart-inline-link {
    width: 100%;
  }

  .media-cart-action {
    justify-content: flex-start;
  }

  .media-cart-icon-link { min-height: 40px; }
}

/* Die bestehende Auswahl kann im Buchungsfluss nur einmal hinzugefügt werden. */
.cart-selection-actions .btn:disabled {
  cursor: default;
  opacity: .82;
}
