/* Change collection dialog (shared by every screen that arranges insured DHL collections) */
html.cc-locked, body.cc-locked { overflow: hidden; }
body.cc-locked { position: fixed; left: 0; right: 0; width: 100%; }
.cc-ov { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(14, 12, 9, 0.62); opacity: 0; transition: opacity .16s ease; overscroll-behavior: none; touch-action: none; }
.cc-ov.cc-in { opacity: 1; }
.cc-sheet { width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-surface, #fff); color: var(--color-text, #1d1b16); border-radius: 16px; box-shadow: 0 28px 70px rgba(0, 0, 0, .4);
  transform: translateY(8px) scale(.985); transition: transform .18s ease; }
.cc-in .cc-sheet { transform: none; }
.cc-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px;
  background: #0d0d0d; color: #f4efe3; border-bottom: 2px solid #b8944a; }
.cc-head h3 { margin: 0; font-family: var(--font-display, inherit); font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #f4efe3; }
.cc-x { appearance: none; border: 0; background: rgba(255, 255, 255, .1); color: #f4efe3; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.cc-x:hover { background: rgba(255, 255, 255, .2); }
.cc-body { flex: 1 1 auto; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 16px 20px 8px; }
.cc-note { padding: 10px 12px; border-radius: 10px; border: 1px solid #d9c9a3; background: #f6efdd; font-size: 14px; line-height: 1.45; }
.cc-note .cc-sub { display: block; margin-top: 2px; color: #6b6554; font-size: 13px; }
.cc-opts { display: grid; gap: 8px; margin: 12px 0 14px; }
.cc-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #e5dfd2; border-radius: 10px; padding: 10px 12px; background: #fffdf8; cursor: pointer; }
.cc-opt:has(input:checked) { border-color: #b8944a; background: #fbf5e6; box-shadow: inset 3px 0 0 #b8944a; }
.cc-opt input { margin-top: 4px; flex: 0 0 auto; }
.cc-opt b { display: block; font-size: 14px; font-weight: 600; }
.cc-opt small { display: block; font-size: 12px; line-height: 1.45; color: #6b6554; margin-top: 2px; }
.cc-field { margin-bottom: 12px; }
.cc-field label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.cc-field input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; /* 16px stops iOS zooming the page on focus */ padding: 10px 12px; border: 1px solid #ddd6c6; border-radius: 10px; background: #faf8f3; color: inherit; }
.cc-field input:focus { outline: 2px solid #b8944a; outline-offset: 0; background: #fff; }
.cc-hint { display: block; margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: #6b6554; }
.cc-env { margin: 10px 0 8px; }
.cc-alt { display: block; margin: 2px 0 14px; }
.cc-err { flex: 0 0 auto; margin: 0 20px 8px; padding: 8px 12px; border-radius: 8px; background: #fbe9e7; color: #b3261e; font-size: 13px; font-weight: 600; }
.cc-foot { flex: 0 0 auto; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #eee7d6; background: var(--color-surface, #fff); }
.cc-skel { display: grid; gap: 12px; padding: 4px 0 8px; }
.cc-skel i { display: block; height: 52px; border-radius: 10px; background: linear-gradient(90deg, #eee9dc 25%, #f7f3e8 50%, #eee9dc 75%); background-size: 200% 100%; animation: cc-shimmer 1.1s linear infinite; }
.cc-skel i:first-child { height: 44px; }
@keyframes cc-shimmer { to { background-position: -200% 0; } }
@media (max-width: 640px) {
  .cc-ov { align-items: flex-end; padding: 0; }
  .cc-sheet { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 18px 18px 0 0; transform: translateY(28px); }
  .cc-head { padding-top: 16px; }
  .cc-body { padding: 14px 16px 6px; }
  .cc-foot { padding-left: 16px; padding-right: 16px; }
  .cc-foot .btn { flex: 1 1 0; justify-content: center; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .cc-ov, .cc-sheet { transition: none; } .cc-skel i { animation: none; } }
