/* 0.8.33 — Price integrity and YITH booking presentation. */

/* Only the two direct metadata pills receive a frame. WooCommerce nests spans
   inside the price; those inner spans must remain inline and unframed. */
.cg974-account-page .cg974-latest-order__meta > span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  white-space: nowrap;
}

.cg974-account-page .cg974-latest-order__meta .woocommerce-Price-amount,
.cg974-account-page .cg974-latest-order__meta .woocommerce-Price-currencySymbol,
.cg974-account-page .cg974-latest-order__meta bdi {
  display: inline !important;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit;
  font: inherit;
  white-space: nowrap;
}

/* YITH list: use the same calm card language as WooCommerce orders. */
.cg974-account-page.cg974-account-bookings .woocommerce-MyAccount-content > table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--cg974-account-line) !important;
  border-radius: 20px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 14px 40px rgba(10, 75, 120, .06);
}

.cg974-account-page.cg974-account-bookings .woocommerce-MyAccount-content > table th {
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid var(--cg974-account-line);
  background: #f4f9fc;
  color: var(--cg974-account-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cg974-account-page.cg974-account-bookings .woocommerce-MyAccount-content > table td {
  padding: 17px 15px;
  border: 0;
  border-bottom: 1px solid #e7f0f5;
  color: var(--cg974-account-ink);
  vertical-align: middle;
}

.cg974-account-page.cg974-account-bookings .woocommerce-MyAccount-content > table tbody tr:last-child td {
  border-bottom: 0;
}

.cg974-account-page.cg974-account-bookings td.booking-id a {
  color: var(--cg974-account-deep);
  font-weight: 800;
  text-decoration: none;
}

.cg974-account-page td.booking-status.is-cg974-payment-state {
  text-align: center;
}

.cg974-account-page .cg974-booking-payment-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--cg974-account-pale);
  color: var(--cg974-account-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
}

.cg974-account-page mark.booking-status.is-cg974-payment-state {
  padding: 0;
  background: transparent;
}

/* Booking detail: preserve every native row, simply give it a readable shell. */
.cg974-account-page.cg974-account-booking-detail .woocommerce-MyAccount-content > p:first-child {
  margin: 0 0 18px;
  padding: 17px 18px;
  border: 1px solid var(--cg974-account-line);
  border-left: 4px solid var(--cg974-account-blue);
  border-radius: 0 17px 17px 0;
  background: #fff;
  color: var(--cg974-account-muted);
}

.cg974-account-page.cg974-account-booking-detail .woocommerce-MyAccount-content > h2 {
  margin-bottom: 16px;
}

.cg974-account-page.cg974-account-booking-detail .woocommerce-MyAccount-content > table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--cg974-account-line) !important;
  border-radius: 20px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 14px 40px rgba(10, 75, 120, .06);
}

.cg974-account-page.cg974-account-booking-detail .woocommerce-MyAccount-content > table th,
.cg974-account-page.cg974-account-booking-detail .woocommerce-MyAccount-content > table td {
  padding: 14px 17px;
  border: 0;
  border-bottom: 1px solid #e7f0f5;
  text-align: left;
}

.cg974-account-page.cg974-account-booking-detail .woocommerce-MyAccount-content > table th {
  width: 34%;
  color: var(--cg974-account-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cg974-account-page.cg974-account-booking-detail .woocommerce-MyAccount-content > table tr:last-child th,
.cg974-account-page.cg974-account-booking-detail .woocommerce-MyAccount-content > table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 680px) {
  .cg974-account-page.cg974-account-bookings .woocommerce-MyAccount-content > table,
  .cg974-account-page.cg974-account-bookings .woocommerce-MyAccount-content > table tbody,
  .cg974-account-page.cg974-account-bookings .woocommerce-MyAccount-content > table tr,
  .cg974-account-page.cg974-account-bookings .woocommerce-MyAccount-content > table td {
    display: block;
    width: 100%;
  }

  .cg974-account-page.cg974-account-bookings .woocommerce-MyAccount-content > table thead {
    display: none;
  }

  .cg974-account-page.cg974-account-bookings .woocommerce-MyAccount-content > table {
    overflow: visible;
    border: 0 !important;
    background: transparent;
    box-shadow: none;
  }

  .cg974-account-page.cg974-account-bookings .woocommerce-MyAccount-content > table tr {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--cg974-account-line);
    border-radius: 18px;
    background: #fff;
  }

  .cg974-account-page.cg974-account-bookings .woocommerce-MyAccount-content > table td {
    display: grid;
    padding: 12px 14px;
    border-bottom: 1px solid #e7f0f5;
    grid-template-columns: minmax(88px, 31%) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    text-align: left !important;
  }

  .cg974-account-page.cg974-account-bookings .woocommerce-MyAccount-content > table td::before {
    color: var(--cg974-account-muted);
    content: attr(data-title);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .cg974-account-page.cg974-account-bookings .booking-actions .button {
    width: 100%;
  }

  .cg974-account-page.cg974-account-booking-detail .woocommerce-MyAccount-content > table th {
    width: 42%;
  }
}
