.order-attachments { padding: 24px; margin-bottom: 20px; }
.attachment-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.attachment-heading h2 { margin: 0; font-size: 18px; }
.attachment-count { color: #677890; font-size: 13px; white-space: nowrap; }
.attachment-hint { color: #738096; font-size: 13px; line-height: 1.7; margin: 0 0 16px; }
.attachment-empty { color: #8a96a6; padding: 20px 16px; border: 1px dashed #dce5ef; border-radius: 12px; font-size: 14px; background: #f8fafc; }
.attachment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 16px; margin: 16px 0; }
.attachment-item { min-width: 0; border: 1px solid #e3eaf2; border-radius: 12px; padding: 8px; background: #fff; }
.attachment-thumbnail { position: relative; display: flex; width: 100%; aspect-ratio: 4 / 3; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: #f0f4f8; overflow: hidden; cursor: zoom-in; color: #7c8a9e; font-size: 12px; }
.attachment-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attachment-pending-badge { position: absolute; bottom: 6px; left: 6px; background: #fff0d8; color: #926019; font-size: 11px; padding: 3px 7px; border-radius: 5px; }
.attachment-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #334560; margin: 9px 2px 4px; }
.attachment-item-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 2px; font-size: 11px; color: #8a97a8; }
.attachment-remove { border: 0; padding: 7px 4px; color: #c35157; background: none; font-size: 12px; cursor: pointer; }
.attachment-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.attachment-controls .attachment-hint { margin: 0; }
.attachment-add, .attachment-button { border: 1px solid #d7e1ee; background: #f5f8fd; color: #325f9e; border-radius: 9px; padding: 10px 18px; font-size: 14px; cursor: pointer; line-height: 1.5; }
.attachment-add { border-color: #c9d9f0; background: #eef4ff; font-weight: 600; }
.attachment-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.order-attachments button:disabled { cursor: default; opacity: .55; }
.order-attachments button:focus-visible { outline: 2px solid #3672d9; outline-offset: 3px; }
.attachment-error { background: #fff2f1; border-radius: 9px; color: #ad4048; font-size: 13px; line-height: 1.8; padding: 12px 14px; margin-top: 14px; overflow-wrap: anywhere; }
.attachment-removed-list { margin-top: 12px; }
.attachment-removed { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: #966923; padding: 8px; background: #fff9ee; border-radius: 8px; margin: 8px 0; }
.attachment-removed > span { overflow-wrap: anywhere; min-width: 0; }
.attachment-removed button { flex-shrink: 0; font-size: 12px; padding: 6px 9px; }
.attachment-preview { position: fixed; inset: 0; z-index: 10050; padding: 32px; display: flex; align-items: center; justify-content: center; background: rgba(12, 22, 38, .88); }
.attachment-preview-content { position: relative; max-width: 100%; text-align: center; }
.attachment-preview-content img { display: block; max-width: 85vw; max-height: 78vh; object-fit: contain; border-radius: 8px; margin: auto; }
.attachment-preview-content p { color: white; margin: 14px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.attachment-preview-close { position: absolute; top: -30px; right: -18px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffffff55; border-radius: 50%; background: #28364b; color: white; cursor: pointer; font-size: 28px; line-height: 1; }
@media (max-width: 600px) { .order-attachments { padding: 18px 16px; } .attachment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .attachment-preview { padding: 24px 16px; } .attachment-preview-content img { max-width: 88vw; } .attachment-controls .attachment-hint { flex-basis: 100%; } }
