/* Global Styles */
.cart-container {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.cart-main {
  flex: 1;
}

.cart-summary {
  width: 300px;
  background-color: #2c6cb2 !important;
  color: white;
  padding: 20px;
  border-radius: 8px;
}

/* Progress Bar */
.ourm_cart-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  color: #a0a0a0;
  font-weight: 600;
  width: 25%;
  text-align: center;
}

.progress-step::before {
  content: "";
  width: 30px;
  height: 30px;
  background-color: #e0e0e0;
  border-radius: 50%;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-step::after {
  content: "";
  position: absolute;
  top: 15px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: #e0e0e0;
  z-index: 1;
}

.progress-step:last-child::after {
  display: none;
}

.progress-step.completed {
  color: #28a745;
}

.progress-step.completed::before {
  background-color: #28a745;
  content: "✓";
  color: white;
}

.progress-step.completed::after {
  background-color: #28a745;
}

.progress-step.active {
  color: #2c6cb2;
}

.progress-step.active::before {
  background-color: #2c6cb2;
  color: white;
  content: attr(data-step);
}

/* Section Titles */
.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #2c6cb2;
}

/* Cart Items */
.cart-item {
  display: block !important;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
}

.cart-item-columns {
  display: flex;
  gap: 30px;
}

.cart-item-left {
  flex: 1;
}

.cart-item-right {
  width: 300px;
  padding-left: 20px;
  border-left: 1px solid #e0e0e0;
}

.ride-info {
  position: relative;
  margin-bottom: 20px;
}

.ride-number {
  font-weight: bold;
  margin-bottom: 15px;
}

.route-visualization {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.route-point {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #2c6cb2;
}

.route-line {
  flex: 1;
  height: 2px;
  background-color: #2c6cb2;
  margin: 0 10px;
}

.pickup-info,
.dropoff-info {
  margin-bottom: 10px;
}

.service-details {
  color: #000000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
}

.vehicle-selection h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.travel-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.travel-date,
.from-location,
.to-location,
.acf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.travel-details label {
  font-weight: 600;
  color: #555;
}

.date-value,
.location-value,
.field-value {
  padding: 8px 12px;
  background: #fff;
  border-radius: 4px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.passenger-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.adults,
.children {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.passenger-icon {
  font-size: 18px;
  margin-right: 5px;
}

.passenger-count {
  font-weight: 600;
}

.passenger-price {
  color: #666;
  font-size: 0.9em;
}

.price-breakdown {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.price-row.total {
  font-weight: bold;
  border-top: 1px solid #e0e0e0;
  margin-top: 10px;
  padding-top: 10px;
}

.product-actions {
  text-align: right;
}

.product-remove a {
  color: #dc3545;
  text-decoration: none;
  font-weight: 600;
}

.product-remove a:hover {
  text-decoration: underline;
}

/* Summary Styles */
.summary-title {
  font-size: 22px;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.summary-details {
  margin-bottom: 30px;
}

.service-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.service-type h3 {
  font-size: 18px;
  margin: 0;
}

.summary-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.summary-item {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.summary-item i {
  color: #a3e0ff;
  margin-top: 3px;
}

.summary-totals {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
}

.subtotal,
.tax,
.total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.total {
  font-weight: bold;
  font-size: 18px;
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}

.checkout-actions {
  margin-top: 30px;
}

.checkout-button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #121212;
  color: white;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.checkout-button:hover {
  background-color: #000;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  clear: both; /* Evita que se alineen junto al summary si hay flotados previos */
}

.back-to-search {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #e0e0e0;
}

.update-cart {
  background-color: #6c757d;
}

.button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  color: white;
}

/* Estilos para métodos de pago */
.payment-methods-section {
  margin-top: 30px;
  margin-bottom: 30px;
}

.payment-methods-container {
  color: #000000;
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 5px;
}

.woocommerce-checkout #payment {
  background-color: transparent;
  border-radius: 5px;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid #ddd;
  padding: 0 0 20px;
}

.woocommerce-checkout #payment ul.payment_methods li {
  line-height: 2;
  margin-bottom: 10px;
}

.woocommerce-checkout #payment div.payment_box {
  background-color: #e9f7fe;
  color: #333;
  padding: 15px;
  margin-top: 10px;
  border-radius: 3px;
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: #e9f7fe;
}

.woocommerce-checkout #payment div.form-row {
  padding: 20px 0 0;
}

.woocommerce-checkout #payment .place-order .button {
  background-color: #2a75be;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  width: 100%;
  margin-top: 10px;
}

.woocommerce-checkout #payment .place-order .button:hover {
  background-color: #1e5c94;
}

/* Estilos para el checkout */
.checkout-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.checkout-left-column {
  flex: 1;
  min-width: 300px;
}
.payment-methods-section {
  width: 50% !important;
  float: right;
}
.contact-information {
  width: 50% !important;
  float: left;
}

.checkout-right-column {
  background-color: #2a75be;
  color: white;
  padding: 20px;
}

.section-title {
  color: #2a75be;
  font-weight: normal;
  font-size: 24px;
  margin-bottom: 20px;
}

.field-row {
  margin-bottom: 15px;
}

.field-row.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.field-row.terms-checkbox input {
  margin-top: 5px;
}

.field-row.terms-checkbox label {
  font-size: 14px;
}

.field-row.card-details {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
}

.field-col input,
.field-row input[type="text"],
.field-row input[type="email"],
.field-row input[type="tel"],
.field-row input[type="time"],
.field-row input[type="password"] {
  width: 100%;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.contact-fields .field-row,
.travel-fields .field-row {
  display: flex;
  gap: 15px;
}

.contact-fields .field-col,
.travel-fields .field-col {
  flex: 1;
}

.field-col.create-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field-col.create-account input {
  width: auto;
}

.autofill-link {
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 14px;
}

.terms-link {
  color: #2a75be;
  text-decoration: none;
}

.confirm-button {
  background-color: #000;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  margin-top: 20px;
}

/* Estilos del resumen */
.summary-title {
  margin-top: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: normal;
}

.service-details {
  margin-bottom: 20px;
}

.service-name {
  margin-bottom: 5px;
  font-weight: normal;
}

.service-price {
  margin-bottom: 10px;
  font-weight: bold;
}

.service-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-info li {
  margin-bottom: 5px;
}

.summary-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 20px 0;
}

.subtotal-row,
.tax-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.promo-code {
  margin: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 20px;
}

.coupon-field {
  display: flex;
  gap: 10px;
}

.coupon-field input {
  flex: 1;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 3px;
  color: white;
}

.coupon-field input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.apply-coupon {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 3px;
  cursor: pointer;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.total-amount {
  font-size: 28px;
  font-weight: bold;
}

.currency-code {
  font-size: 16px;
  font-weight: normal;
  margin-left: 5px;
}

/* Estilos para opción de login */
.login-option-box {
  margin-bottom: 30px;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 5px;
}

.show-login-form {
  color: #2a75be;
  text-decoration: none;
  font-weight: bold;
}

.login-form-container {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

/* Estilos para progress steps */
.tourm_cart-progress {
  display: ruby-text;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 15px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.progress-step {
  position: relative;
  text-align: center;
  flex: 1;
  font-size: 14px;
  color: #999;
}

.progress-step.completed,
.progress-step.active {
  color: #2a75be;
  font-weight: bold;
}

.step-number {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  background-color: #f5f5f5;
  margin-right: 8px;
}

.progress-step.completed .step-number,
.progress-step.active .step-number {
  background-color: #2a75be;
  color: white;
}
/* Mobile Responsive Styles for Cart Page */
@media screen and (max-width: 768px) {
  .cart-container {
    flex-direction: column !important;
    padding: 10px !important;
  }

  .cart-main,
  .cart-summary {
    width: 100% !important;
    margin: 0 !important;
  }

  .cart-main {
    margin-bottom: 20px !important;
  }

  .service-details {
    display: flex;
    flex-direction: column !important;
    padding: 15px !important;
    gap: 10px !important;
  }

  .travel-details {
    display: grid !important;
    gap: 10px !important;
  }

  .travel-date,
  .transport-origin,
  .transport-destination,
  .flight-origin,
  .flight-destination,
  .activity-meeting-point,
  .activity-duration,
  .passengers-info {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 10px !important;
  }

  .travel-details label,
  .flight-details label {
    font-weight: bold !important;
    margin-bottom: 5px !important;
    font-size: 0.9em !important;
  }

  .flight-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .flight-details input,
  .flight-details input.input-text {
    width: 100% !important;
    padding: 8px !important;
    margin-top: 5px !important;
  }

  .cart-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .cart-actions .button {
    width: 100% !important;
    text-align: center !important;
    padding: 12px !important;
  }

  .summary-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .summary-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px !important;
    border-radius: 5px;
  }
  ::before {
    color: #ffffff!important;
  }
  .summary-item i {
    margin-right: 10px !important;
    color: #333 !important;
  }

  .summary-totals {
    margin-top: 20px !important;
  }

  .total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px;
    border-radius: 5px !important;
  }

  .checkout-actions .button {
    width: 100% !important;
    padding: 15px !important;
    text-align: center !important;
  }

  .remove {
    display: block !important;
  }

  .remove-item-container {
    display: block !important;
  }

  i.fas.fa-trash-alt {
    color: red !important;
  }

  .progress-bar-container {
    margin-bottom: 20px !important;
    overflow-x: auto !important;
  }

  .progress-steps {
    display: flex !important;
    justify-content: space-between !important;
    min-width: 400px !important;
  }

  .step {
    flex: 1 !important;
    text-align: center !important;
    padding: 10px !important;
    position: relative !important;
    color: #888 !important;
  }

  .step.completed,
  .step.active {
    color: #333 !important;
  }

  .step::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 10px !important;
    height: 10px !important;
    background-color: #ccc !important;
    border-radius: 50% !important;
    margin-top: -5px !important;
  }

  .step.completed::before,
  .step.active::before {
    background-color: #007bff !important;
  }
}
/* estilos para el checkout movil*/
/* Mobile Responsive Styles for Checkout Page */
@media screen and (max-width: 768px) {
  .checkout-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 10px !important;
  }

  .checkout-left-column {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .contact-information {
    width: 100% !important;
    margin-bottom: 20px !important;
  }

  .contact-form {
    width: 100% !important;
  }

  .field-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
  }

  .field-col {
    width: 100% !important;
    margin-bottom: 10px !important;
  }

  .field-col label {
    margin-bottom: 5px !important;
    font-size: 0.9em !important;
    display: block !important;
  }

  .field-col input,
  .field-col select {
    width: 100% !important;
    padding: 10px !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
    box-sizing: border-box !important;
  }

  .create-account {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 15px !important;
  }

  .create-account input[type="checkbox"] {
    width: auto !important;
    margin-right: 10px !important;
  }

  .create-account-fields {
    margin-top: 15px !important;
  }

  .payment-methods-section {
    width: 100% !important;
    margin-top: 20px !important;
  }

  .back-to-search {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 15px !important;
    padding: 12px !important;
  }

  .progress-bar-container {
    margin-bottom: 20px !important;
    overflow-x: auto !important;
  }

  .progress-steps {
    display: flex !important;
    justify-content: space-between !important;
    min-width: 400px !important;
  }

  .step {
    flex: 1 !important;
    text-align: center !important;
    padding: 10px !important;
    position: relative !important;
    color: #888 !important;
  }

  .step.completed,
  .step.active {
    color: #333 !important;
  }

  .step::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 10px !important;
    height: 10px !important;
    background-color: #ccc !important;
    border-radius: 50% !important;
    margin-top: -5px !important;
  }

  .step.completed::before,
  .step.active::before {
    background-color: #007bff !important;
  }

  /* Specific mobile improvements for WooCommerce elements */
  .woocommerce-checkout #payment {
    padding: 10px !important;
  }

  .woocommerce-checkout #payment .payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .woocommerce-checkout #payment .payment_methods li {
    margin-bottom: 10px !important;
    padding: 10px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 5px !important;
  }

  .woocommerce-checkout #payment .payment_methods label {
    display: block !important;
    margin-bottom: 10px !important;
  }
}
