/* Query page styles extracted from styles.css. */



.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}



.query-result {
  display: grid;
  gap: 12px;
}



.query-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}



.query-card.result-panel {
  background: #f8fafc;
}



.query-card div {
  display: grid;
  gap: 4px;
}



.query-card span {
  font-weight: 800;
}



.query-card small {
  overflow-wrap: anywhere;
  color: var(--muted);
}



.query-card code {
  overflow-wrap: anywhere;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
}



.query-empty {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  color: var(--muted);
  font-weight: 800;
}



.nav a,
.primary,
.secondary,
.option-item,
.guide-block,
.product-row,
.query-card {
  transition:
    transform 190ms var(--ease-out),
    box-shadow 190ms var(--ease-out),
    background 190ms var(--ease-out),
    border-color 190ms var(--ease-out),
    color 190ms var(--ease-out);
}



.query-card,
.guide-block {
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.05);
  animation: riseIn 420ms var(--ease-out) both;
}



.guide-block:hover,
.product-row:not(.product-row--head):hover,
.query-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-lift);
}


.query-page {
  padding-top: 24px;
}



.query-panel {
  width: min(540px, 100%);
  gap: 20px;
  padding: clamp(22px, 5vw, 34px);
}

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



.query-panel__head h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(32px, 8vw, 46px);
  line-height: 1.05;
  font-weight: 950;
}



.query-panel__head > span {
  color: #64748b;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.6;
}



.query-panel .field span {
  color: #334155;
  font-weight: 900;
}



.query-panel input {
  height: 52px;
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.56)),
    rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 28px rgba(15, 23, 42, 0.05);
  font-size: 17px;
  font-weight: 780;
}



.query-panel input::placeholder {
  color: #94a3b8;
  font-weight: 760;
}



.query-panel input:focus {
  border-color: rgba(22, 119, 255, 0.68);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 4px rgba(22, 119, 255, 0.12),
    0 16px 36px rgba(22, 119, 255, 0.1);
}



.query-panel input.is-invalid {
  border-color: rgba(220, 38, 38, 0.62);
  box-shadow:
    0 0 0 4px rgba(220, 38, 38, 0.1),
    0 14px 34px rgba(220, 38, 38, 0.08);
}



.query-panel .primary {
  min-height: 52px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 950;
}



.query-panel .form-error {
  margin-top: -4px;
  border-color: rgba(254, 202, 202, 0.9);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(254, 242, 242, 0.72)),
    #fef2f2;
  box-shadow: 0 12px 28px rgba(185, 28, 28, 0.08);
}



.query-result {
  gap: 14px;
}



.query-card,
.card-result {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.46)),
    rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 60px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(22px) saturate(1.22);
  padding: 16px;
}



.query-card::before,
.card-result::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(22, 119, 255, 0.08), transparent 38%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.42), transparent 32%);
  pointer-events: none;
}



.query-card > *,
.card-result > * {
  position: relative;
  z-index: 1;
}



.delivery-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}



.delivery-head span {
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}



.delivery-head b {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border: 1px solid rgba(4, 120, 87, 0.16);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.86);
  color: #047857;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 950;
}



.delivery-code {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}



.delivery-bundle {
  display: grid;
  gap: 10px;
}



.delivery-code small,
.delivery-meta small {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}



.delivery-code code {
  overflow-wrap: anywhere;
  border: 1px solid rgba(22, 119, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  padding: 18px;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 950;
  line-height: 1.45;
}



.delivery-code__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}



.delivery-code__line code {
  margin: 0;
}



.delivery-code__line .compact-btn {
  min-width: 72px;
  min-height: 100%;
  align-self: stretch;
  font-size: 14px;
  font-weight: 900;
}



.query-card.is-used .delivery-code code,
.delivery-code.is-used code {
  border-color: rgba(100, 116, 139, 0.16);
  background: rgba(241, 245, 249, 0.84);
  color: #64748b;
}



.delivery-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}



.delivery-meta span {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
  padding: 10px;
}



.delivery-meta b {
  overflow-wrap: anywhere;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}



.card-result .copy-btn,
.query-card .copy-btn {
  min-height: 48px;
  font-size: 16px;
  font-weight: 950;
}



.query-empty {
  min-height: 78px;
  display: grid;
  place-items: center;
  border-color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.52);
}



@media (max-width: 640px) {
  .delivery-meta {
    grid-template-columns: 1fr;
  }

  .delivery-head {
    align-items: flex-start;
    flex-direction: column;
  }
}


.query-page {
  padding-top: clamp(18px, 4vw, 34px);
}



.query-panel {
  width: min(100%, 760px);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}



.query-panel__head {
  gap: 10px;
  padding: 0 0 10px;
}



.query-panel__head .eyebrow {
  color: #000000;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.025em;
}



.query-panel__head > span {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
}



.query-panel .field {
  margin: 0;
  gap: 12px;
  color: #4b5563;
  font-weight: 500;
}



.query-panel .field span {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.05em;
}



.query-panel input {
  height: 54px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: none;
  color: #000000;
  padding: 0 16px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
}



.query-panel input::placeholder {
  color: rgba(75, 85, 99, 0.62);
  font-weight: 500;
}



.query-panel input:focus {
  border-color: #000000;
  background: #ffffff;
  box-shadow: none;
}



.query-panel #queryBtn {
  width: 100%;
  min-height: 46px;
  border: 2px solid #000000;
  border-radius: 9999px;
  background: #000000;
  color: #ffffff;
  box-shadow: none;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}



.query-panel #queryBtn:hover {
  background: transparent;
  border-color: #000000;
  color: #000000;
  transform: none;
}



.query-panel #queryBtn:disabled {
  cursor: wait;
  opacity: 0.52;
}



.query-result {
  gap: 16px;
}



.query-card,
.card-result {
  border: 0;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  padding: 24px;
  color: #000000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}



.query-card {
  display: grid;
  gap: 18px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 24px 70px rgba(55, 85, 120, 0.10);
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
}



.query-card::before,
.card-result::before {
  content: none;
}



.query-card__summary {
  display: grid;
  gap: 14px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}



button.query-card__summary {
  cursor: pointer;
}



button.query-card__summary:hover .query-card__summary-toggle {
  background: transparent;
  color: #000000;
}



.query-card__summary:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 6px;
  border-radius: 16px;
}



.query-card__summary .delivery-head {
  margin-bottom: 0;
}



.query-card .delivery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}



.query-card .delivery-head span {
  color: rgba(30, 41, 59, 0.78);
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: 0;
}



.query-card .delivery-head b {
  min-height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
}



.query-card__summary-subject {
  margin: -6px 0 0;
  color: rgba(71, 85, 105, 0.78);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}



.query-card__summary-meta {
  margin-top: 0;
}



.query-card .delivery-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}



.query-card .delivery-meta span {
  min-height: 88px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.86);
  padding: 16px;
}



.query-card__summary-toggle {
  justify-self: start;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #000000;
  border-radius: 9999px;
  background: #000000;
  color: #ffffff;
  padding: 0 18px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
}



.query-card__content {
  display: grid;
  gap: 18px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}



.query-card__content[hidden] {
  display: none;
}



.query-card.is-collapsed {
  gap: 0;
}



.query-card.is-collapsed .query-card__summary-toggle {
  background: #ffffff;
  color: #000000;
}



.delivery-head {
  align-items: flex-start;
  margin-bottom: 18px;
}



.delivery-head span {
  color: #4b5563;
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.05em;
}



.delivery-head b {
  min-height: 34px;
  border: 2px solid #000000;
  border-radius: 9999px;
  background: #000000;
  color: #ffffff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
}



.delivery-bundle {
  gap: 14px;
}



.delivery-code {
  gap: 10px;
}



.delivery-code small,
.delivery-meta small,
.result-field small,
.delivery-target small {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
}



.delivery-code__line {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}



.delivery-code code {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: none;
  color: #000000;
  padding: 16px;
  font-size: clamp(16px, 3.8vw, 22px);
  line-height: 1.42;
  font-weight: 500;
}



.delivery-code__line .compact-btn,
.query-card .copy-btn,
.card-result .copy-btn,
.result-field .copy-btn {
  min-height: 42px;
  border: 2px solid #000000;
  border-radius: 9999px;
  background: #000000;
  box-shadow: none;
  color: #ffffff;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
}



.delivery-code__line .compact-btn:hover,
.query-card .copy-btn:hover,
.card-result .copy-btn:hover,
.result-field .copy-btn:hover {
  background: transparent;
  color: #000000;
  transform: none;
}



.delivery-target {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  background: #f8fafc;
  padding: 12px 14px;
}



.delivery-target div {
  display: grid;
  gap: 4px;
  min-width: 0;
}



.delivery-target span {
  color: #000000;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  overflow-wrap: anywhere;
}



.delivery-meta {
  gap: 12px;
  margin-top: 4px;
}



.delivery-meta span {
  border: 0;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 14px;
}



.delivery-meta b,
.result-field b,
.target-link {
  color: #000000;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}



.query-card.is-used .delivery-code code,
.delivery-code.is-used code {
  border-color: rgba(0, 0, 0, 0.08);
  background: #f3f4f6;
  color: #6b7280;
}



.query-empty {
  min-height: 92px;
  border: 0;
  border-radius: 1.5rem;
  background: #ffffff;
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
}



body.order-delivered-view .card-result.delivery-page {
  width: min(100%, 920px);
  margin: 0 auto;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 30px 90px rgba(55, 85, 120, 0.12);
  padding: clamp(24px, 5vw, 42px);
}



body.order-delivered-view .delivery-page .delivery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}



body.order-delivered-view .delivery-page .delivery-head span {
  color: rgba(30, 41, 59, 0.76);
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 300;
  letter-spacing: 0;
}



body.order-delivered-view .delivery-subject {
  margin: 0 0 clamp(20px, 4vw, 30px);
  color: rgba(71, 85, 105, 0.72);
  font-size: 15px;
  font-weight: 500;
}



body.order-delivered-view .delivery-service-note {
  margin: -12px 0 clamp(18px, 3vw, 26px);
  color: rgba(44, 116, 146, 0.76);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
}



body.order-delivered-view .delivery-bundle {
  display: grid;
  gap: 16px;
}



body.order-delivered-view .delivery-code {
  display: grid;
  gap: 10px;
}



body.order-delivered-view .delivery-target {
  background: rgba(248, 250, 252, 0.82);
}



body.order-delivered-view .delivery-code__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: stretch;
  gap: 12px;
}



body.order-delivered-view .delivery-code code {
  min-height: 82px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px 20px;
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}



body.order-delivered-view .delivery-code__line .compact-btn {
  min-height: 82px;
  border-radius: 18px;
}



body.order-delivered-view .delivery-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}



body.order-delivered-view .delivery-meta span {
  min-height: 96px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.82);
  padding: 16px;
}



body.order-delivered-view .delivery-page > .copy-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  border-radius: 999px;
}



@media (max-width: 720px) {
  body.order-delivered-view .delivery-code__line,
  body.order-delivered-view .delivery-target,
  body.order-delivered-view .delivery-meta {
    grid-template-columns: 1fr;
  }

body.order-delivered-view .delivery-code__line .compact-btn {
    min-height: 48px;
  }
}



.card-result.delivery-redeem_code {
  border-top: 4px solid #0f766e;
}



.card-result.delivery-manual_service {
  border-top: 4px solid #7c3aed;
}



.card-result.delivery-dispatch_service {
  border-top: 4px solid #c2410c;
}



.card-result.delivery-mixed_bundle {
  border-top: 4px solid #2563eb;
}



.card-result.delivery-redeem_code .delivery-head b {
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(240, 253, 250, 0.92);
  color: #0f766e;
}



.card-result.delivery-manual_service .delivery-head b {
  border-color: rgba(124, 58, 237, 0.2);
  background: rgba(245, 243, 255, 0.92);
  color: #6d28d9;
}



.card-result.delivery-dispatch_service .delivery-head b {
  border-color: rgba(194, 65, 12, 0.2);
  background: rgba(255, 247, 237, 0.94);
  color: #c2410c;
}



.card-result.delivery-mixed_bundle .delivery-head b {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(239, 246, 255, 0.94);
  color: #1d4ed8;
}



.delivery-code--redeem_code code,
.delivery-code--manual_service code,
.delivery-code--dispatch_service code,
.delivery-code--mixed_bundle code {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}



.delivery-code--redeem_code code {
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(240, 253, 250, 0.82);
}



.delivery-code--manual_service code {
  border-color: rgba(124, 58, 237, 0.22);
  background: rgba(245, 243, 255, 0.82);
}



.delivery-code--dispatch_service code {
  border-color: rgba(194, 65, 12, 0.22);
  background: rgba(255, 247, 237, 0.84);
}



.delivery-code--mixed_bundle code {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(239, 246, 255, 0.84);
}



.delivery-service-note {
  margin: -4px 0 14px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.82);
  padding: 10px 12px;
  color: rgba(51, 65, 85, 0.78);
  font-size: 14px;
  line-height: 1.6;
}



body.order-delivered-view .delivery-page.delivery-redeem_code,
body.order-delivered-view .delivery-page.delivery-manual_service,
body.order-delivered-view .delivery-page.delivery-dispatch_service,
body.order-delivered-view .delivery-page.delivery-mixed_bundle {
  border-top-width: 5px;
}
