/**
 * Trip Checkout Styles
 * Mobile-first responsive design for checkout page.
 */

/* ===================================
   Container & Layout
   =================================== */

.trip-checkout-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1170px;
  margin: 0 auto;
  padding: 3rem 10px;
}

@media (min-width: 1024px) {
  .trip-checkout-container {
    flex-direction: row-reverse;
    gap: 3rem;
  }
}

/* ===================================
   Sidebar - Trip Summary
   =================================== */

.trip-checkout-sidebar {
  flex: 0 0 100%;
}

@media (min-width: 1024px) {
  .trip-checkout-sidebar {
    flex: 0 0 350px;
    position: sticky;
    top: -15rem;
    align-self: flex-start;
  }
}

.trip-summary {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.trip-summary-image {
  max-height: 150px;
  overflow: hidden;
}

.trip-summary-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.trip-summary-content {
  padding: 1.5rem;
}

.trip-summary-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.trip-summary-excerpt {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

.trip-summary-price,
.trip-summary-capacity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid #e5e7eb;
}

.trip-summary-price-label,
.trip-summary-capacity-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.trip-summary-price-amount {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--trip-primary-color, #f2bc02);
}

.trip-summary-capacity-value {
  font-weight: 600;
  color: #1f2937;
}

/* ===================================
   Number of Persons Card (Sidebar)
   =================================== */

.trip-checkout-persons-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.trip-checkout-persons-card h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #1f2937;
}

.trip-checkout-persons-card .checkout-form-field {
  margin-bottom: 0;
}

.trip-checkout-persons-card .checkout-form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1f2937;
  font-size: 0.875rem;
}

.trip-checkout-persons-card input[type="number"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.trip-checkout-persons-card input[type="number"]:focus {
  outline: none;
  border-color: var(--trip-primary-color, #f2bc02);
  box-shadow: 0 0 0 3px rgba(242, 188, 2, 0.1);
}

.trip-checkout-persons-card .field-description {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.trip-checkout-persons-card .required {
  color: #dc2626;
}

/* ===================================
   Coupon Input Section
   =================================== */
.coupon-input-wrapper {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.coupon-input-wrapper label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1f2937;
  font-size: 0.875rem;
}

.coupon-input-group {
  display: flex;
  gap: 0.5rem;
}

.coupon-input-group input[type="text"] {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  text-transform: uppercase;
  transition: border-color 0.2s;
}

.coupon-input-group input[type="text"]:focus {
  outline: none;
  border-color: var(--trip-primary-color, #f2bc02);
  box-shadow: 0 0 0 3px rgba(242, 188, 2, 0.1);
}

.coupon-input-group input[type="text"]:disabled {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.apply-coupon-btn {
  padding: 0.75rem 1.25rem;
  background: var(--trip-primary-color, #f2bc02);
  color: #1f2937;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.apply-coupon-btn:hover:not(:disabled) {
  background: #d9a602;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.apply-coupon-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.apply-coupon-btn.remove {
  background: #ef4444;
  color: #ffffff;
}

.apply-coupon-btn.remove:hover:not(:disabled) {
  background: #dc2626;
}

.coupon-message {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}

.coupon-message.success {
  display: block;
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.coupon-message.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ===================================
   Price Breakdown
   =================================== */

.trip-checkout-price-breakdown {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
}

.trip-checkout-price-breakdown h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #1f2937;
}

.price-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.price-breakdown-row + .price-breakdown-row {
  border-top: 1px solid #e5e7eb;
}

.price-breakdown-label {
  color: #6b7280;
}

.price-breakdown-value {
  font-weight: 500;
  color: #1f2937;
}

.price-breakdown-total {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 2px solid #e5e7eb !important;
  font-size: 1rem;
  font-weight: 600;
}

.price-breakdown-discount {
  display: none;
}

.price-breakdown-discount .price-breakdown-value {
  color: #059669;
  font-weight: 600;
}

.price-breakdown-discount .coupon-code-badge {
  display: none;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  background: #d1fae5;
  color: #065f46;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.price-breakdown-total .price-breakdown-value {
  color: var(--trip-primary-color, #f2bc02);
  font-size: 1.125rem;
}

.price-breakdown-deposit {
  color: #059669;
}

.price-breakdown-deposit .price-breakdown-value {
  color: #059669;
}

/* ===================================
   Form Container
   =================================== */

.trip-checkout-form-container {
  flex: 1;
  min-width: 0;
}

.trip-checkout-form-container h2 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  color: #1f2937;
}

/* ===================================
   Messages
   =================================== */

.checkout-messages {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.checkout-message-error {
  background: #fee;
  border: 1px solid #fcc;
  color: #c00;
}

.checkout-message-success {
  background: #efe;
  border: 1px solid #cfc;
  color: #060;
}

.checkout-messages p {
  margin: 0;
}

/* ===================================
   Form Sections
   =================================== */

.checkout-form-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkout-form-section h3 {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  color: #1f2937;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

/* ===================================
   Form Fields
   =================================== */

.checkout-form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .checkout-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.checkout-form-field {
  margin-bottom: 1.25rem;
}

.checkout-form-field:last-child {
  margin-bottom: 0;
}

.checkout-form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1f2937;
  font-size: 0.875rem;
}

.checkout-form-field input[type="text"],
.checkout-form-field input[type="email"],
.checkout-form-field input[type="tel"],
.checkout-form-field input[type="number"],
.checkout-form-field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.checkout-form-field input:focus,
.checkout-form-field textarea:focus {
  outline: none;
  border-color: var(--trip-primary-color, #f2bc02);
  box-shadow: 0 0 0 3px rgba(242, 188, 2, 0.1);
}

.checkout-form-field input.error,
.checkout-form-field textarea.error {
  border-color: #dc2626;
}

.checkout-form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.field-description {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.required {
  color: #dc2626;
}

/* ===================================
   Payment Type Cards
   =================================== */

.checkout-payment-types {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .checkout-payment-types {
    grid-template-columns: 1fr 1fr;
  }
}

.checkout-payment-type-option {
  cursor: pointer;
  display: block;
}

.checkout-payment-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-type-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.checkout-payment-type-option:hover .payment-type-card {
  border-color: var(--trip-primary-color, #f2bc02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.checkout-payment-type-option input:checked + .payment-type-card {
  border-color: var(--trip-primary-color, #f2bc02);
  background: rgba(242, 188, 2, 0.05);
  box-shadow: 0 2px 12px rgba(242, 188, 2, 0.2);
}

.payment-type-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 1rem;
}

.payment-type-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--trip-primary-color, #f2bc02);
}

.payment-type-note {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ===================================
   Payment Method Cards
   =================================== */

.checkout-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkout-payment-method-option {
  cursor: pointer;
  display: block;
}

.checkout-payment-method-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.checkout-payment-method-option:hover .payment-method-card {
  border-color: var(--trip-primary-color, #f2bc02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.checkout-payment-method-option input:checked + .payment-method-card {
  border-color: var(--trip-primary-color, #f2bc02);
  background: rgba(242, 188, 2, 0.05);
}

.payment-method-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.payment-method-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-method-icon svg {
  width: 100%;
  height: 100%;
}

/* Payment icon specific colors */
.payment-icon-bank {
  color: #4b5563;
}

.payment-icon-stripe {
  color: #635bff;
}

.payment-icon-paypal {
  /* PayPal uses fill colors in SVG, not currentColor */
}

.payment-icon-book_now_pay_later {
  color: #059669;
}

.payment-method-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.9375rem;
  flex: 1;
}

.payment-method-description {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-left: calc(32px + 0.75rem);
}

/* ===================================
   Terms & Actions
   =================================== */

.checkout-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.6;
}

.checkout-terms-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.checkout-terms-label > #terms {
  margin-right: 0.5rem;
  position: relative;
  top: 1px;
}

.checkout-terms-label a {
  color: var(--trip-primary-color, #f2bc02);
  text-decoration: underline;
}

.checkout-form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .checkout-form-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.trip-checkout-submit {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.trip-checkout-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.trip-checkout-back-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  text-align: center;
}

.trip-checkout-back-link:hover {
  color: var(--trip-primary-color, #f2bc02);
}

/* ===================================
   Error State
   =================================== */

.trip-checkout-error {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.trip-checkout-error p {
  margin: 0 0 1.5rem;
  color: #6b7280;
  font-size: 1rem;
}

/* ===================================
   Payment Selection Page
   =================================== */

.trip-payment-selection {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.trip-payment-header {
  text-align: center;
  margin-bottom: 2rem;
}

.trip-payment-header h1 {
  font-size: 2rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.trip-payment-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin: 0;
}

/* Payment Summary */
.trip-payment-summary {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.trip-payment-summary h2 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1f2937;
}

.trip-payment-summary-grid {
  display: grid;
  gap: 0.75rem;
}

.trip-payment-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.trip-payment-summary-item:last-child {
  border-bottom: none;
}

.trip-payment-summary-label {
  font-weight: 600;
  color: #6b7280;
}

.trip-payment-summary-value {
  color: #1f2937;
}

.trip-payment-amount-highlight {
  background: #fef3c7;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 0.5rem;
}

.trip-payment-amount-highlight .trip-payment-summary-label,
.trip-payment-amount-highlight .trip-payment-summary-value {
  font-size: 1.125rem;
}

/* Payment Methods Grid */
.trip-payment-methods {
  margin-bottom: 2rem;
}

.trip-payment-methods h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
  text-align: center;
}

.trip-payment-methods-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .trip-payment-methods-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trip-payment-method-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.trip-payment-method-card:hover {
  border-color: var(--trip-primary-color, #f2bc02);
  box-shadow: 0 4px 12px rgba(242, 188, 2, 0.2);
  transform: translateY(-2px);
}

.trip-payment-method-icon {
  margin: 0 auto 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.trip-payment-method-card h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: #1f2937;
}

.trip-payment-method-card p {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.trip-payment-method-button {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--trip-primary-color, #f2bc02);
  color: #1f2937;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trip-payment-method-button:hover {
  background: #d9a502;
  transform: scale(1.02);
}

.trip-payment-method-button:disabled,
.trip-payment-method-button.trip-payment-loading {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Bank Transfer Details */
.trip-bank-details {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.trip-bank-details h2 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1f2937;
}

.trip-bank-details-intro {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.trip-bank-details-instructions {
  background: #fff;
  padding: 1rem;
  border-left: 4px solid var(--trip-primary-color, #f2bc02);
  margin-bottom: 1.5rem;
}

.trip-bank-details-grid {
  display: grid;
  gap: 1rem;
}

.trip-bank-detail-item {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trip-bank-detail-label {
  font-weight: 600;
  color: #6b7280;
  flex-shrink: 0;
  margin-right: 1rem;
}

.trip-bank-detail-value {
  color: #1f2937;
  font-family: "Courier New", monospace;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trip-bank-detail-copyable {
  cursor: pointer;
}

.trip-copy-button {
  padding: 0.25rem 0.75rem;
  background: #e5e7eb;
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.trip-copy-button:hover {
  background: #d1d5db;
}

.trip-bank-detail-highlight {
  background: #fef3c7;
  border-left: 4px solid var(--trip-primary-color, #f2bc02);
}

.trip-bank-details-note {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1.5rem;
}

.trip-bank-details-note p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Payment Messages */
.trip-payment-messages {
  margin-top: 2rem;
}

.trip-payment-message {
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.trip-payment-success {
  background: #d1fae5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.trip-payment-success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.trip-payment-success h2 {
  margin: 0 0 1rem 0;
  color: #065f46;
  font-size: 1.75rem;
}

.trip-payment-success-message {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #047857;
}

.trip-payment-details {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.trip-payment-details h3 {
  margin: 0 0 1.25rem 0;
  color: #065f46;
  font-size: 1.25rem;
  text-align: center;
  border-bottom: 2px solid #10b981;
  padding-bottom: 0.75rem;
}

.trip-payment-details-grid {
  display: grid;
  gap: 1rem;
}

.trip-payment-detail-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
}

.trip-payment-detail-item:last-child {
  border-bottom: none;
}

.trip-payment-detail-label {
  font-weight: 600;
  color: #374151;
}

.trip-payment-detail-value {
  color: #1f2937;
}

.trip-payment-detail-value code {
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875rem;
  color: #1f2937;
}

.trip-payment-detail-highlight {
  background: #f0fdf4;
  border-radius: 6px;
  padding: 1rem !important;
  border-bottom: none !important;
}

.trip-payment-detail-highlight .trip-payment-detail-label,
.trip-payment-detail-highlight .trip-payment-detail-value {
  color: #065f46;
  font-size: 1.125rem;
}

.trip-payment-success-actions {
  margin-top: 2rem;
}

.trip-payment-error {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.trip-payment-message p {
  margin: 0;
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .trip-payment-header h1 {
    font-size: 1.5rem;
  }

  .trip-payment-subtitle {
    font-size: 1rem;
  }

  .trip-payment-summary,
  .trip-bank-details,
  .trip-payment-success {
    padding: 1rem;
  }

  .trip-payment-method-card {
    padding: 1rem;
  }

  .trip-bank-detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .trip-bank-detail-value {
    width: 100%;
    word-break: break-all;
  }

  .trip-payment-details {
    padding: 1rem;
  }

  .trip-payment-success h2 {
    font-size: 1.5rem;
  }

  .trip-payment-success-message {
    font-size: 1rem;
  }

  .trip-payment-detail-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .trip-payment-detail-label {
    font-size: 0.875rem;
  }

  .trip-payment-detail-value {
    font-size: 0.875rem;
  }

  .trip-payment-detail-value code {
    word-break: break-all;
    font-size: 0.75rem;
  }

  .trip-payment-detail-highlight .trip-payment-detail-label,
  .trip-payment-detail-highlight .trip-payment-detail-value {
    font-size: 1rem;
  }
}

/* ===================================
   Trip Packages — Checkout
   =================================== */

/* Included packages list */
.trip-included-packages .trip-checkout-packages-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trip-checkout-package-item {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--trip-border-color, #e5e7eb);
}

.trip-checkout-package-item:last-child {
  border-bottom: none;
}

.trip-checkout-package-check {
  color: #10b981;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 1.2rem;
}

.trip-checkout-package-name {
  font-weight: 600;
  color: #111827;
  flex: 1;
}

.trip-checkout-package-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.trip-checkout-package-badge--included {
  background: #d1fae5;
  color: #065f46;
}

.trip-checkout-package-desc {
  width: 100%;
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
  padding-left: 1.8rem;
}

/* Add-on packages */
.trip-addon-packages .description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.trip-addon-packages-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trip-addon-package-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--trip-border-color, #e5e7eb);
  border-radius: 0.5rem;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  background: #fff;
}

.trip-addon-package-row:hover:not(.trip-addon-package-row--disabled),
.trip-addon-package-row--checked:not(.trip-addon-package-row--disabled),
.trip-addon-package-row:has(input:checked):not(
    .trip-addon-package-row--disabled
  ) {
  border-color: var(--trip-primary-color, #f2bc02);
  background: #fffdf0;
}

.trip-addon-package-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--trip-primary-color, #f2bc02);
  cursor: pointer;
}

.trip-addon-package-row--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f9fafb;
}

.trip-addon-package-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trip-addon-package-name {
  font-weight: 600;
  color: #111827;
  font-size: 0.9rem;
}

.trip-addon-package-desc {
  font-size: 0.8rem;
  color: #6b7280;
}

.trip-addon-package-sold-out {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ef4444;
}

.trip-addon-package-price {
  font-weight: 700;
  color: #111827;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-left: auto;
}

/* Add-ons section total row */
.trip-addon-section-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  background: #f9fafb;
  border-top: 1px solid var(--trip-border-color, #e5e7eb);
  border-radius: 0 0 0.5rem 0.5rem;
}

.trip-addon-section-total-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.trip-addon-section-total-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

/* Right-side wrapper: price | qty input — single row */
.trip-addon-package-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
  flex-shrink: 0;
}

.trip-addon-package-right .trip-addon-package-price {
  margin-left: 0;
}

/* Quantity input wrapper */
.trip-addon-qty-wrapper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.trip-addon-qty-btn {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--trip-border-color, #e5e7eb);
  border-radius: 0.3rem;
  background: #f9fafb;
  color: #374151;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  padding: 0;
}

.trip-addon-qty-btn:hover {
  background: var(--trip-primary-color, #f2bc02);
  border-color: var(--trip-primary-color, #f2bc02);
  color: #111827;
}

.trip-addon-qty-input {
  width: 3rem;
  padding: 0.25rem 0.25rem;
  border: 1px solid var(--trip-border-color, #e5e7eb);
  border-radius: 0.375rem;
  font-size: 0.85rem;
  text-align: center;
  color: #111827;
  background: #fff;
  appearance: textfield;
  -moz-appearance: textfield;
}

.trip-addon-qty-input::-webkit-inner-spin-button,
.trip-addon-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.trip-addon-qty-input:focus {
  outline: 2px solid var(--trip-primary-color, #f2bc02);
  outline-offset: 1px;
  border-color: transparent;
}

@media (max-width: 768px) {
  .trip-addon-qty-btn {
    display: none;
  }
}

/* ===================================
   Page Loading Overlay
   =================================== */

.trip-checkout-page-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.trip-checkout-page-overlay__spinner {
  width: 52px;
  height: 52px;
  border: 5px solid #e5e7eb;
  border-top-color: var(--trip-primary-color, #f2bc02);
  border-radius: 50%;
  animation: trip-checkout-overlay-spin 0.75s linear infinite;
}

.trip-checkout-page-overlay__text {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.01em;
}

@keyframes trip-checkout-overlay-spin {
  to {
    transform: rotate(360deg);
  }
}
