/* ==========================================================================
   Cart Page
   ========================================================================== */

.cart-page {
  min-height: calc(100vh - var(--header-height));
  padding: 40px 0 80px;
}

.cart__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header */
.cart__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 40px;
}

.cart__title {
  font-size: 25px;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
}

.cart__subtitle {
  font-size: 14px;
  color: var(--color-gray);
}

/* Content Layout */
.cart__content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

/* Cart Items */
.cart__items {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cart-loading {
  text-align: center;
  color: var(--color-gray);
  padding: 40px;
}

/* Cart Item */
.cart-item {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: -24px;
}

.cart-item__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.cart-item__date {
  color: var(--color-white);
}

.cart-item__created {
  color: var(--color-gray);
}

.cart-item__id {
  color: var(--color-gray);
  margin-left: auto;
  margin-right: 16px;
}

.cart-item__actions {
  display: flex;
  gap: 8px;
}

.cart-item__edit,
.cart-item__remove {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: var(--color-gray);
  cursor: pointer;
  transition: all 0.2s;
}

.cart-item__edit:hover,
.cart-item__remove:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.cart-item__remove:hover {
  background: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
}

.cart-item__body {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.cart-item__image {
  width: 160px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #2a2a2a;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.cart-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
}

.cart-item__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item__days {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-gray);
}

.cart-item__days svg {
  color: #4CAF50;
}

.cart-item__price {
  font-size: 18px;
  font-weight: 600;
  color: #4CAF50;
}

.cart-item__address {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 14px;
  color: var(--color-gray);
  margin-top: auto;
}

.cart-item__address svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Empty State */
.cart__empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  grid-column: 1 / -1;
}

.cart__empty-icon {
  color: var(--color-gray);
  opacity: 0.5;
  margin-bottom: 24px;
}

.cart__empty-text {
  font-size: 18px;
  color: var(--color-gray);
  margin-bottom: 24px;
}

.cart__empty-btn {
  padding: 14px 28px;
  background-color: var(--color-white);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-bg);
  text-decoration: none;
  transition: opacity 0.2s;
}

.cart__empty-btn:hover {
  opacity: 0.9;
}

/* Sidebar */
.cart-sidebar {
  position: sticky;
  top: 120px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
}

.cart-sidebar__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.cart-sidebar__total-label {
  font-size: 14px;
  color: var(--color-gray);
}

.cart-sidebar__total-value {
  font-size: 25px;
  font-weight: 700;
  color: var(--color-white);
}

.cart-sidebar__count {
  font-size: 13px;
  color: var(--color-gray);
  display: block;
  margin-bottom: 25px;
}

.cart-sidebar__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-sidebar__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cart-sidebar__feature svg {
  flex-shrink: 0;
  color: #4CAF50;
  margin-top: 2px;
}

.cart-sidebar__feature-text {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.cart-sidebar__feature-text span:first-child {
  color: var(--color-white);
  font-weight: 500;
}

.cart-sidebar__feature-text span:last-child {
  color: var(--color-gray);
}

.cart-sidebar__checkout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--color-white);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-bg);
  cursor: pointer;
  transition: opacity 0.2s;
  margin-bottom: 24px;
}

.cart-sidebar__checkout:hover {
  opacity: 0.9;
}

.cart-sidebar__benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-sidebar__benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-gray);
}

.cart-sidebar__benefit svg {
  color: var(--color-gray);
}

/* ==========================================================================
   Checkout Modal
   ========================================================================== */

.checkout-modal,
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkout-modal.is-open,
.payment-modal.is-open {
  display: flex;
}

.checkout-modal__backdrop,
.payment-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
}

.checkout-modal__container,
.payment-modal__container {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  z-index: 1;
}

/* Custom scrollbar for payment modal on desktop */
@media (min-width: 769px) {
  .payment-modal__container::-webkit-scrollbar {
    width: 8px;
  }

  .payment-modal__container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
  }

  .payment-modal__container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
  }

  .payment-modal__container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  /* Firefox */
  .payment-modal__container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
  }
}

.checkout-modal__header,
.payment-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-modal__back,
.payment-modal__back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  transition: opacity 0.2s;
}

.checkout-modal__back:hover,
.payment-modal__back:hover {
  opacity: 0.7;
}

.checkout-modal__title,
.payment-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
}

.checkout-modal__close,
.payment-modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-gray);
  cursor: pointer;
  transition: color 0.2s;
}

.checkout-modal__close:hover,
.payment-modal__close:hover {
  color: var(--color-white);
}

/* Checkout Form */
#checkout-form-step2 {
  padding: 24px;
}

.checkout-modal__field {
  margin-bottom: 20px;
}

.checkout-modal__field-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.checkout-modal__field--country {
  width: 140px;
  flex-shrink: 0;
}

.checkout-modal__field--phone {
  flex: 1;
}

.checkout-modal__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray);
  text-transform: lowercase;
  margin-bottom: 8px;
}

.checkout-modal__input,
.checkout-modal__select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 14px;
  color: var(--color-white);
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
}

.checkout-modal__select option {
  background-color: #1a1a1a;
  color: var(--color-white);
  padding: 8px 16px;
}

.checkout-modal__select option:hover,
.checkout-modal__select option:checked {
  background-color: rgba(255, 255, 255, 0.1);
}

.checkout-modal__input:focus,
.checkout-modal__select:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.checkout-modal__whatsapp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--color-gray);
}

.checkout-modal__toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.checkout-modal__toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.checkout-modal__toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}

.checkout-modal__toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.checkout-modal__toggle input:checked + .checkout-modal__toggle-slider {
  background-color: var(--color-white);
}

.checkout-modal__toggle input:checked + .checkout-modal__toggle-slider:before {
  transform: translateX(20px);
  background-color: #1a1a1a;
}

.checkout-modal__submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--color-white);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-bg);
  cursor: pointer;
  transition: opacity 0.2s;
}

.checkout-modal__submit:hover {
  opacity: 0.9;
}

/* ==========================================================================
   Payment Modal
   ========================================================================== */

.payment-modal__summary {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-modal__summary-label {
  font-size: 14px;
  color: var(--color-gray);
  text-transform: lowercase;
  display: block;
  margin-bottom: 12px;
}

.payment-modal__summary-car {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payment-car {
  display: flex;
  gap: 16px;
  width: 100%;
  border-radius: 24px;
  padding: 15px;
  border: 1px solid var(--color-white);
}

.payment-car__image {
  width: 224px;
  height: 165px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2a2a;
}

.payment-car__image--single {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2a2a;
}

.payment-car__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payment-car__image--single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payment-car__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.payment-car__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-car__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  margin: 0;
}

.payment-car__title--single {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  margin: 0;
}

.payment-car__body {
  font-size: 14px;
  color: var(--color-white);
  margin: 0;
  padding: 5px 10px;
  background-color: var(--color-bg);
  border-radius: 5px;
  width: fit-content;
}

.payment-car__link {
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
  margin-top: 2px;
}

.payment-car__link:hover {
  text-decoration: underline;
}

.payment-car__specs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.payment-car__spec {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--color-white);
}

.payment-car__spec svg {
  flex-shrink: 0;
  color: var(--color-gray);
}

.payment-car__price {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-car__price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
}

.payment-modal__methods {
  padding: 20px 24px;
}

.payment-modal__methods-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-gray);
  margin-bottom: 16px;
}

.payment-modal__method-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-modal__method {
  display: block;
  cursor: pointer;
}

.payment-modal__method input {
  display: none;
}

.payment-modal__method-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 12px;
  transition: border-color 0.2s;
}

.payment-modal__method input:checked + .payment-modal__method-content {
  border-color: var(--color-white);
}

.payment-modal__method-name {
  font-size: 14px;
  color: var(--color-white);
}

.payment-modal__method-icon {
  height: 24px;
  color: var(--color-white);
}

.payment-modal__method-icons {
  display: flex;
  gap: 8px;
}

.payment-modal__method-icons img {
  height: 20px;
}

.payment-modal__method-badge {
  padding: 4px 8px;
  background: var(--color-white);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
}

.payment-modal__submit {
  width: calc(100% - 48px);
  margin: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--color-white);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-bg);
  cursor: pointer;
  transition: opacity 0.2s;
}

.payment-modal__submit:hover {
  opacity: 0.9;
}

/* Success Modal */
.booking-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.booking-success-modal.is-open {
  display: flex;
}

.booking-success-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
}

.booking-success-modal__container {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  z-index: 1;
}

.booking-success-modal__icon {
  margin-bottom: 24px;
}

.booking-success-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 12px;
}

.booking-success-modal__text {
  font-size: 14px;
  color: var(--color-gray);
  margin-bottom: 24px;
}

.booking-success-modal__btn {
  width: 100%;
  padding: 14px 24px;
  background-color: var(--color-white);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-bg);
  cursor: pointer;
}

/* ==========================================================================
   Header Cart Badge
   ========================================================================== */

.header__action--cart {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -10px;
  right: -18px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ffffff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  color: #000000;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Mobile nav cart badge */
.mobile-nav__item--cart {
  position: relative;
}

.cart-badge--mobile {
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(16px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
}

/* ==========================================================================
   Add to Cart Button (Single Car Page)
   ========================================================================== */

.add-to-cart-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 12px;
}

.add-to-cart-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.add-to-cart-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Edit Modal
   ========================================================================== */

.edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.edit-modal.is-open {
  display: flex;
}

.edit-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
}

.edit-modal__container {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  z-index: 1;
}

.edit-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
}

.edit-modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-gray);
  cursor: pointer;
  transition: color 0.2s;
}

.edit-modal__close:hover {
  color: var(--color-white);
}

.edit-modal__form {
  padding: 24px;
}

.edit-modal__field {
  margin-bottom: 20px;
}

.edit-modal__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray);
  text-transform: lowercase;
  margin-bottom: 8px;
}

.edit-modal__input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 14px;
  color: var(--color-white);
  outline: none;
  transition: border-color 0.2s;
}

.edit-modal__input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.edit-modal__duration {
  margin-bottom: 24px;
}

.edit-modal__duration-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.edit-modal__duration-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s;
}

.edit-modal__duration-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.edit-modal__duration-value {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-white);
}

.edit-modal__price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  margin-bottom: 24px;
}

.edit-modal__price-label {
  font-size: 14px;
  color: var(--color-gray);
}

.edit-modal__price-value {
  font-size: 18px;
  font-weight: 700;
  color: #4CAF50;
}

.edit-modal__submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--color-white);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-bg);
  cursor: pointer;
  transition: opacity 0.2s;
}

.edit-modal__submit:hover {
  opacity: 0.9;
}

.edit-modal__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 968px) {
  .cart__content {
    grid-template-columns: 1fr;
  }

  .cart__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
  }

  .cart-sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  .cart-page {
    padding: 24px 0 60px;
  }

  .cart__header {
    margin-bottom: 24px;
  }

  .cart__title {
    font-size: 25px;
  }

  .cart-item__body {
    flex-direction: column;
    gap: 16px;
  }

  .cart-item__image {
    width: 100%;
    height: 160px;
  }

  .cart-item__header {
    flex-wrap: wrap;
  }

  .cart-item__id {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    order: 3;
  }

  .cart-item__actions {
    order: 2;
    margin-left: auto;
  }
  .cart-sidebar {
    display: none!important;
  }

  .payment-car__image {
    width: 180px;
    height: 165px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #2a2a2a;
  }
}

@media (max-width: 380px){
  .payment-car__image {
    width: 120px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #2a2a2a;
  }

  .payment-car__title {
    font-size: 14px;
  }
}

/* ==========================================================================
   Mobile Fixed Book Button
   ========================================================================== */

.cart-mobile-book {
  position: fixed;
  bottom: 70px;
  left: 0;
  right: 0;
  z-index: 101;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cart-mobile-book.is-hidden {
  display: none !important;
}

.cart-mobile-book__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-mobile-book__price-label {
  font-size: 14px;
  color: var(--color-gray);
}

.cart-mobile-book__price-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
}

.cart-mobile-book__btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background-color: var(--color-white);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-bg);
  cursor: pointer;
  transition: opacity 0.2s;
}

.cart-mobile-book__btn:hover {
  opacity: 0.9;
}

.cart-mobile-book__btn svg {
  width: 20px;
  height: 20px;
}

/* Show mobile button on mobile devices */
@media (max-width: 968px) {
  .cart-mobile-book {
    display: flex;
  }

  .cart-mobile-book.is-hidden {
    display: none !important;
  }

  .cart__items {
    padding-bottom: 100px;
  }
}

/* Booking Success Modal */
.booking-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.booking-success-modal.is-open {
  display: flex;
}

.booking-success-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
}

.booking-success-modal__container {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  z-index: 1;
  animation: successSlideUp 0.4s ease-out;
}

@keyframes successSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.booking-success-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.booking-success-modal__icon svg {
  animation: successCheckmark 0.6s ease-out 0.2s both;
}

@keyframes successCheckmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.booking-success-modal__title {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px 0;
}

.booking-success-modal__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.booking-success-modal__btn {
  width: 100%;
  padding: 14px 32px;
  background: #4CAF50;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.booking-success-modal__btn:hover {
  background: #45a049;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .booking-success-modal__container {
    padding: 32px 24px;
  }

  .booking-success-modal__title {
    font-size: 20px;
  }
}

/* ==========================================================================
   PWA Mode Adjustments for Cart
   ========================================================================== */

/* Adjust mobile book button in PWA mode */
@media (display-mode: standalone) and (max-width: 968px) {
  .cart-mobile-book {
    bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

.pwa-mode .cart-mobile-book {
  bottom: calc(70px + env(safe-area-inset-bottom));
}