/**
 * Partner Branding Widget: base structural styles.
 * Visual styling (colors, typography, spacing) is handled by
 * Elementor's selector-based controls defined in the widget.
 */

/* ─── Card layout (default) ──────────────────────────────────── */
.codicts-branding-config {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* ─── Horizontal layout ──────────────────────────────────────── */
.codicts-branding-layout-horizontal {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}

.codicts-branding-layout-horizontal .codicts-branding-logo {
    flex-shrink: 0;
}

/* ─── Minimal layout ─────────────────────────────────────────── */
.codicts-branding-layout-minimal {
    align-items: flex-start;
}

/* ─── Logo ────────────────────────────────────────────────────── */
.codicts-branding-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.codicts-branding-logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ─── Content block ───────────────────────────────────────────── */
.codicts-branding-content {
    width: 100%;
    min-width: 0;
}

.codicts-branding-name {
    margin: 0 0 4px;
    line-height: 1.3;
}

.codicts-branding-tagline {
    margin: 0 0 8px;
    line-height: 1.5;
    opacity: 0.85;
}

.codicts-branding-description {
    margin: 0 0 12px;
    line-height: 1.6;
}

/* ─── Email ───────────────────────────────────────────────────── */
.codicts-branding-email {
    margin-bottom: 12px;
}

.codicts-branding-email a {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.codicts-branding-email a:hover {
    opacity: 0.75;
}

/* ─── Color swatches ──────────────────────────────────────────── */
.codicts-branding-colors-wrap {
    margin-top: 12px;
}

.codicts-branding-colors {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.codicts-branding-swatch-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.codicts-branding-swatch {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.codicts-branding-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.codicts-branding-swatch-label {
    font-size: 10px;
    line-height: 1;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ─── Taxonomy badges ─────────────────────────────────────────── */
.codicts-branding-taxonomy {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.codicts-branding-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
