/* ── Icon Box ──────────────────────────────────────────────────────────────── */

.dbw-ib {
    display: block;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 24px;
    box-sizing: border-box;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.dbw-ib__wrap {
    display: flex;
    gap: 20px;
}

/* ── Layout ── */
.dbw-ib--top .dbw-ib__wrap    { flex-direction: column; }
.dbw-ib--top .dbw-ib__icon-wrap { align-self: stretch; }
.dbw-ib--left .dbw-ib__wrap   { flex-direction: row; align-items: flex-start; }
.dbw-ib--right .dbw-ib__wrap  { flex-direction: row-reverse; align-items: flex-start; }

/* ── Icon base ── */
.dbw-ib__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    font-size: 22px;
    color: #7c3aed;
    background-color: #f3eeff;
    border-color: transparent;
    border-radius: 12px;
    border-width: 2px;
    border-style: solid;
    flex-shrink: 0;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dbw-ib__icon svg,
.dbw-ib__icon i { font-size: inherit; color: inherit; width: 1em; height: 1em; }

/* ════════════════════════════════
   Icon Style presets — only apply when user hasn't set their own color via controls.
   Bricks writes user controls with element-specific selectors that have higher specificity.
═══════════════════════════════ */

.dbw-ib--icon-none .dbw-ib__icon {
    color: #7c3aed;
    background-color: transparent;
    border-color: transparent;
    width: auto;
    height: auto;
    border: none;
}

.dbw-ib--icon-soft .dbw-ib__icon {
    color: #7c3aed;
    background-color: #f3eeff;
    border-color: transparent;
}

.dbw-ib--icon-filled .dbw-ib__icon {
    color: #ffffff;
    background-color: #7c3aed;
    border-color: transparent;
}

.dbw-ib--icon-outlined .dbw-ib__icon {
    color: #7c3aed;
    background-color: transparent;
    border-color: #7c3aed;
}

.dbw-ib--icon-circle .dbw-ib__icon {
    color: #7c3aed;
    background-color: #f3eeff;
    border-color: transparent;
    border-radius: 50%;
}

.dbw-ib--icon-circle:hover .dbw-ib__icon {
    transform: rotate(-6deg) scale(1.05);
}

/* ── Content ── */
.dbw-ib__content { flex: 1; min-width: 0; }

.dbw-ib__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.dbw-ib__text {
    margin: 0 0 16px;
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
}

.dbw-ib__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #7c3aed;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.18s ease, gap 0.18s ease;
}

.dbw-ib__btn:hover { color: #5b21b6; gap: 10px; text-decoration: none; }

.dbw-ib__btn-icon {
    display: inline-flex;
    font-size: 0.9em;
    transition: transform 0.18s ease;
}

.dbw-ib__btn:hover .dbw-ib__btn-icon { transform: translateX(3px); }

/* ── Hover Effects ── */
.dbw-ib--hover-lift:hover   { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.dbw-ib--hover-glow:hover   { box-shadow: 0 0 0 3px rgba(124,58,237,0.15), 0 8px 24px rgba(124,58,237,0.12); border-color: #a78bfa; }
.dbw-ib--hover-border:hover { border-color: #7c3aed; }
