/* ═══════════════════════════════════════════════════════════════════════════
   SBF Phone Max — Action Button Mode Picker
   Standalone reusable component.
   Used by: Setup (Page 5b) and Settings App (via window.ActionBtnCustomize.open())
═══════════════════════════════════════════════════════════════════════════ */

/* Screen container */
.actionbtn-customize-screen {
    overflow: hidden;
}

/* ── Fullscreen background — action2.png ─────────────────────────────────── */
.acb-bg {
    position: absolute;
    inset: 0;
    background-image: url('../../assets/img/action2.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* ── Stage: centered mode picker ─────────────────────────────────────────── */
.acb-stage {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    gap: 24px;
    padding-top: 50px;    /* shift content 15px down */
}

/* ── Carousel viewport + sliding track ──────────────────────────────────── */
#acb-carousel-wrap {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 100px;  /* enough for active item scaled to ~80px */
}

#acb-carousel-track {
    display: flex;
    align-items: center;
    gap: 44px;
    flex-shrink: 0;
    will-change: transform;
    /* transition set by JS */
}

.acb-carousel-item {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0.38;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.35s cubic-bezier(0.34, 1.20, 0.64, 1),
                opacity   0.28s ease;
}

.acb-carousel-item svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Silent (0) + Camera (2) — 15% kleiner */
.acb-carousel-item[data-idx="0"] svg,
.acb-carousel-item[data-idx="2"] svg {
    transform: scale(0.85);
    transform-origin: center center;
}

.acb-carousel-item.active {
    opacity: 1;
    transform: scale(1.55); /* 52px × 1.55 ≈ 80px visual */
}

/* Airplane (index 1) — nudge 5px right when active */
.acb-carousel-item[data-idx="1"].active {
    transform: scale(1.55) translateX(1.5px); /* 3px pre-scale ≈ 5px post-scale */
}

/* ── Navigation dots ─────────────────────────────────────────────────────── */
.acb-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 70px; /* shift dots + label 60px down from pill area */
}

.acb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.acb-dot.active {
    background: rgba(255, 255, 255, 0.92);
    transform: scale(1.25);
}

/* ── Mode name label ─────────────────────────────────────────────────────── */
.acb-mode-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
    letter-spacing: 0.01em;
}

/* Back button: white chevron on dark customize screen */
.actionbtn-customize-screen .setup-back-btn {
    color: #ffffff;
}

/* ── Footer: continue button ─────────────────────────────────────────────── */
.acb-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 28px 16px 28px;
    box-sizing: border-box;
}
