/* Demo layer on top of the replica. Prefixed dm- so it can't collide with the site's own styles. */
#shipment-panel[hidden] { display: none; }

.dm-shipment {
  --dm-navy: #021d49;
  --dm-blue: #1d4289;
  --dm-sky: #407ec9;
  --dm-red: #e84124;
  --dm-green: #15803d;
  --dm-amber: #b45309;
  --dm-line: #dfe5ee;
  --dm-muted: #55607a;
  background: #f3f5f9;
  border-top: 4px solid var(--dm-navy);
  color: var(--dm-navy);
  font-family: 'Nunito Sans', Arial, sans-serif;
  /* 56px clears the fixed "Behind the scenes" tab, which covered the left edge when chat narrowed the panel. */
  padding: 40px 56px;
  scroll-margin-top: 90px;
  transition: padding-right 0.2s ease;
}

.dm-inner { margin: 0 auto; max-width: 1120px; }

/* Keep the timeline visible beside the open chat window on a wide screen. */
@media (min-width: 1100px) {
  body.dm-chat-open .dm-shipment { padding-right: 500px; }
}

.dm-head { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-bottom: 24px; }
.dm-eyebrow { color: var(--dm-muted); font-size: 13px; letter-spacing: 0.02em; margin: 0 0 2px; }
.dm-ref { color: var(--dm-navy); font-size: 32px; font-weight: 800; line-height: 1.1; margin: 0; }

.dm-status { border-radius: 999px; color: #fff; font-size: 14px; font-weight: 700; padding: 7px 16px; transition: background-color 0.4s ease; }
.dm-status--problem { background: var(--dm-red); }
.dm-status--ok { background: var(--dm-green); }
.dm-status--progress { background: var(--dm-sky); }

.dm-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dm-col { min-width: 0; }

.dm-meta { display: grid; gap: 10px; margin: 0 0 18px; }
.dm-meta > div { display: grid; gap: 12px; grid-template-columns: 130px 1fr; }
.dm-meta dt { color: var(--dm-muted); font-size: 14px; margin: 0; }
.dm-meta dd { font-size: 15px; font-weight: 600; margin: 0; }

.dm-issue, .dm-locked, .dm-alert, .dm-case { border-radius: 6px; font-size: 14px; line-height: 1.5; margin: 0 0 16px; padding: 12px 14px; }
.dm-issue { background: #fdecea; border-left: 4px solid var(--dm-red); }
.dm-locked { background: #e9eef6; border-left: 4px solid var(--dm-blue); }
.dm-alert { background: #e7f5ec; border-left: 4px solid var(--dm-green); }
.dm-case { background: #e9eef6; border-left: 4px solid var(--dm-blue); margin-top: 20px; }

.dm-clock { background: #fff; border: 1px solid var(--dm-line); border-radius: 8px; margin-bottom: 16px; padding: 14px 16px; }
.dm-clock__time { color: var(--dm-amber); font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.dm-clock__charges { font-size: 14px; margin: 0 0 8px; }
.dm-clock small { color: var(--dm-muted); font-size: 12px; }
.dm-charges { display: grid; gap: 8px; margin: 0 0 8px; }
.dm-charges > div { align-items: baseline; display: flex; gap: 16px; justify-content: space-between; }
.dm-charges dt { font-size: 14px; margin: 0; }
.dm-charges dd { font-size: 18px; font-weight: 800; margin: 0; }
.dm-charges > div:first-child dd { color: var(--dm-green); }

.dm-timeline { list-style: none; margin: 0 0 20px; padding: 0; }
.dm-step { border-left: 3px solid var(--dm-line); margin-left: 7px; padding: 0 0 18px 20px; position: relative; }
.dm-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.dm-step::before { background: var(--dm-sky); border: 3px solid #f3f5f9; border-radius: 50%; content: ''; height: 15px; left: -9px; position: absolute; top: 2px; width: 15px; }
.dm-step--problem::before { background: var(--dm-red); }
.dm-step--current::before { background: var(--dm-green); box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.18); }
.dm-step__label { display: block; font-size: 15px; font-weight: 700; }
.dm-step--problem .dm-step__label { color: var(--dm-red); }
.dm-step__at { color: var(--dm-muted); display: block; font-size: 13px; }

.dm-checklist h3, .dm-interactive h3 { color: var(--dm-navy); font-size: 17px; font-weight: 800; margin: 0 0 10px; }
.dm-checklist ul { list-style: none; margin: 0; padding: 0; }
/* The site's stylesheet puts red triangle bullets on list items, so turn those off in the demo lists. */
.dm-doc::before, .dm-activity li::before { content: none !important; display: none !important; }
.dm-doc, .dm-activity li { padding-left: 0; }
.dm-doc { align-items: flex-start; display: flex; font-size: 15px; gap: 10px; padding: 6px 0; }
.dm-doc small { color: var(--dm-muted); display: block; font-size: 13px; }
.dm-doc__mark { background: var(--dm-green); border-radius: 50%; color: #fff; flex: none; font-size: 12px; font-weight: 800; height: 20px; line-height: 20px; text-align: center; width: 20px; }
.dm-doc--problem .dm-doc__mark { background: var(--dm-red); }

.dm-interactive { animation: dm-rise 0.3s ease; background: #fff; border: 2px solid var(--dm-sky); border-radius: 10px; margin-top: 24px; padding: 20px; }
@keyframes dm-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dm-days { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.dm-day p { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.dm-slot { background: #fff; border: 2px solid var(--dm-blue); border-radius: 6px; color: var(--dm-blue); cursor: pointer; display: block; font: inherit; font-weight: 700; margin-bottom: 8px; padding: 11px 12px; transition: background-color 0.15s ease, color 0.15s ease; width: 100%; }
.dm-slot:hover:not(:disabled) { background: var(--dm-blue); color: #fff; }
.dm-slot:disabled { cursor: default; opacity: 0.5; }
.dm-slot.is-chosen { background: var(--dm-green); border-color: var(--dm-green); color: #fff; opacity: 1; }

.dm-drop { border: 2px dashed var(--dm-sky); border-radius: 8px; font-size: 15px; padding: 26px 16px; text-align: center; transition: background-color 0.15s ease; }
.dm-drop.is-over { background: #e9f1fb; }
.dm-samples { color: var(--dm-muted); font-size: 14px; margin: 12px 0 0; }
.dm-link { background: none; border: 0; color: var(--dm-blue); cursor: pointer; font: inherit; font-weight: 700; padding: 0; text-decoration: underline; }

.dm-actions { align-items: center; border-top: 1px solid var(--dm-line); display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; padding-top: 20px; }
.dm-actions p { font-size: 15px; font-weight: 700; margin: 0 8px 0 0; }
.dm-cta { background: var(--dm-red); border: 2px solid var(--dm-red); border-radius: 4px; color: #fff; cursor: pointer; font: inherit; font-weight: 700; padding: 10px 22px; }
.dm-cta:hover { filter: brightness(0.93); }
.dm-cta--ghost { background: transparent; border-color: var(--dm-navy); color: var(--dm-navy); }

/* Drawer: real server calls for this session, written by the back-end as they happen. */
.dm-drawer-tab { background: var(--dm-navy, #021d49); border: 0; border-radius: 0 0 6px 6px; color: #fff; cursor: pointer; font: 700 13px 'Nunito Sans', Arial, sans-serif; left: 0; padding: 9px 14px; position: fixed; top: 50%; transform: rotate(-90deg) translate(-50%, 0); transform-origin: left top; z-index: 2001; }
.dm-drawer { background: #021d49; bottom: 0; color: #fff; display: flex; flex-direction: column; font-family: 'Nunito Sans', Arial, sans-serif; left: 0; max-width: 92vw; padding: 22px 20px 16px 48px; position: fixed; top: 0; transform: translateX(-100%); transition: transform 0.22s ease; width: 400px; z-index: 2000; }
.dm-drawer.is-open { transform: none; }
.dm-drawer h2 { color: #fff; font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.dm-drawer header p { color: #b9c7de; font-size: 13px; margin: 0 0 14px; }
.dm-activity { flex: 1; list-style: none; margin: 0; overflow-y: auto; padding: 0; }
.dm-activity li { border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; padding: 9px 0; }
.dm-activity li.is-new { animation: dm-flash 1.6s ease; }
@keyframes dm-flash { from { background: rgba(64, 126, 201, 0.5); } to { background: transparent; } }
.dm-activity time { color: #8fa3c4; display: block; font-size: 11px; }
.dm-activity strong { display: block; font-weight: 800; }
.dm-reset { background: transparent; border: 1px solid #8fa3c4; border-radius: 4px; color: #fff; cursor: pointer; font: inherit; font-size: 13px; margin-top: 12px; padding: 8px; }

.dm-toast { background: #021d49; border-radius: 6px; bottom: 24px; color: #fff; font: 600 14px 'Nunito Sans', Arial, sans-serif; left: 50%; max-width: 90vw; opacity: 0; padding: 12px 18px; pointer-events: none; position: fixed; transform: translateX(-50%); transition: opacity 0.2s ease; z-index: 2002; }
.dm-toast.is-on { opacity: 1; }

/* The replica sets the page's root font to 10px, and Webchat sizes its text in rem, which makes chat
   unreadably small (8.75px). So its sizes are set explicitly here. */
[data-cognigy-webchat-root] .webchat :is(p, span, li, a, label, textarea, input, button, div) { font-size: 15px !important; line-height: 1.45; }
[data-cognigy-webchat-root] .webchat-header-title { font-size: 17px !important; }
[data-cognigy-webchat-root] .webchat [class*="timestamp"] { font-size: 11px !important; }
[data-cognigy-webchat-root] .webchat [class*="copy-medium"] { font-size: 10px !important; }
[data-cognigy-webchat-root] .webchat .webchat-log-ai-agent-notice-text { font-size: 12px !important; }

/* Two stock widgets: chat keeps its corner and the voice pill sits to its left. */
.webrtc_widget_outer_wrapper { right: 92px !important; z-index: 9998 !important; }
body.dm-chat-open .webrtc_widget_outer_wrapper { display: none !important; }
.webrtc_widget_outer_wrapper.dm-pulse { animation: dm-pulse 0.6s ease 4; }
@keyframes dm-pulse { 50% { transform: scale(1.06); } }

@media (max-width: 767px) {
  .dm-drawer-tab { display: none; }
  .dm-shipment { padding: 28px 16px; }
  .dm-ref { font-size: 26px; }
  .dm-meta > div { grid-template-columns: 110px 1fr; }
  .webrtc_widget_outer_wrapper { bottom: 88px !important; right: 12px !important; }
  body.dm-chat-open .webrtc_widget_outer_wrapper { display: none !important; }
}
