/* Shared empty states. Scoped to the component for admin and frontend use. */
.s3-empty-state,
.s3-empty-state * {
    box-sizing: border-box;
}

.s3-empty-state {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 320px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 48px 24px;
    border: 1px solid var(--s3-admin-border, #e4e4e4);
    border-radius: var(--s3-admin-radius-panel, 8px);
    background: #fff;
    box-shadow: none;
    color: var(--s3-admin-ink, #111);
    font-family: inherit;
    text-align: center;
}

.s3-empty-state .s3-empty-state-icon {
    display: flex;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px;
    border: 1px solid var(--s3-admin-border-soft, #ececec);
    border-radius: var(--s3-admin-radius-panel, 8px);
    background: var(--s3-admin-surface-soft, #fafafa);
    color: var(--s3-admin-ink, #111);
}

.s3-empty-state .s3-empty-state-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.s3-empty-state .s3-empty-state-title {
    max-width: 100%;
    margin: 0 0 8px;
    padding: 0;
    color: var(--s3-admin-ink, #111);
    font: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    overflow-wrap: anywhere;
}

.s3-empty-state .s3-empty-state-copy {
    width: 100%;
    max-width: 440px;
    margin: 0;
    padding: 0;
    color: var(--s3-admin-muted, #666);
    font: inherit;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.s3-empty-state .s3-empty-state-action {
    display: inline-flex;
    max-width: 100%;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    margin: 24px 0 0;
    padding: 8px 16px;
    border: 1px solid #262626;
    border-radius: var(--s3-admin-radius-button, 4px);
    background: #262626;
    box-shadow: none;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.s3-empty-state .s3-empty-state-action:hover,
.s3-empty-state .s3-empty-state-action:focus,
.s3-empty-state .s3-empty-state-action:active {
    border-color: #3a3a3a;
    background: #3a3a3a;
    color: #fff;
    text-decoration: none;
}

.s3-empty-state .s3-empty-state-action:focus-visible {
    outline: 2px solid var(--s3-admin-ink, #111) !important;
    outline-offset: 3px;
}

.s3-empty-state.s3-empty-state-compact {
    min-height: 200px;
    padding: 32px 20px;
}

@media screen and (max-width: 782px) {
    .s3-empty-state {
        min-height: 280px;
        padding: 32px 20px;
    }

    .s3-empty-state .s3-empty-state-action {
        min-height: 40px;
    }
}
