/* FishMe — Checkout page v2 */

.fishme-checkout-page {
  --co-primary: #c00208;
  --co-primary-dark: #870106;
  --co-primary-light: #e3333a;
  --co-heading: #1f1f25;
  --co-body: #6e777d;
  --co-border: #e2e2e2;
  --co-bg: #f8f9fa;
}

/* Hero — brand gradient (matches shop / wishlist) */
.fishme-checkout-hero {
  position: relative;
  padding: 40px 0 44px;
  background: linear-gradient(135deg, var(--co-primary-dark) 0%, var(--co-primary) 48%, var(--co-primary-light) 100%);
  color: #fff;
  overflow: hidden;
}

.fishme-checkout-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/shop/fishme-hero.jpg") center / cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.fishme-checkout-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(135, 1, 6, 0.92) 0%,
    rgba(192, 2, 8, 0.78) 55%,
    rgba(227, 51, 58, 0.68) 100%
  );
  pointer-events: none;
}

.fishme-checkout-hero .container {
  position: relative;
  z-index: 1;
}

.fishme-checkout-hero .fishme-breadcrumb {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.fishme-checkout-hero .fishme-breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.fishme-checkout-hero .fishme-breadcrumb a:hover {
  color: #fff;
}

.fishme-checkout-hero .fishme-breadcrumb .sep {
  margin: 0 0.5rem;
  opacity: 0.55;
}

.fishme-checkout-hero .fishme-breadcrumb .current {
  color: #fff;
  font-weight: 600;
}

.fishme-checkout-hero-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.fishme-checkout-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #fff;
}

.fishme-checkout-hero-lead {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.fishme-checkout-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  max-width: 420px;
}

.fishme-checkout-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  text-align: center;
}

.fishme-checkout-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
}

.fishme-checkout-step--done:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.55);
}

.fishme-checkout-step__dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.fishme-checkout-step--done .fishme-checkout-step__dot,
.fishme-checkout-step--active .fishme-checkout-step__dot {
  background: #fff;
  color: var(--co-primary);
  border-color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.fishme-checkout-step__label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.fishme-checkout-step--active .fishme-checkout-step__label {
  color: #fff;
  font-weight: 700;
}

/* Main layout */
.fishme-checkout-main {
  padding: 40px 0 64px;
  background: var(--co-bg);
}

.fishme-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.fishme-checkout-panel {
  --cart-primary: var(--co-primary);
  --cart-heading: var(--co-heading);
  --cart-body: var(--co-body);
  --cart-border: var(--co-border);
  --cart-bg: var(--co-bg);

  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--co-border);
  box-shadow: 0 8px 24px rgba(31, 31, 37, 0.06);
}

.fishme-checkout-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--co-border);
  background: linear-gradient(135deg, rgba(192, 2, 8, 0.06) 0%, #fff 100%);
}

.fishme-checkout-panel__step {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--co-primary-dark) 0%, var(--co-primary) 100%);
}

.fishme-checkout-panel__head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--co-heading);
}

.fishme-checkout-panel__head p {
  margin: 0;
  font-size: 13px;
  color: var(--co-body);
}

.fishme-checkout-panel__body {
  padding: 22px 24px 24px;
}

/* Shipping / address */
.fishme-checkout-shipping {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fishme-checkout-shipping-card {
  border: 1px solid var(--co-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.fishme-checkout-shipping-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #ececec;
  background: #fafafa;
}

.fishme-checkout-shipping-head__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--co-body);
}

.fishme-checkout-shipping-change {
  border: 0;
  background: transparent;
  color: var(--co-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fishme-checkout-shipping-change:hover {
  color: var(--co-primary-dark);
}

/* Google Maps–style delivery route */
.fishme-gmaps-route {
  margin-top: 22px;
  border: 1px solid #dadce0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18);
}

.fishme-gmaps-route__map-shell {
  position: relative;
  min-height: 300px;
  background: #e8eaed;
}

.fishme-gmaps-route__map {
  height: 300px;
  width: 100%;
  z-index: 0;
}

.fishme-gmaps-route__directions {
  padding: 16px 18px 18px;
  border-top: 1px solid #e8eaed;
  background: #fff;
}

.fishme-gmaps-route__leg {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.fishme-gmaps-route__marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #fff;
}

.fishme-gmaps-route__marker--a {
  background: #34a853;
}

.fishme-gmaps-route__marker--b {
  background: #ea4335;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  margin-top: 2px;
}

.fishme-gmaps-route__leg-line {
  width: 2px;
  height: 18px;
  margin: 4px 0 4px 5px;
  background: linear-gradient(#34a853, #ea4335);
  border-radius: 2px;
}

.fishme-gmaps-route__leg-text {
  min-width: 0;
}

.fishme-gmaps-route__leg-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f6368;
  margin-bottom: 2px;
}

.fishme-gmaps-route__leg-text strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #202124;
  line-height: 1.35;
}

.fishme-gmaps-route__meta {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #f1f3f4;
  font-size: 13px;
  font-weight: 500;
  color: #1a73e8;
}

.fishme-gmaps-marker {
  background: transparent;
  border: 0;
}

.fishme-gmaps-marker--origin .fishme-gmaps-marker__dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #34a853;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.fishme-gmaps-marker--dest .fishme-gmaps-marker__pin {
  display: block;
  width: 22px;
  height: 22px;
  background: #ea4335;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.fishme-gmaps-route .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  border-radius: 8px;
  overflow: hidden;
}

.fishme-gmaps-route .leaflet-control-zoom a {
  color: #3c4043;
  width: 34px;
  height: 34px;
  line-height: 34px;
  font-size: 18px;
}

.fishme-checkout-summary__card.fishme-loader-host,
.fishme-checkout-items.fishme-loader-host,
[data-cart-items].fishme-loader-host {
  min-height: 120px;
}

.fishme-checkout-pickup-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(192, 2, 8, 0.06);
  border: 1px solid rgba(192, 2, 8, 0.12);
}

.fishme-checkout-pickup-note i {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  color: var(--co-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.fishme-checkout-pickup-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--co-heading);
}

.fishme-checkout-panel__body .fishme-cart-shipping-options {
  margin-bottom: 20px;
}

.fishme-checkout-shipping-card__body {
  padding: 0;
}

.fishme-checkout-shipping-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
}

.fishme-checkout-shipping-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--co-primary);
  background: rgba(192, 2, 8, 0.08);
}

.fishme-checkout-shipping-icon--work {
  color: #1f1f25;
  background: rgba(31, 31, 37, 0.08);
}

.fishme-checkout-shipping-icon--other {
  color: #629d23;
  background: rgba(98, 157, 35, 0.12);
}

.fishme-checkout-shipping-details {
  min-width: 0;
  flex: 1;
}

.fishme-checkout-shipping-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.fishme-checkout-shipping-label-row strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--co-heading);
  line-height: 1.3;
}

.fishme-checkout-shipping-meta {
  font-size: 13px;
  color: var(--co-body);
  line-height: 1.3;
}

.fishme-checkout-shipping-meta::before {
  content: "·";
  margin-right: 8px;
  color: #c8cdd1;
}

.fishme-checkout-shipping-name {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--co-heading);
}

.fishme-checkout-shipping-lines {
  display: block;
  margin: 0 0 10px;
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
  color: #5f676d;
}

.fishme-checkout-shipping-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--co-heading);
}

.fishme-checkout-shipping-phone i {
  color: var(--co-primary);
  font-size: 12px;
}

.fishme-checkout-shipping-billing-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--co-body);
  background: #f8f9fa;
  border-top: 1px solid #ececec;
}

.fishme-checkout-shipping-billing-note i {
  color: var(--co-primary);
  font-size: 14px;
}

.fishme-checkout-shipping-empty {
  padding: 24px 20px;
  text-align: center;
  border: 1px dashed var(--co-border);
  border-radius: 12px;
  background: #fafafa;
}

.fishme-checkout-shipping-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--co-primary);
  background: rgba(192, 2, 8, 0.08);
}

.fishme-checkout-shipping-empty h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--co-heading);
}

.fishme-checkout-shipping-empty p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--co-body);
}

.fishme-checkout-notes {
  padding-top: 4px;
  border-top: 1px solid #ececec;
}

.fishme-checkout-notes label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--co-heading);
}

.fishme-checkout-notes label .optional {
  font-weight: 500;
  color: var(--co-body);
}

.fishme-checkout-notes textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid var(--co-border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--co-heading);
  background: #fff;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fishme-checkout-notes textarea::placeholder {
  color: #9aa3a9;
}

.fishme-checkout-notes textarea:focus {
  outline: none;
  border-color: rgba(192, 2, 8, 0.45);
  box-shadow: 0 0 0 3px rgba(192, 2, 8, 0.1);
}

/* Order summary sidebar */
.fishme-checkout-summary {
  position: sticky;
  top: 100px;
}

.fishme-checkout-summary__card {
  --cart-primary: var(--co-primary);
  --cart-heading: var(--co-heading);
  --cart-body: var(--co-body);
  --cart-border: var(--co-border);
  --cart-bg: var(--co-bg);

  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--co-border);
  box-shadow: 0 8px 24px rgba(31, 31, 37, 0.06);
}

.fishme-checkout-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--co-border);
  background: linear-gradient(135deg, rgba(192, 2, 8, 0.08) 0%, #fff 100%);
}

.fishme-checkout-summary__head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--co-heading);
}

.fishme-checkout-summary__edit {
  font-size: 13px;
  font-weight: 700;
  color: var(--co-primary);
  text-decoration: none;
}

.fishme-checkout-summary__edit:hover {
  text-decoration: underline;
}

.fishme-checkout-summary__items {
  padding: 16px 22px;
  border-bottom: 1px solid var(--co-border);
  max-height: 280px;
  overflow-y: auto;
}

.fishme-checkout-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fishme-checkout-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.fishme-checkout-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--co-border);
  background: var(--co-bg);
}

.fishme-checkout-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fishme-checkout-item__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--co-heading);
  text-decoration: none;
  line-height: 1.35;
}

.fishme-checkout-item__name:hover {
  color: var(--co-primary);
}

.fishme-checkout-item__meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--co-body);
}

.fishme-checkout-item__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--co-heading);
  white-space: nowrap;
}

.fishme-checkout-order-empty {
  margin: 0;
  font-size: 14px;
  color: var(--co-body);
}

.fishme-checkout-order-empty[hidden] {
  display: none !important;
}

.fishme-checkout-summary__totals {
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fishme-checkout-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--co-body);
}

.fishme-checkout-summary__row strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--co-heading);
}

.fishme-checkout-summary__row strong.is-discount {
  color: var(--co-primary);
}

.fishme-checkout-summary__row small {
  font-weight: 600;
  color: var(--co-body);
}

.fishme-checkout-summary__row--total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--co-border);
}

.fishme-checkout-summary__row--total span {
  font-size: 15px;
  font-weight: 700;
  color: var(--co-heading);
}

.fishme-checkout-summary__row--total strong {
  font-size: 22px;
  color: #629d23;
}

.fishme-checkout-discount[hidden] {
  display: none !important;
}

.fishme-checkout-coupon-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 12px 22px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--co-body);
  background: var(--co-bg);
  border-top: 1px solid var(--co-border);
}

.fishme-checkout-coupon-note i {
  color: var(--co-primary);
  margin-top: 2px;
}

.fishme-checkout-coupon-note a {
  font-weight: 700;
  color: var(--co-primary);
  text-decoration: none;
}

.fishme-checkout-coupon-note a:hover {
  text-decoration: underline;
}

.fishme-checkout-summary__foot {
  padding: 18px 22px 22px;
}

.fishme-checkout-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
  color: var(--co-heading);
}

.fishme-checkout-terms input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fishme-checkout-terms__ui {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid #d0d0d0;
  border-radius: 6px;
  background: #fff;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fishme-checkout-terms input:checked + .fishme-checkout-terms__ui {
  border-color: var(--co-primary);
  background: var(--co-primary);
}

.fishme-checkout-terms input:checked + .fishme-checkout-terms__ui::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.fishme-checkout-terms-hint {
  margin: -8px 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--co-primary);
}

.fishme-checkout-terms-hint[hidden] {
  display: none !important;
}

.fishme-checkout-place-order {
  width: 100%;
  justify-content: center;
  gap: 8px;
  margin: 0;
  min-height: 48px;
}

.fishme-checkout-privacy {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--co-body);
  text-align: center;
}

.fishme-checkout-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.fishme-checkout-trust li {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--co-body);
  background: #fff;
  border: 1px solid var(--co-border);
  border-radius: 10px;
}

.fishme-checkout-trust i {
  color: var(--co-primary);
}

@media (max-width: 991px) {
  .fishme-checkout-layout {
    grid-template-columns: 1fr;
  }

  .fishme-checkout-summary {
    position: static;
    order: -1;
  }
}

@media (max-width: 575px) {
  .fishme-checkout-hero {
    padding: 32px 0 36px;
  }

  .fishme-checkout-steps {
    max-width: 100%;
  }

  .fishme-checkout-step__label {
    font-size: 11px;
  }

  .fishme-checkout-panel__body,
  .fishme-checkout-panel__head {
    padding-left: 18px;
    padding-right: 18px;
  }

  .fishme-checkout-trust {
    flex-direction: column;
  }
}


.fishme-gmaps-route__origins {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fishme-gmaps-route__origin-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.fishme-gmaps-route__origin-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #fff;
}

.fishme-gmaps-route__origin-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #202124;
  line-height: 1.35;
}

.fishme-gmaps-route__origin-copy span {
  display: block;
  font-size: 12px;
  color: #5f6368;
  margin-top: 2px;
}

.fishme-gmaps-marker--origin .fishme-gmaps-marker__dot {
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.fishme-checkout-payment {
  margin: 12px 0 0;
  padding: 16px 22px 18px;
  border: 0;
  border-top: 1px solid var(--co-border);
  min-width: 0;
}

.fishme-checkout-payment__legend {
  display: block;
  width: 100%;
  float: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--co-body);
  margin: 0 0 12px;
  padding: 0;
}

.fishme-checkout-payment__options.fishme-cart-shipping-options {
  margin-bottom: 0;
}

.fishme-checkout-payment__option[hidden] {
  display: none !important;
}
