.swissup-attachment-drag-area {
    box-sizing: border-box;
    width: 100%;
    text-align: center;
    padding: 50px 0;
    margin: 0 0 5px;
    border: 2px dashed #ccc;
}
.swissup-attachment-drag-area h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.swissup-attachment-row {
    margin-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    position: relative;
}
.swissup-attachment-row .filename {
    opacity: .6;
    font-size: 11px;
    line-height: 16px;
    margin-top: 3px;
}
.order-attachment-content video,
.order-attachment-content audio { width: 100%; }
.order-attachment-content textarea { width: 80%; }
.swissup-attachment-row .order-attachment-preview {
    width: 25%;
    text-align: center;
}
.swissup-attachment-row .order-attachment-preview img {
    max-height: 150px;
    vertical-align: top;
}
.swissup-attachment-default-preview {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file-text"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline></svg>');
    display: block;
    width: 64px;
    height: 64px;
    margin: 15px auto;
}
.swissup-attachment-row-content { display: flex; gap: 10px; }
.swissup-attachment-row .order-attachment-content {
    flex-grow: 1;
    align-items: flex-start;
    display: flex;
    gap: 10px;
    text-align: left;
}
.rtl .swissup-attachment-row .order-attachment-content {
    text-align: right;
}
.swissup-attachment-remove,
.swissup-attachment-download {
    display: block;
    text-decoration: none;
}

.swissup-attachment-row.loading {
    cursor: wait;
    opacity: .7;
}
.swissup-attachment-row.loading * {
    cursor: wait;
}
.swissup-attachment-loader {
    opacity: 0;
    margin: 0 auto 3px;
    width: 10px;
    height: 10px;
    border: 1.5px solid #000;
    border-radius: 9999px;
    border-top-color: transparent;
    animation: 600ms linear infinite swissup-attachment-spin;
}
.swissup-attachment-row.loading .swissup-attachment-loader {
    opacity: 1;
}
@keyframes swissup-attachment-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* firecheckout fixes */
.fc-size-xs .swissup-attachment-row-content,
.fc-size-s .swissup-attachment-row-content { display: block; }
.fc-size-xs .swissup-attachment-row .order-attachment-preview,
.fc-size-s .swissup-attachment-row .order-attachment-preview {
    width: 100%;
    display: block;
    margin: 0 auto;
}
.fc-size-xs .swissup-attachment-row .order-attachment-content,
.fc-size-s .swissup-attachment-row .order-attachment-content {
    width: 100%;
    margin: 0 auto;
    padding: 10px 0;
    text-align: center;
}
.fc-size-xs .swissup-attachment-row .order-attachment-preview,
.fc-size-s .swissup-attachment-row .order-attachment-preview {
    height: auto;
}

/* backend */
#sales_order_view_tabs_swissup_attachments > span:first-child {
    display: inline-flex;
    align-items: center;
}
#sales_order_view_tabs_swissup_attachments span.count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    min-width: 20px;
    height: 20px;
    padding: 1px 3px;
    border-radius: 9999px;
    vertical-align: middle;
    background: rgba(0, 0, 0, .15);
    opacity: .5;
}
