.wheelsys-reservation-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;

  & span,
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0;
  }

  & .vehicle-info {
    width: 100%;
    border-radius: 14px;
    background: linear-gradient(180deg, #ecf0f3 0%, white 100%);
  }

  & .wheelsys-vehicle-image {
    width: fit-content;
    margin-inline: auto;
  }
}


body {
  margin: 0;
  padding: 0;
  background-color: #FCFCFC;
}

* {
  box-sizing: border-box;
}

.wheelsys-input {
  background-color: rgba(255, 242, 242, 1);
  border-radius: 999px;
  padding: 0.5rem 0.325rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.wheelsys-input_button {
  cursor: pointer;
  outline: none;
  background-color: var(--wheelsys-primary-color);
  color: white;
  padding: 5px;
  border-radius: 999px;
  border: none;
  aspect-ratio: 1/1;
  height: 1.625rem;
  width: 1.625rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.wheelsys-input_checkbox {
  box-sizing: border-box;
  border: 1px solid rgba(242, 242, 242, 1);
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: transparent;
  margin: 0 !important;
}

.wheelsys-input_checkbox:hover {
  border-color: var(--wheelsys-primary-color);
}

.peer:checked+.wheelsys-input_checkbox {
  background-color: var(--wheelsys-primary-color);
  border-color: var(--wheelsys-primary-color);
  color: white;
}

.wheelsys-addons-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .wheelsys-addons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .wheelsys-addons-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.wheelsys-addon-item {
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
  overflow: visible !important;
}

.wheelsys-addon-item:hover {
  border-color: #cbd5e1;
  /* hover:border-gray-300 */
}

.wheelsys-addon-item.is-selected {
  border-color: var(--wheelsys-primary-color) !important;
  background-color: rgba(var(--wheelsys-primary-rgb, 239, 52, 63), 0.02);
}

.wheelsys-addon-item:active {
  transform: scale(0.99);
}

.wheelsys-addon-item:hover .quantity-increase-visual {
  filter: brightness(90%) !important;
}

.wheelsys-qty-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  background-color: rgba(239, 52, 63, 1) !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: 0 2px 4px rgba(239, 52, 63, 0.2) !important;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
  overflow: visible !important;
}

.wheelsys-qty-btn svg {
  fill: #ffffff !important;
  width: 12px;
  height: auto;
  display: block;
}

.wheelsys-qty-btn:hover {
  filter: brightness(90%) !important;
}

.wheelsys-qty-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: auto !important;
  padding-top: 12px !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
}

.wheelsys-qty-display {
  font-size: 1rem !important;
  font-weight: 600 !important;
  min-width: 1.5rem !important;
  text-align: center !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wheelsys-checkout-wrapper {
  max-width: 1320px;
  margin: 0 auto;
}

.woocommerce-notices-wrapper {
  max-width: 1320px;
  margin: 0 auto;
}

.wheelsys-checkout-title {
  border-bottom: 1px solid rgba(225, 225, 225, 1);
  padding-block: 1.625rem;
  padding-inline: 1.625rem;
  letter-spacing: 0.01px;
}

.wheelsys-checkout-title-wrapper {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  font-size: 1.375rem;
}

.wheelsys-select-woocommerce .select2-container .select2-selection--single {
  border-radius: 14px !important;
  border-color: rgba(216, 218, 220, 1) !important;
  display: flex !important;
  align-items: center !important;
}

.wheelsys-select-woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  line-height: normal !important;
  color: inherit !important;
}

.wheelsys-select-woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  right: 1rem !important;
}

.select2-dropdown {
  border-color: rgba(216, 218, 220, 1) !important;
  border-radius: 0 0 14px 14px;
  overflow: hidden !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

#wheelsys-place-order {
  margin-top: 15px;
  cursor: pointer;
  color: white;
  border-radius: 48px;
  width: 100%;
  box-shadow: 0px 2px 50px 0px rgba(25, 33, 61, 0.02);
  font-weight: 700;
  font-size: 1.125rem;
  padding-block: 1.125rem;
  outline: none;
  border: none;
  background-color: var(--wheelsys-primary-color);
}


/* Price Display Styles */
.wheelsys-price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  transform: translateZ(0);
  /* Fix for scrolling artifacts */
  -webkit-font-smoothing: antialiased;
}

.wheelsys-new-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  outline: none !important;
  border: none !important;
  text-decoration: none !important;
}

.wheelsys-old-price {
  font-size: 0.875rem;
  text-decoration: line-through;
  color: #9ca3af;
  /* text-gray-400 equivalent */
  margin-right: 0.25rem;
  outline: none !important;
  border: none !important;
}

/* Reset potentially conflicting elements from Theme/WC */
.wheelsys-price-container ins,
.wheelsys-price-container del,
.wheelsys-price-container span {
  background: transparent !important;
  text-decoration-color: currentColor;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.wheelsys-old-price {
  font-size: 0.875rem;
  text-decoration: line-through;
  color: #9ca3af;
  /* text-gray-400 equivalent */
  margin-right: 0.25rem;
  outline: none !important;
  border: none !important;
}

/* Checkout Summary Styles */
.wheelsys-summary-total-container {
  display: flex;
  flex-direction: column;
}

.wheelsys-summary-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
  /* text-gray equivalent */
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.wheelsys-summary-amount-wrapper {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.375rem;
  /* ~ gap-1.5 */
}

.wheelsys-summary-main-price {
  font-weight: 700;
}

.wheelsys-summary-amount {
  font-size: 1.5rem;
  /* text-2xl */
  font-weight: 700;
  line-height: 1;
  display: inline-block;
  /* needed for ::before skeleton overlay */
}

.wheelsys-summary-daily-rate {
  color: #9ca3af;
  /* text-gray */
  font-weight: 500;
  font-size: 0.875rem;
  /* text-sm */
}

/* Price Skeleton Loader */
@keyframes wsk-checkout-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.wheelsys-price-loading {
  position: relative;
  pointer-events: none;
  cursor: wait;
  min-height: 1.5em;
}

/* Hide the real content while loading */
.wheelsys-price-loading>* {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Shimmer block overlay */
.wheelsys-price-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: wsk-checkout-shimmer 1.4s infinite;
  z-index: 1;
}

/* ── Unified Price Breakdown (change orders + new bookings) ─────── */
.wheelsys-price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wpb-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.wpb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #555;
  padding: 0.28rem 0;
}

.wpb-row>span:first-child {
  color: #666;
}

.wpb-row>span:last-child {
  font-weight: 600;
  color: #222;
  text-align: right;
}

.wpb-row--paid>span:last-child {
  color: #16a34a;
}

.wpb-row--fee>span:last-child {
  color: #dc2626;
}

.wpb-row--refund>span:last-child {
  color: #16a34a;
}

.wpb-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0.5rem 0 0.6rem;
}

.wpb-total {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.wpb-total .wheelsys-summary-label {
  margin-bottom: 0;
}

.wheelsys-refund-badge {
  display: inline-flex;
  align-items: center;
  background: #dcfce7;
  color: #15803d !important;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700 !important;
}