/* Relay Radio Store — Build 0038 / WooCommerce Order Tracking.
 * Styles the shortcode's real form and results; doesn't replace Woo templates,
 * form field names, nonce, verification, order updates or email matching.
 */

body.relay-store-theme.relay-order-tracking #main {
  padding-top: clamp(24px, 3.5vw, 44px);
  padding-bottom: clamp(52px, 6vw, 86px);
}
body.relay-store-theme.relay-order-tracking .main-content,
body.relay-store-theme.relay-order-tracking .main-content .woocommerce {
  min-width: 0;
}

/* The order lookup form becomes one coherent Relay-style panel. */
body.relay-store-theme.relay-order-tracking form.track_order {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: 18px;
  row-gap: 17px;
  width: 100%;
  max-width: 970px;
  margin: 0 auto 20px !important;
  padding: clamp(18px, 3vw, 28px) !important;
  color: #d4e5f4;
  background: linear-gradient(155deg, rgba(18,33,54,.98), rgba(9,19,34,.98));
  border: 1px solid rgba(55,139,185,.37);
  border-radius: 19px;
  box-shadow: 0 18px 44px rgba(0,0,0,.23);
}

/* Shared intro works both inside the form and above a successful lookup. */
body.relay-store-theme.relay-order-tracking .relay-tracking-intro {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 970px;
  margin: 0 auto 22px;
  padding: clamp(20px, 3vw, 28px);
  overflow: hidden;
  background: radial-gradient(ellipse at 0% 10%, rgba(8,182,229,.15), transparent 65%),
              linear-gradient(120deg, #11293f, #111729 72%);
  border: 1px solid rgba(53,149,188,.39);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(0,0,0,.17);
}
body.relay-store-theme.relay-order-tracking .relay-tracking-intro::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #11c7f0, #6c65ed 58%, #f69a36);
}
body.relay-store-theme.relay-order-tracking form.track_order .relay-tracking-intro {
  grid-column: 1 / -1;
  max-width: none;
  margin: calc(-1 * clamp(18px, 3vw, 28px)) calc(-1 * clamp(18px, 3vw, 28px)) 6px;
  width: calc(100% + 2 * clamp(18px, 3vw, 28px));
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 18px 18px 0 0;
  box-shadow: none;
}
body.relay-store-theme.relay-order-tracking .relay-tracking-intro__copy {
  min-width: 0;
}
body.relay-store-theme.relay-order-tracking .relay-tracking-intro__kicker {
  display: block;
  margin-bottom: 8px;
  font-size: .71rem;
  line-height: 1.4;
  color: #77dffd;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 850;
}
body.relay-store-theme.relay-order-tracking .relay-tracking-intro h1 {
  margin: 0 0 7px;
  color: #f6fbff;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -.03em;
  font-weight: 850;
}
body.relay-store-theme.relay-order-tracking .relay-tracking-intro p {
  margin: 0;
  color: #afc5da;
  font-size: .93rem;
  line-height: 1.6;
}
body.relay-store-theme.relay-order-tracking .relay-tracking-intro__help {
  flex: 0 0 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  max-width: 100%;
  padding: 9px 13px;
  color: #dcf2fd;
  border: 1px solid rgba(55,149,190,.40);
  background: rgba(5,18,34,.7);
  border-radius: 10px;
  font-size: .79rem;
  font-weight: 750;
  text-decoration: none;
  text-align: center;
}
body.relay-store-theme.relay-order-tracking .relay-tracking-intro__help:hover,
body.relay-store-theme.relay-order-tracking .relay-tracking-intro__help:focus-visible {
  color: #fff;
  border-color: #4ccde9;
  background: rgba(10,76,108,.36);
}

/* Keep WooCommerce's real instructions and form fields; change presentation. */
body.relay-store-theme.relay-order-tracking form.track_order > p:not(.form-row) {
  grid-column: 1 / -1;
  max-width: 720px;
  margin: 0 0 3px !important;
  color: #bacde0 !important;
  font-size: .91rem;
  line-height: 1.75;
}
body.relay-store-theme.relay-order-tracking form.track_order > p.form-row {
  float: none !important;
  clear: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}
body.relay-store-theme.relay-order-tracking form.track_order > p.form-row-first,
body.relay-store-theme.relay-order-tracking form.track_order > p.form-row-last {
  grid-column: auto;
}
body.relay-store-theme.relay-order-tracking form.track_order > div.clear {
  display: none;
}
body.relay-store-theme.relay-order-tracking form.track_order > p.form-row:has(button[type="submit"]) {
  grid-column: 1 / -1;
  padding-top: 5px !important;
}
body.relay-store-theme.relay-order-tracking form.track_order label {
  display: block;
  margin-bottom: 9px;
  color: #f1f8ff !important;
  font-size: .80rem;
  font-weight: 800;
  letter-spacing: .015em;
}
body.relay-store-theme.relay-order-tracking form.track_order :is(
  #orderid, #order_email, input.input-text, input[type="text"], input[type="email"]
) {
  display: block;
  width: 100% !important;
  min-width: 0;
  min-height: 49px;
  height: auto;
  padding: 12px 14px;
  color: #f3faff !important;
  -webkit-text-fill-color: #f3faff;
  background: #081728 !important;
  border: 1px solid rgba(53,116,158,.55) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  outline: none;
  font-size: .92rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
body.relay-store-theme.relay-order-tracking form.track_order input::placeholder {
  color: #829bb1 !important;
  -webkit-text-fill-color: #829bb1;
  opacity: 1;
}
body.relay-store-theme.relay-order-tracking form.track_order input:focus-visible {
  border-color: #27c5f0 !important;
  box-shadow: 0 0 0 3px rgba(33,188,233,.15) !important;
}
body.relay-store-theme.relay-order-tracking form.track_order button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 165px;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 11px !important;
  color: #fff !important;
  background: linear-gradient(110deg, #167db4, #5268df 62%, #8551dd) !important;
  box-shadow: 0 9px 21px rgba(36,74,166,.22);
  font-size: .93rem;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: none;
  transition: transform .18s ease, filter .18s ease;
}
body.relay-store-theme.relay-order-tracking form.track_order button[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.11);
}
body.relay-store-theme.relay-order-tracking form.track_order button[type="submit"]:focus-visible {
  outline: 3px solid #8bdef3;
  outline-offset: 3px;
}

/* Invalid order/email feedback emitted by WooCommerce, never swallowed. */
body.relay-store-theme.relay-order-tracking .woocommerce-notices-wrapper,
body.relay-store-theme.relay-order-tracking .woocommerce > :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) {
  max-width: 970px;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.relay-store-theme.relay-order-tracking :is(.woocommerce-error,.woocommerce-info,.woocommerce-message) {
  padding: 16px 19px 16px 22px !important;
  margin-bottom: 18px !important;
  color: #eef8ff !important;
  background: #132338 !important;
  border: 1px solid rgba(68,156,200,.38) !important;
  border-left: 4px solid #2dc3ef !important;
  border-radius: 12px !important;
  line-height: 1.6;
}
body.relay-store-theme.relay-order-tracking .woocommerce-error {
  border-color: rgba(246,121,133,.35) !important;
  border-left-color: #fb7185 !important;
  background: rgba(77,28,44,.33) !important;
  color: #ffe6e9 !important;
}

/* Real order status + update list after a successful tracking lookup. */
body.relay-store-theme.relay-order-tracking .order-info {
  max-width: 970px;
  margin: 0 auto 22px !important;
  padding: 20px 24px;
  color: #d2e5f4 !important;
  background: linear-gradient(135deg, #142a3f, #0c192a);
  border: 1px solid rgba(51,142,180,.45);
  border-left: 4px solid #2bc4e5;
  border-radius: 14px;
  font-size: 1rem;
  line-height: 1.8;
}
body.relay-store-theme.relay-order-tracking .order-info mark {
  display: inline;
  padding: 2px 5px;
  color: #f7fbff !important;
  background: rgba(54,113,167,.28) !important;
  border: 1px solid rgba(57,146,190,.15);
  border-radius: 5px;
  overflow-wrap: anywhere;
}
body.relay-store-theme.relay-order-tracking .order-info mark.order-status {
  color: #a7e9ff !important;
}
body.relay-store-theme.relay-order-tracking .woocommerce > h2,
body.relay-store-theme.relay-order-tracking .woocommerce-order-details__title,
body.relay-store-theme.relay-order-tracking .woocommerce-column__title {
  max-width: 970px;
  margin: 22px auto 13px !important;
  color: #fff !important;
  font-size: 1.25rem;
  font-weight: 850;
}
body.relay-store-theme.relay-order-tracking ol.commentlist.notes {
  max-width: 970px;
  margin: 0 auto 22px !important;
  padding: 10px 18px 10px 30px;
  border: 1px solid rgba(53,127,167,.3);
  border-radius: 15px;
  background: #0e1d30;
}
body.relay-store-theme.relay-order-tracking ol.commentlist.notes > li {
  margin: 0 !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid rgba(63,127,173,.24);
  color: #d2e3f3;
}
body.relay-store-theme.relay-order-tracking ol.commentlist.notes > li:last-child {
  border-bottom: none;
}
body.relay-store-theme.relay-order-tracking ol.commentlist.notes .meta {
  color: #80dffa;
  font-weight: 750;
}
body.relay-store-theme.relay-order-tracking .woocommerce-order-details,
body.relay-store-theme.relay-order-tracking .woocommerce-customer-details {
  max-width: 970px;
  margin: 18px auto 22px !important;
  padding: clamp(17px, 2.5vw, 24px);
  border: 1px solid rgba(64,137,183,.34);
  border-radius: 16px;
  background: linear-gradient(155deg,#112139,#0d1729);
  color: #dce9f6;
}
body.relay-store-theme.relay-order-tracking .woocommerce-order-details table,
body.relay-store-theme.relay-order-tracking .woocommerce-order-details table :is(thead,tbody,tfoot,tr,th,td) {
  color: #e4eef8 !important;
  background: transparent !important;
  border-color: rgba(80,139,179,.22) !important;
}
body.relay-store-theme.relay-order-tracking .woocommerce-order-details table {
  width: 100%;
  border-collapse: collapse;
}
body.relay-store-theme.relay-order-tracking .woocommerce-order-details table :is(th,td) {
  padding: 12px;
  overflow-wrap: anywhere;
}
body.relay-store-theme.relay-order-tracking .woocommerce-order-details table a,
body.relay-store-theme.relay-order-tracking .woocommerce-customer-details a {
  color: #8fdaff !important;
}
body.relay-store-theme.relay-order-tracking .woocommerce-customer-details address {
  color: #d6e5f4 !important;
  background: #0b1729 !important;
  border: 1px solid rgba(65,138,176,.24);
  border-radius: 12px;
  padding: 16px !important;
  line-height: 1.7;
}
@media (max-width: 767px) {
  body.relay-store-theme.relay-order-tracking form.track_order {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }
  body.relay-store-theme.relay-order-tracking form.track_order > p:not(.form-row),
  body.relay-store-theme.relay-order-tracking form.track_order > p.form-row,
  body.relay-store-theme.relay-order-tracking form.track_order .relay-tracking-intro {
    grid-column: 1 / -1;
  }
  body.relay-store-theme.relay-order-tracking .relay-tracking-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  body.relay-store-theme.relay-order-tracking form.track_order button[type="submit"] {
    width: 100%;
  }
  body.relay-store-theme.relay-order-tracking .order-info {
    padding: 16px;
  }
  body.relay-store-theme.relay-order-tracking .woocommerce-order-details,
  body.relay-store-theme.relay-order-tracking .woocommerce-customer-details {
    padding: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.relay-store-theme.relay-order-tracking form.track_order button[type="submit"] {
    transition: none;
  }
  body.relay-store-theme.relay-order-tracking form.track_order button[type="submit"]:hover {
    transform: none;
  }
}
