/* Attachment picker: resources/views/shared/attachment-picker.blade.php */
.attachment-picker {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
}

.attachment-picker__input {
    display: none;
}

.attachment-picker__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.attachment-picker__btn--site {
    min-height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 25px;
    background-color: var(--main-color, #386465);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.attachment-picker__btn--site:hover,
.attachment-picker__btn--site:focus-visible {
    background-color: var(--main-hover, #d0a04e);
    outline: 0;
}

.attachment-picker__hint {
    color: #6c757d;
    font-size: 12px;
}

.attachment-picker__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.attachment-picker__list:empty {
    display: none;
}

.attachment-picker__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background-color: #ffffff;
}

.attachment-picker__thumb,
.attachment-picker__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.attachment-picker__thumb {
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.attachment-picker__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background-color: #f3f4f6;
}

.attachment-picker__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #333333;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-picker__size {
    flex: 0 0 auto;
    color: #6c757d;
    font-size: 12px;
}

.attachment-picker__remove {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    font-size: 16px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
}

.attachment-picker__remove:hover,
.attachment-picker__remove:focus-visible {
    background-color: #dc3545;
    color: #ffffff;
    outline: 0;
}

.attachment-picker__error:empty {
    display: none;
}

@media (max-width: 575.98px) {
    .attachment-picker__btn--site {
        width: 100%;
    }
}
