.customer-media { border-top: 1px solid #c8dae9; display: grid; gap: 14px; margin-top: 20px; padding-top: 18px; }
.customer-media-heading { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; }
.customer-media-heading h3 { color: #183b56; font-size: 18px; margin: 0 0 5px; }
.customer-media-heading p { color: #486581; font-size: 14px; line-height: 1.5; margin: 0; }
.customer-media-reload, .customer-media-upload-button, .customer-media-camera-button, .customer-media-remove, .customer-media-error button, .customer-media-queue button { border: 1px solid #4a7fa7; border-radius: 7px; background: #fff; color: #1d5d89; cursor: pointer; font: inherit; font-weight: 700; min-height: 38px; padding: 7px 12px; }
.customer-media-reload:hover, .customer-media-upload-button:hover, .customer-media-camera-button:hover, .customer-media-error button:hover, .customer-media-queue button:hover { background: #e7f3fb; }
.customer-media-reload:focus-visible, .customer-media-upload-button:focus-visible, .customer-media-camera-button:focus-visible, .customer-media-remove:focus-visible, .customer-media-preview:focus-visible, .customer-media-video-cover:focus-visible, .customer-media-error button:focus-visible, .customer-media-queue button:focus-visible { outline: 3px solid #1d70a2; outline-offset: 2px; }
.customer-media-save-first, .customer-media-readonly, .customer-media-empty, .customer-media-state { background: #f2f8fc; border: 1px solid #b6d0e5; border-radius: 8px; color: #294d69; line-height: 1.55; margin: 0; padding: 11px 13px; }
.customer-media-readonly { background: #f7f9fb; color: #486581; }
.customer-media-upload { align-items: end; background: #edf7ff; border: 1px solid #8ebcda; border-radius: 9px; display: grid; gap: 10px 14px; grid-template-columns: minmax(210px, 1fr) minmax(200px, .8fr) auto; padding: 14px; }
.customer-media-upload > div { display: grid; gap: 4px; }
.customer-media-upload strong { color: #183b56; }
.customer-media-upload span { color: #486581; font-size: 13px; line-height: 1.45; }
.customer-media-note-label { color: #294d69; display: grid; font-size: 13px; gap: 5px; }
.customer-media-note-label input { border: 1px solid #7ba6c6; border-radius: 6px; color: #102a43; font: inherit; min-height: 38px; padding: 6px 8px; }
.customer-media-note-label input::placeholder { color: #486581; opacity: 1; }
.customer-media-picker { height: 1px; opacity: 0; overflow: hidden; position: absolute; width: 1px; }
.customer-media-upload-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.customer-media-upload-actions button { min-height: 44px; white-space: nowrap; }
.customer-media-upload-button { background: #1d70a2; border-color: #1d70a2; color: #fff; white-space: nowrap; }
.customer-media-upload-button:hover { background: #135a87; }
.customer-media-queue { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.customer-media-queue li { background: #f7fbfe; border: 1px solid #bfd5e6; border-radius: 8px; display: grid; gap: 6px; padding: 9px 11px; }
.customer-media-queue li > div { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.customer-media-queue strong { color: #243b53; overflow-wrap: anywhere; }
.customer-media-queue span { color: #486581; font-size: 13px; white-space: nowrap; }
.customer-media-queue progress { accent-color: #1d70a2; height: 12px; width: 100%; }
.customer-media-queue p { color: #a61b1b; margin: 0; }
.customer-media-queue p button { border-color: #a61b1b; color: #8e1515; margin-left: 6px; min-height: 30px; padding: 3px 8px; }
.customer-media-error { background: #fff3f3; border: 1px solid #c94d4d; border-radius: 8px; color: #8e1515; line-height: 1.5; margin: 0; padding: 10px 12px; }
.customer-media-error button { border-color: #a61b1b; color: #8e1515; margin-left: 6px; min-height: 30px; padding: 3px 8px; }
.customer-media-grid { display: grid; gap: 13px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.customer-media-card { background: #fff; border: 1px solid #b9d1e3; border-radius: 9px; display: grid; grid-template-rows: 158px auto auto; min-width: 0; overflow: hidden; }
.customer-media-preview, .customer-media-video-cover { border: 0; cursor: pointer; display: grid; height: 158px; padding: 0; place-items: center; width: 100%; }
.customer-media-image-cover, .customer-media-video-cover { color: #fff; gap: 5px; grid-template-rows: auto auto auto; }
.customer-media-image-cover { background-color: #15435f; background-image: linear-gradient(135deg, #235b7c, #15435f); }
.customer-media-image-cover img { height: 100%; object-fit: cover; width: 100%; }
.customer-media-image-cover > span { align-items: center; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.75); border-radius: 50%; display: grid; font-size: 27px; font-weight: 700; height: 44px; place-items: center; width: 44px; }
.customer-media-image-cover strong, .customer-media-video-cover strong { font-size: 16px; }
.customer-media-image-cover small, .customer-media-video-cover small { color: #e7f4fb; }
.customer-media-video-cover { background-color: #173f5f; background-image: linear-gradient(135deg, #173f5f, #245b7a); }
.customer-media-video-cover span { align-items: center; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.75); border-radius: 50%; display: grid; font-size: 24px; height: 44px; padding-left: 3px; place-items: center; width: 44px; }
.customer-media-card-body { display: grid; gap: 7px; min-width: 0; padding: 10px; }
.customer-media-kind { align-items: center; display: flex; justify-content: space-between; }
.customer-media-kind span { background: #dceef9; border-radius: 999px; color: #174b70; font-size: 12px; font-weight: 800; padding: 3px 8px; }
.customer-media-kind small, .customer-media-card-body > small { color: #486581; font-size: 12px; line-height: 1.45; }
.customer-media-card-body p { color: #243b53; line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.customer-media-remove { align-self: end; border-color: #b44a4a; color: #8e1515; justify-self: end; margin: 0 10px 10px; min-height: 32px; padding: 4px 10px; }
.customer-media-remove:hover { background: #fff0f0; }
.customer-media-pager { align-items: center; display: flex; flex-wrap: wrap; gap: 9px 12px; justify-content: flex-end; }
.customer-media-pager button { border: 1px solid #4a7fa7; border-radius: 7px; background: #fff; color: #1d5d89; cursor: pointer; font: inherit; font-weight: 700; min-height: 36px; padding: 6px 11px; }
.customer-media-pager button:hover:not(:disabled) { background: #e7f3fb; }
.customer-media-pager button:disabled { cursor: not-allowed; opacity: .58; }
.customer-media-pager button:focus-visible { outline: 3px solid #1d70a2; outline-offset: 2px; }
.customer-media-pager span { color: #294d69; font-size: 13px; }
.customer-media-full-image { display: block; height: auto; margin: auto; max-height: min(72vh, 760px); max-width: 100%; object-fit: contain; }
.customer-media-video { background: #102a43; display: block; height: auto; margin: auto; max-height: min(72vh, 760px); max-width: 100%; width: 100%; }

@media (max-width: 760px) {
  .customer-media { gap: 11px; margin-top: 15px; padding-top: 14px; }
  .customer-media-heading { align-items: center; }
  .customer-media-heading p { display: none; }
  .customer-media-heading h3 { font-size: 17px; margin: 0; }
  .customer-media-reload { min-height: 36px; padding: 6px 9px; }
  .customer-media-upload { grid-template-columns: 1fr; padding: 12px; }
  .customer-media-upload-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .customer-media-upload-button, .customer-media-camera-button { width: 100%; }
  .customer-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .customer-media-card { grid-template-rows: 125px auto auto; }
  .customer-media-preview, .customer-media-video-cover { height: 125px; }
  .customer-media-pager { justify-content: space-between; }
  .customer-media-pager span { flex: 1 0 100%; order: -1; }
  .customer-media-card-body { gap: 6px; padding: 8px; }
  .customer-media-card-body p { font-size: 13px; }
  .customer-media-remove { margin: 0 8px 8px; min-height: 30px; }
}
