/* Product-experience layer: practical shortcuts, progress, and restrained motion. */
:root {
  --tust-ink: #0b2c58;
  --tust-blue: #1267d6;
  --tust-blue-2: #38a2f2;
  --tust-sky: #eaf5ff;
  --tust-mint: #24b784;
  --tust-line: rgba(69, 122, 176, 0.2);
  --tust-shadow: 0 18px 50px rgba(22, 75, 128, 0.14);
}

/* Public multi-product query, timeline, and change request flow. */
.query-view-active main {
  min-height: calc(100vh - 150px);
  background:
    radial-gradient(circle at 12% 4%, rgba(75, 159, 238, 0.14), transparent 28%),
    linear-gradient(180deg, #f6faff 0%, #eef6fd 100%);
}

.public-query-page {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 62px;
}

.public-query-hero {
  padding: 0 4px 22px;
  text-align: center;
}

.public-query-hero .eyebrow {
  color: #2a73dd;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.public-query-hero h1 {
  margin: 10px 0 8px;
  color: #102f5f;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.public-query-hero p {
  margin: 0;
  color: #6b8199;
  font-size: 14px;
}

.query-panel {
  display: grid;
  gap: 18px;
}

.query-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.query-lookup-form {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(62, 124, 190, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 55px rgba(31, 78, 124, 0.1);
}

.query-lookup-label {
  color: #173c70;
  font-size: 17px;
  font-weight: 850;
}

.query-lookup-form > p {
  min-height: 22px;
  margin: 0;
  color: #7a8da2;
  font-size: 12px;
  line-height: 1.7;
}

.query-lookup-row {
  display: flex;
  gap: 10px;
}

.query-lookup-row input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 15px;
  border: 1px solid #cbdced;
  border-radius: 13px;
  color: #17365f;
  background: #fbfdff;
  font: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.query-lookup-row input:focus,
.query-change-form input:focus,
.query-change-form select:focus,
.query-change-form textarea:focus,
.query-cancel-form input:focus {
  border-color: #2b7de5;
  box-shadow: 0 0 0 4px rgba(43, 125, 229, 0.14);
}

.query-lookup-row .primary-button {
  width: auto;
  min-width: 128px;
  height: 44px;
  padding: 0 18px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 13px;
  font-size: 13px;
}

.query-lookup-feedback {
  min-height: 20px !important;
  color: #c24646 !important;
  font-size: 12px !important;
}

.public-query-results:empty {
  display: none;
}

.query-order-list {
  gap: 10px;
}

.query-order-card {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(31, 75, 119, 0.1);
}

.query-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: flex-start;
}

.query-order-details {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e3edf7;
}

.query-order-details[hidden],
.query-cancel-form[hidden] {
  display: none !important;
}

.query-detail-grid {
  margin: 0;
}

.query-detail-section {
  padding: 14px;
  border: 1px solid #dfebf6;
  border-radius: 14px;
  background: #f9fcff;
}

.query-detail-section > h4 {
  margin: 0 0 10px;
  color: #163b6d;
  font-size: 14px;
}

.query-invoice-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.query-invoice-section > h4 {
  margin: 0;
}

.invoice-download-link,
.invoice-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(20, 105, 196, 0.22);
  border-radius: 10px;
  color: #fff;
  background: #176edc;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.invoice-download-link:hover,
.invoice-download-button:hover {
  border-color: #176edc;
  background: #0e5fc8;
}

.query-item-list {
  display: grid;
  gap: 10px;
}

.query-order-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(88, 140, 193, 0.12);
}

.query-order-item img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef6fd;
}

.query-order-item-copy,
.query-order-item-amount {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.query-order-item-copy strong {
  overflow-wrap: anywhere;
  color: #183a67;
  font-size: 13px;
}

.query-order-item-copy span,
.query-order-item-amount span {
  color: #8294a7;
  font-size: 11px;
}

.query-order-item-amount {
  text-align: right;
}

.query-order-item-amount strong {
  color: #176bd3;
  font-size: 14px;
}

.query-order-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.query-order-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  min-width: 0;
  padding: 0 0 12px;
}

.query-order-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 0;
  left: 13px;
  width: 2px;
  background: #d7e4f2;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #c9d9e8;
  border-radius: 50%;
  color: #8aa0b5;
  background: #fff;
  font-size: 11px;
}

.query-order-timeline .is-completed .timeline-marker {
  border-color: #58b98a;
  color: #fff;
  background: #58b98a;
}

.query-order-timeline .is-current .timeline-marker {
  border-color: #2478df;
  color: #2478df;
  box-shadow: 0 0 0 5px rgba(36, 120, 223, 0.12);
}

.query-order-timeline .is-future {
  color: #98a8b8;
}

.timeline-copy {
  min-width: 0;
  color: #8192a4;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.timeline-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: space-between;
  color: #264a72;
}

.timeline-heading time {
  color: #8899aa;
  font-size: 11px;
}

.timeline-copy p {
  margin: 4px 0 0;
  font-size: 12px;
}

.query-change-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.query-change-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.query-change-field > span,
.query-change-cart legend {
  color: #3c5875;
  font-size: 11px;
  font-weight: 750;
}

.query-change-field input,
.query-change-field select,
.query-change-field textarea,
.query-change-item input,
.query-cancel-form input {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #cadbea;
  border-radius: 11px;
  color: #213e60;
  background: #fff;
  font: inherit;
  font-size: 12px;
  outline: 0;
  box-sizing: border-box;
}

.query-change-field textarea {
  min-height: 74px;
  resize: vertical;
}

.query-change-field.is-wide,
.query-change-cart,
.query-change-submit {
  grid-column: 1 / -1;
}

.query-change-cart {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px dashed #c8dced;
  border-radius: 12px;
}

.query-change-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  align-items: center;
  color: #365473;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.query-action-feedback {
  min-height: 20px;
  margin: -4px 0 10px;
  color: #167c54;
  font-size: 12px;
  font-weight: 700;
}

.query-cancel-wrapper {
  display: grid;
  gap: 8px;
}

.query-cancel-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.query-cancel-form input {
  width: min(260px, 100%);
}

@media (max-width: 720px) {
  .public-query-page {
    width: min(100% - 20px, 620px);
    padding: 34px 0 100px;
  }

  .query-mode-grid {
    grid-template-columns: 1fr;
  }

  .query-lookup-form,
  .query-detail-section {
    padding: 16px;
    border-radius: 16px;
  }

  .query-lookup-row {
    flex-direction: column;
  }

  .query-lookup-row .primary-button {
    width: 100%;
  }

  .query-order-card {
    border-radius: 16px;
  }

  .query-order-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .query-order-item img {
    width: 48px;
    height: 48px;
  }

  .query-order-item-amount {
    grid-column: 2;
    text-align: left;
  }

  .query-change-form {
    grid-template-columns: 1fr;
  }

  .query-change-field.is-wide,
  .query-change-cart,
  .query-change-submit {
    grid-column: auto;
  }

  .query-change-item {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .timeline-heading {
    display: grid;
    justify-content: start;
  }
}

html {
  scroll-behavior: smooth;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 18%, rgba(78, 166, 255, 0.13), transparent 27rem),
    radial-gradient(circle at 93% 42%, rgba(68, 207, 197, 0.1), transparent 25rem);
  animation: tust-aurora-drift 14s ease-in-out infinite alternate;
}

.site-scroll-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--tust-blue), #4db9ff, #44d1b4);
  box-shadow: 0 1px 8px rgba(39, 140, 232, 0.4);
  transition: width 0.12s linear;
}

.hero-convenience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-convenience-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(42, 119, 201, 0.15);
  border-radius: 999px;
  color: #375d82;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 7px 22px rgba(28, 91, 151, 0.08);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  animation: tust-chip-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-convenience-list li:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-convenience-list li:nth-child(3) {
  animation-delay: 0.16s;
}

.hero-convenience-list i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c8df1, #45d2ba);
  box-shadow: 0 0 0 4px rgba(54, 155, 224, 0.1);
}

.hero-orbs {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orbs span {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(49, 139, 226, 0.28);
  border-radius: 50%;
  animation: tust-bubble-rise 7s ease-in-out infinite;
}

.hero-orbs span:nth-child(1) {
  bottom: 10%;
  left: 4%;
}

.hero-orbs span:nth-child(2) {
  right: 4%;
  bottom: 25%;
  width: 13px;
  height: 13px;
  animation-delay: -2s;
}

.hero-orbs span:nth-child(3) {
  top: 18%;
  left: 44%;
  width: 6px;
  height: 6px;
  animation-delay: -4s;
}

.hero-orbs span:nth-child(4) {
  top: 8%;
  right: 20%;
  width: 10px;
  height: 10px;
  animation-delay: -5.5s;
}

.product-image-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #f8fcff, #e7f7ff);
  box-shadow: 0 22px 54px rgba(24, 91, 155, 0.12);
  animation: tust-product-float 6s ease-in-out infinite;
}

.product-image-panel::after {
  position: absolute;
  inset: -40% -70%;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 38%,
    rgba(255, 255, 255, 0.42) 49%,
    transparent 60%
  );
  transform: translateX(-42%) rotate(5deg);
  animation: tust-product-sheen 7.5s ease-in-out infinite;
}

.product-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.delivery-area-hidden {
  display: none !important;
}

.fulfillment-fields.address-only {
  grid-template-columns: 1fr;
}

.fulfillment-fields.address-only > .span-full {
  grid-column: 1;
}

.order-card {
  isolation: isolate;
  animation: tust-card-enter 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-heading {
  animation: tust-hero-enter 0.68s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.primary-button,
.order-submit,
.segmented button,
.payment-options button {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    filter 0.2s ease;
}

.primary-button:hover:not(:disabled),
.order-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 15px 30px rgba(27, 111, 217, 0.24);
}

.primary-button:active:not(:disabled),
.order-submit:active:not(:disabled),
.segmented button:active,
.payment-options button:active {
  transform: scale(0.985);
}

.order-flow-assistant {
  position: sticky;
  z-index: 12;
  top: 14px;
  margin: 0 0 20px;
  padding: 15px 16px 13px;
  border: 1px solid rgba(75, 139, 204, 0.19);
  border-radius: 16px;
  background: rgba(247, 251, 255, 0.94);
  box-shadow: 0 10px 26px rgba(26, 82, 137, 0.09);
  backdrop-filter: blur(16px);
}

.order-flow-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.order-flow-summary strong {
  color: var(--tust-ink);
  font-size: 12px;
}

.order-flow-summary span {
  color: #64809d;
  font-size: 10px;
}

.order-flow-track {
  height: 7px;
  margin: 9px 0 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfeaf5;
}

.order-flow-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tust-blue), #45aff2, #38c9ad);
  box-shadow: 0 0 12px rgba(47, 151, 224, 0.36);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.order-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.order-flow-step {
  min-width: 0;
  padding: 7px 5px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #70849a;
  background: transparent;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.order-flow-step:hover {
  transform: translateY(-1px);
  border-color: rgba(40, 125, 210, 0.18);
  color: var(--tust-blue);
  background: #fff;
}

.order-flow-step.is-complete {
  color: #147c60;
  background: rgba(47, 191, 151, 0.09);
}

.order-flow-step.is-current {
  border-color: rgba(28, 111, 217, 0.2);
  color: var(--tust-blue);
  background: #fff;
  box-shadow: 0 5px 14px rgba(38, 102, 164, 0.08);
}

.saved-profile-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 16px;
  padding: 12px 13px;
  border: 1px dashed rgba(66, 135, 204, 0.28);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(235, 246, 255, 0.78), rgba(249, 253, 255, 0.96));
}

.saved-profile-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--tust-blue);
  background: #fff;
  box-shadow: 0 7px 16px rgba(25, 90, 151, 0.1);
  font-size: 16px;
}

.saved-profile-copy {
  min-width: 0;
  flex: 1;
}

.saved-profile-copy strong,
.saved-profile-copy small {
  display: block;
}

.saved-profile-copy strong {
  color: #234a72;
  font-size: 11px;
}

.saved-profile-copy small {
  overflow: hidden;
  margin-top: 2px;
  color: #7890a6;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.saved-profile-actions button,
.order-utility-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(46, 120, 193, 0.19);
  border-radius: 9px;
  color: #255f9d;
  background: #fff;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.saved-profile-actions button:hover:not(:disabled),
.order-utility-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(35, 112, 200, 0.4);
  box-shadow: 0 7px 16px rgba(31, 93, 151, 0.1);
}

.saved-profile-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.saved-profile-actions .is-danger {
  color: #b44b5c;
}

.pickup-location-visible {
  display: block !important;
  grid-column: 1 / -1;
}

.profile-save-after-payment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -2px 0 18px;
  padding: 13px 14px;
  border: 1px solid rgba(47, 142, 117, 0.2);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(235, 250, 245, 0.95), rgba(247, 253, 251, 0.98));
}

.profile-save-after-payment-copy strong,
.profile-save-after-payment-copy small {
  display: block;
}

.profile-save-after-payment-copy strong {
  color: #176c58;
  font-size: 11px;
}

.profile-save-after-payment-copy small {
  margin-top: 3px;
  color: #708f87;
  font-size: 9px;
}

.profile-save-after-payment button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid rgba(28, 131, 103, 0.25);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1d9c79, #43b892);
  box-shadow: 0 8px 18px rgba(31, 132, 105, 0.16);
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.college-custom-option {
  display: grid;
  gap: 8px;
  margin-top: 9px;
  padding: 12px 14px;
  border: 1px dashed #bfd3ef;
  border-radius: 13px;
  background: linear-gradient(135deg, #f7fbff, #fbfdff);
}

.college-custom-toggle {
  display: flex !important;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.college-custom-toggle input {
  width: 18px !important;
  height: 18px;
  margin: 0;
  accent-color: #2573df;
}

.college-custom-toggle strong {
  color: #173e79;
  font-size: 11px;
}

.college-custom-hint {
  color: #6d8197;
  font-size: 9px;
  line-height: 1.6;
}

.college-custom-input {
  display: grid;
  gap: 7px;
  margin-top: 3px;
}

.college-custom-input[hidden],
.college-preset-hidden {
  display: none !important;
}

.college-custom-input > span {
  color: #173e79;
  font-size: 10px;
  font-weight: 750;
}

.recent-order-menu {
  position: relative;
}

.recent-order-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(50, 116, 184, 0.15);
  border-radius: 12px;
  color: #315b82;
  background: rgba(247, 251, 255, 0.9);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.recent-order-menu summary::-webkit-details-marker {
  display: none;
}

.recent-order-menu summary::before {
  content: "◷";
  color: var(--tust-blue);
  font-size: 15px;
}

.recent-order-menu[open] summary {
  color: var(--tust-blue);
  background: #fff;
}

.recent-order-popover {
  position: absolute;
  z-index: 100;
  top: calc(100% + 10px);
  right: 0;
  width: min(330px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(72, 128, 184, 0.2);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 50px rgba(18, 64, 112, 0.2);
  backdrop-filter: blur(18px);
  animation: tust-popover-in 0.24s ease both;
}

.recent-order-popover > strong {
  display: block;
  padding: 2px 4px 9px;
  color: var(--tust-ink);
  font-size: 11px;
}

.recent-order-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-order-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f4f9fe;
}

.recent-order-open {
  min-width: 0;
  padding: 0;
  border: 0;
  color: #214e7b;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.recent-order-open strong,
.recent-order-open small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-order-open strong {
  font-size: 10px;
}

.recent-order-open small {
  margin-top: 3px;
  color: #8093a5;
  font-size: 8px;
}

.recent-order-copy {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  color: var(--tust-blue);
  background: #fff;
  cursor: pointer;
}

.phone-history-actions,
.result-utility-actions,
.receipt-utility-actions {
  align-items: start;
}

.result-utility-actions,
.receipt-utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.order-utility-button.is-primary {
  border-color: rgba(27, 105, 210, 0.22);
  color: #fff;
  background: linear-gradient(135deg, #176edc, #3296eb);
}

.motion-watch {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.62s ease,
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-watch.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-convenience {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 30px;
  display: grid;
  gap: 8px;
}

.floating-convenience button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(72, 129, 184, 0.2);
  border-radius: 15px;
  color: #326896;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(17, 69, 119, 0.14);
  font: inherit;
  font-size: 17px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.floating-convenience button:hover {
  transform: translateY(-3px);
  color: var(--tust-blue);
}

.floating-convenience .customer-service-link {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(21, 156, 105, 0.3);
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #19a973, #35c996);
  box-shadow: 0 14px 30px rgba(22, 156, 106, 0.24);
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  animation: tust-service-breathe 2.8s ease-in-out infinite;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.floating-convenience .customer-service-link:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
  box-shadow: 0 18px 34px rgba(22, 156, 106, 0.3);
}

.floating-convenience .back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.floating-convenience .back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.experience-toast-region {
  position: fixed;
  z-index: 1200;
  top: 82px;
  right: 20px;
  display: grid;
  width: min(340px, calc(100vw - 28px));
  gap: 9px;
  pointer-events: none;
}

.experience-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(52, 130, 198, 0.2);
  border-radius: 14px;
  color: #254d73;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--tust-shadow);
  font-size: 11px;
  font-weight: 700;
  animation: tust-toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.experience-toast::before {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  content: "✓";
  color: #fff;
  background: linear-gradient(135deg, var(--tust-blue), #43c6ad);
}

.experience-toast.is-error::before {
  content: "!";
  background: linear-gradient(135deg, #e35a6b, #f08c67);
}

.experience-toast.is-leaving {
  animation: tust-toast-out 0.24s ease both;
}

.success-celebration {
  position: absolute;
  z-index: 5;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.success-celebration span {
  position: absolute;
  top: -18px;
  width: 8px;
  height: 14px;
  border-radius: 3px;
  background: var(--particle-color);
  animation: tust-confetti-fall var(--particle-duration) ease-in var(--particle-delay) both;
}

.success-celebration span:nth-child(3n) {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.admin-delete-order {
  margin-right: auto;
}

.admin-delete-backdrop {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 24, 43, 0.7);
  backdrop-filter: blur(4px);
}

.admin-delete-dialog {
  width: min(450px, 100%);
  padding: 26px;
  border: 1px solid rgba(178, 68, 68, 0.2);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(4, 18, 33, 0.35);
  animation: tust-popover-in 0.25s ease both;
}

.admin-delete-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  color: #b42318;
  background: #fee4e2;
  font-size: 22px;
  font-weight: 850;
}

.admin-delete-dialog h2 {
  margin: 0;
  color: var(--tust-ink);
  font-size: 21px;
}

.admin-delete-dialog > p {
  margin: 8px 0 18px;
  color: #6d8195;
  font-size: 10px;
  line-height: 1.7;
}

.admin-delete-dialog input {
  width: 100%;
  margin-top: 7px;
  text-transform: uppercase;
}

.admin-delete-feedback {
  display: block;
  min-height: 18px;
  margin-top: 7px;
  color: #b42318;
  font-size: 9px;
}

.admin-delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}

.admin-delete-actions button {
  min-height: 42px;
}

.admin-enhancement-toast {
  position: fixed;
  z-index: 170;
  top: 86px;
  right: 22px;
  max-width: min(380px, calc(100vw - 28px));
  padding: 13px 16px;
  border: 1px solid #a9dbc2;
  border-radius: 13px;
  color: #067647;
  background: #f3fbf7;
  box-shadow: var(--tust-shadow);
  font-size: 10px;
  font-weight: 750;
  animation: tust-toast-in 0.3s ease both;
}

.admin-enhancement-toast.is-error {
  border-color: #fecdca;
  color: #b42318;
  background: #fff6f5;
}

@keyframes tust-aurora-drift {
  from {
    opacity: 0.72;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes tust-hero-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tust-card-enter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tust-product-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes tust-product-sheen {
  0%,
  62% {
    transform: translateX(-42%) rotate(5deg);
  }
  86%,
  100% {
    transform: translateX(42%) rotate(5deg);
  }
}

@keyframes tust-service-breathe {
  0%,
  100% {
    box-shadow:
      0 14px 30px rgba(22, 156, 106, 0.24),
      0 0 0 0 rgba(38, 190, 134, 0.2);
  }
  50% {
    box-shadow:
      0 16px 34px rgba(22, 156, 106, 0.28),
      0 0 0 8px rgba(38, 190, 134, 0);
  }
}

@keyframes tust-chip-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tust-bubble-rise {
  0%,
  100% {
    opacity: 0.18;
    transform: translateY(16px) scale(0.85);
  }
  50% {
    opacity: 0.68;
    transform: translateY(-16px) scale(1.12);
  }
}

@keyframes tust-popover-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tust-toast-in {
  from {
    opacity: 0;
    transform: translateX(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes tust-toast-out {
  to {
    opacity: 0;
    transform: translateX(18px) scale(0.97);
  }
}

@keyframes tust-confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--particle-drift), 440px, 0) rotate(540deg);
  }
}

@media (width <= 980px) {
  .recent-order-menu {
    display: none;
  }

  .floating-convenience {
    right: 14px;
    bottom: 88px;
  }
}

@media (width <= 767px) {
  .order-flow-assistant {
    top: 77px;
    margin-inline: -2px;
    padding: 12px;
    border-radius: 14px;
  }

  .order-flow-step {
    padding-inline: 2px;
    font-size: 8px;
  }

  .saved-profile-panel {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .saved-profile-copy {
    width: calc(100% - 48px);
  }

  .saved-profile-actions {
    width: 100%;
    justify-content: stretch;
  }

  .saved-profile-actions button {
    flex: 1;
  }

  .profile-save-after-payment {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-save-after-payment button {
    width: 100%;
  }

  .hero-convenience-list {
    margin-top: 13px;
  }

  .hero-convenience-list li {
    padding: 7px 9px;
    font-size: 9px;
  }

  .experience-toast-region {
    top: 76px;
    right: 14px;
  }

  .result-utility-actions,
  .receipt-utility-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .order-utility-button {
    min-height: 38px;
  }
}

/*
 * iOS Safari and embedded WeChat browsers have a substantially smaller
 * compositing budget. Keep every feature available while avoiding a WebKit
 * process reload caused by several full-page blur and infinite animation
 * layers running together.
 */
html.mobile-webview-safe *,
html.mobile-webview-safe *::before,
html.mobile-webview-safe *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}

html.mobile-webview-safe body::before,
html.mobile-webview-safe .hero-orbs,
html.mobile-webview-safe .product-image-panel::after {
  display: none !important;
}

html.mobile-webview-safe .site-header,
html.mobile-webview-safe .mobile-nav,
html.mobile-webview-safe .hero-convenience-list li,
html.mobile-webview-safe .service-chips > span,
html.mobile-webview-safe .order-flow-assistant,
html.mobile-webview-safe .floating-convenience button,
html.mobile-webview-safe .recent-order-menu,
html.mobile-webview-safe .saved-profile-panel {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html.mobile-webview-safe .product-image-panel,
html.mobile-webview-safe .motion-watch {
  opacity: 1 !important;
  transform: none !important;
}

html.mobile-webview-safe .water-background {
  background-attachment: scroll !important;
}

@media (width <= 767px) {
  body::before,
  .hero-orbs,
  .product-image-panel::after {
    display: none !important;
  }

  .product-image-panel,
  .customer-service-link,
  .hero-orbs span {
    animation: none !important;
  }

  .site-header,
  .mobile-nav,
  .hero-convenience-list li,
  .service-chips > span,
  .order-flow-assistant,
  .floating-convenience button,
  .saved-profile-panel {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before,
  .hero-heading,
  .order-card,
  .product-image-panel,
  .product-image-panel::after,
  .customer-service-link,
  .hero-convenience-list li,
  .hero-orbs span,
  .experience-toast,
  .success-celebration span {
    animation: none !important;
  }

  .motion-watch {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .order-flow-track i,
  .floating-convenience button {
    transition-duration: 0.01ms !important;
  }
}
