.checkout-view .fulfillment-layout { width: 824px; margin-top: 0; padding: 28px 32px max(48px, env(safe-area-inset-bottom, 0px)); }
.fulfillment-layout .checkout-header { margin-bottom: 0; }
.fulfillment-layout .checkout-header h1 { font-size: 15px; line-height: 24px; font-weight: 400; padding-left: 8px; color: var(--secondary); }
.fulfillment-layout .checkout-columns { display: block; }
.fulfillment-thread { width: 100%; max-width: 640px; margin: clamp(64px, 10vh, 108px) auto 0; }
.fulfillment-context { display: flex; align-items: center; gap: 13px; min-height: 44px; }
.fulfillment-context img { flex: 0 0 30px; }
.fulfillment-context h2 { font-size: 15px; line-height: 22px; font-weight: 600; }
.fulfillment-context h2:focus { outline: none; }
.fulfillment-context p { color: var(--secondary); font-size: 12px; line-height: 18px; margin-top: 2px; }
.fulfillment-transcript { margin-top: 28px; min-height: 196px; font-size: 17px; line-height: 1.85; }
.fulfillment-line { margin: 0 0 16px; overflow-wrap: anywhere; }
.fulfillment-lead { font-size: 30px; line-height: 1.5; font-weight: 500; margin-bottom: 24px; letter-spacing: -.025em; }
.fulfillment-confirmed { color: var(--secondary); }
.fulfillment-waiting { color: var(--text); font-weight: 500; }
.fulfillment-waiting.is-history { color: var(--secondary); font-weight: 400; }
.fulfillment-line.is-typing::after { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 0 2px 7px; background: currentColor; border-radius: 50%; }
[data-status=pending] .fulfillment-waiting:not(.is-typing):not(.is-history)::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 10px; background: currentColor; border-radius: 50%; animation: fulfillment-breathe 1.8s ease-in-out infinite; }
[data-status=succeeded] .fulfillment-result { color: #19764b; }
[data-status=failed] .fulfillment-result { color: #a6231b; }
.fulfillment-stop { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: transparent; margin-left: auto; }
.fulfillment-stop:active { transform: scale(.96); }
.fulfillment-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--border); }
.fulfillment-info>div { min-width: 0; }
.fulfillment-info dt { font-size: 12px; line-height: 20px; color: var(--secondary); margin-bottom: 5px; }
.fulfillment-info dd { margin: 0; font-size: 13px; line-height: 22px; color: var(--secondary); overflow-wrap: anywhere; }
.fulfillment-info .order-id { font-family: 'OpenAI Sans', sans-serif; font-size: 13px; letter-spacing: .01em; }
.fulfillment-updated { font-size: 11px; line-height: 20px; color: var(--secondary); margin-top: 22px; }
.fulfillment-connection,.fulfillment-storage-error { font-size: 13px; line-height: 22px; color: #886128; margin-top: 16px; }
.fulfillment-thread button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.fulfillment-authorization { margin-top: 24px; font-size: 13px; line-height: 1.7; color: var(--secondary); }
.fulfillment-authorization>label { display: block; margin-bottom: 8px; }
.fulfillment-authorization textarea { display: block; width: 100%; min-height: 120px; resize: vertical; margin-bottom: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; font-family: inherit; font-size: 16px; line-height: 1.5; background: var(--surface); }
.fulfillment-authorization .fulfillment-consent { display: flex; gap: 10px; align-items: flex-start; }
.fulfillment-consent input { margin-top: 5px; width: 16px; height: 16px; flex-shrink: 0; }
.fulfillment-action { margin: 12px 0 24px; }
.fulfillment-action button,.fulfillment-query { min-height: 44px; border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; background: transparent; font-size: 13px; }
.fulfillment-action p { color: var(--secondary); font-size: 13px; line-height: 1.7; margin-bottom: 8px; }
.fulfillment-query { margin-top: 16px; }
@keyframes fulfillment-breathe { 0%,100% { opacity: .25; } 50% { opacity: .9; } }
@media (hover:hover) and (pointer:fine) { .fulfillment-stop:hover { background: #e9e9e9; } }
@media (max-width:639px) {
  .checkout-view .fulfillment-layout { margin-top: 0; padding: 20px 24px max(32px, env(safe-area-inset-bottom, 0px)); }
  .fulfillment-layout .checkout-header { margin-bottom: 0; gap: 8px; }
  .fulfillment-layout .checkout-header h1 { font-size: 14px; padding-left: 0; }
  .fulfillment-thread { margin-top: 62px; }
  .fulfillment-transcript { margin-top: 28px; font-size: 16px; min-height: 188px; }
  .fulfillment-lead { font-size: 26px; margin-bottom: 24px; }
  .fulfillment-info { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 24px; padding-top: 22px; }
}
@media (prefers-reduced-motion:reduce) {
  .fulfillment-thread[data-status] .fulfillment-waiting:not(.is-typing):not(.is-history)::after { animation: none; }
  .fulfillment-stop:active { transform: none; }
}
