/*
 * WPC Fly Cart restyle: the basket panel that opens after "Book now" (functions/custom/fly-cart.php).
 * Replaces the plugin's red "style 01" look with a white card in the site's navy and green.
 * Plain CSS rather than SCSS so it doesn't depend on the WP-SCSS plugin compiling.
 */

.woofc-area {
  --fc-navy: #201b4e;
  --fc-green: #a1bf60;
  --fc-green-soft: #eef4e2;
  --fc-line: #e3e2ea;
  --fc-muted: #6f6c85;
  --fc-grey: #f6f6f9;
}

.woofc-area *,
.woofc-count * {
  font-family: 'Lato', sans-serif;
  line-height: 1.4;
}

.woofc-overlay {
  background: rgba(20, 15, 54, 0.55) !important;
}

/* Panel */

.woofc-area.woofc-style-01 .woofc-inner {
  background: #fff;
  color: var(--fc-navy);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20, 15, 54, 0.3);
  overflow: hidden;
}

/* Header */

.woofc-area.woofc-style-01 .woofc-area-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: 0;
  padding: 18px 20px 16px 24px;
  line-height: 1.2;
  font-weight: 400;
  border-bottom: 1px solid var(--fc-line);
  background: #fff;
}

.woofc-area.woofc-style-01 .woofc-area-top .woofc-area-heading {
  display: flex;
  width: auto;
  height: auto;
  overflow: visible;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  line-height: 1.2;
  text-transform: none;
  color: var(--fc-navy);
}

.woofc-area.woofc-style-01 .woofc-area-top .woofc-area-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  margin: 0;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--fc-green-soft);
  font-size: 14px;
  font-weight: 700;
  color: var(--fc-navy);
  opacity: 1;
}

.woofc-area.woofc-style-01 .woofc-area-heading .woofc-area-count::before,
.woofc-area.woofc-style-01 .woofc-area-heading .woofc-area-count::after {
  content: none;
}

.woofc-area.woofc-style-01 .woofc-area-top .woofc-close {
  position: static;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 50%;
  background: var(--fc-grey);
  color: var(--fc-navy);
  font-size: 14px;
  line-height: 1;
  transform: none;
  transition: background 0.2s;
}

.woofc-area.woofc-style-01 .woofc-area-top .woofc-close:hover {
  background: var(--fc-line);
}

.woofc-area.woofc-style-01 .woofc-area-top .woofc-close i {
  color: var(--fc-navy);
  font-size: 14px;
  line-height: 1;
}

/* Items */

.woofc-area.woofc-style-01 .woofc-area-mid {
  padding: 8px 0;
  background: #fff;
}

.woofc-area.woofc-style-01 .woofc-no-item {
  padding: 28px 24px;
  font-size: 17px;
  text-align: center;
  color: var(--fc-muted);
}

.woofc-area.woofc-style-01 .woofc-area-mid .woofc-item {
  margin: 0;
  padding: 0 24px;
  background: transparent;
}

.woofc-area.woofc-style-01 .woofc-area-mid .woofc-item .woofc-item-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border: 0;
  background: transparent;
}

.woofc-area.woofc-style-01 .woofc-area-mid .woofc-item + .woofc-item .woofc-item-inner {
  border-top: 1px solid var(--fc-line);
}

.woofc-area.woofc-style-01 .woofc-area-mid .woofc-item .woofc-item-inner .woofc-item-thumb {
  flex: none;
  flex-basis: 64px;
  width: 64px;
  margin: 0;
}

.woofc-area.woofc-style-01 .woofc-area-mid .woofc-item .woofc-item-inner .woofc-item-thumb img {
  display: block;
  float: none;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.woofc-area.woofc-style-01 .woofc-item .woofc-item-info {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.woofc-area.woofc-style-01 .woofc-item .woofc-item-title,
.woofc-area.woofc-style-01 .woofc-item .woofc-item-title a {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--fc-navy);
  text-decoration: none;
}

.woofc-area.woofc-style-01 .woofc-item .woofc-item-data {
  display: block;
  margin: 2px 0 4px;
  font-size: 14px;
  color: var(--fc-muted);
  opacity: 1;
}

.woofc-area.woofc-style-01 .woofc-item .woofc-item-price,
.woofc-area.woofc-style-01 .woofc-item .woofc-item-price * {
  font-size: 15px;
  font-weight: 700;
  color: var(--fc-navy);
  opacity: 1;
}

/* Bookings are one per basket line, so the quantity column only adds noise. */
.woofc-area.woofc-style-01 .woofc-item .woofc-item-qty:not(.woofc-item-qty-plus-minus) {
  display: none;
}

.woofc-area.woofc-style-01 .woofc-item .woofc-item-remove {
  position: static;
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 50%;
  background: var(--fc-grey);
  color: var(--fc-muted);
  font-size: 12px;
  cursor: pointer;
  transform: none;
  transition: background 0.2s, color 0.2s;
}

.woofc-area.woofc-style-01 .woofc-item .woofc-item-remove:hover {
  background: #fdecea;
  color: #c0392b;
}

.woofc-area.woofc-style-01 .woofc-item .woofc-item-remove i {
  font-size: 12px;
  color: inherit;
}

/* Totals and buttons */

.woofc-area.woofc-style-01 .woofc-area-bot {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--fc-line);
  background: var(--fc-grey);
}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-data {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border: 0;
  font-size: 15px;
  color: var(--fc-muted);
}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-data *,
.woofc-area.woofc-style-01 .woofc-area-bot .woofc-data .woofc-data-right {
  font-size: 15px;
  color: inherit;
}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-total {
  margin-bottom: 14px;
  color: var(--fc-navy);
}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-total *,
.woofc-area.woofc-style-01 .woofc-area-bot .woofc-total .woofc-data-right {
  font-size: 18px;
  font-weight: 700;
  color: var(--fc-navy);
}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-link {
  display: none;
}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-action {
  padding: 0;
}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-action .woofc-action-inner {
  display: flex;
  gap: 10px;
  margin: 0;
}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-action .woofc-action-inner > div {
  flex: 1;
  width: auto;
  padding: 0;
}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-action .woofc-action-inner > div a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 16px;
  border: 2px solid var(--fc-navy);
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--fc-navy);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-action .woofc-action-inner > div a:hover {
  background: var(--fc-navy);
  color: #fff;
}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-action .woofc-action-inner > div a.woofc-action-checkout {
  border-color: var(--fc-green);
  background: var(--fc-green);
  color: var(--fc-navy);
}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-action .woofc-action-inner > div a.woofc-action-checkout:hover {
  border-color: #b3cf78;
  background: #b3cf78;
  color: var(--fc-navy);
}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-continue {
  margin-top: 14px;
  padding: 0;
  text-align: center;
}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-continue span {
  font-size: 15px;
  text-transform: none;
  text-decoration: none;
  color: var(--fc-muted);
  cursor: pointer;
}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-continue span:hover {
  color: var(--fc-navy);
  text-decoration: underline;
}

/* Floating basket button (bottom left) */

.woofc-count {
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(20, 15, 54, 0.18);
}

.woofc-count i {
  color: #201b4e;
}

.woofc-count span,
.woofc-count .woofc-count-number {
  background: #a1bf60 !important;
  color: #201b4e !important;
  font-weight: 700;
}

@media (max-width: 480px) {
  .woofc-area.woofc-style-01 .woofc-area-top,
  .woofc-area.woofc-style-01 .woofc-area-mid .woofc-item,
  .woofc-area.woofc-style-01 .woofc-area-bot {
    padding-left: 18px;
    padding-right: 18px;
  }

  .woofc-area.woofc-style-01 .woofc-area-bot .woofc-action .woofc-action-inner {
    flex-direction: column-reverse;
  }

  .woofc-area.woofc-style-01 .woofc-area-bot .woofc-action .woofc-action-inner > div {
    flex: none;
    width: 100%;
  }
}
