/*
 * Carrossel de fotos do container (modal aberto ao clicar na coluna
 * "Fotos" de ContainersTable) — view solta dentro de uma Action, não
 * componente nativo do Filament, então tem folha própria (mesmo motivo
 * de cm-variaveis*/frete-endereco-chip).
 */

.ctn-carrossel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ctn-carrossel__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--app-subtle);
    border-radius: 0.5rem;
    overflow: hidden;
}

.ctn-carrossel__imagem {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ctn-carrossel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid var(--app-border);
    background-color: var(--app-surface);
    color: var(--app-text);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ctn-carrossel__nav--prev {
    left: 0.75rem;
}

.ctn-carrossel__nav--next {
    right: 0.75rem;
}

.ctn-carrossel__nav-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.ctn-carrossel__dots {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
}

.ctn-carrossel__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: var(--app-border);
    border: none;
    cursor: pointer;
    padding: 0;
}

.ctn-carrossel__dot--ativo {
    background-color: var(--app-accent);
}

/* Seletor de foto principal (dentro do modal "Fotos") */

.ctn-seletor-principal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ctn-seletor-principal__titulo {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--app-text);
}

.ctn-seletor-principal__ajuda {
    font-size: 0.75rem;
    color: var(--app-muted);
}

.ctn-seletor-principal__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.ctn-seletor-principal__item {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    border-radius: 0.5rem;
    border: 2px solid var(--app-border);
    overflow: hidden;
    cursor: pointer;
    background: transparent;
}

.ctn-seletor-principal__item--ativo {
    border-color: var(--app-accent);
}

.ctn-seletor-principal__miniatura {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ctn-seletor-principal__marca {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    display: flex;
    background-color: var(--app-surface);
    border-radius: 9999px;
}

.ctn-seletor-principal__marca-icone {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--app-accent);
}
