/* modeswitcher.css — базовые стили, легко переопределяемые в теме */

/* ── Welcome overlay ── */
.ms-welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ms-welcome-box {
    background: #fff;
    border-radius: 8px;
    padding: 2rem 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

.ms-welcome-title {
    margin: 0 0 .5rem;
    font-size: 1.4rem;
}

.ms-welcome-sub {
    margin: 0 0 1.5rem;
    color: #555;
    font-size: .95rem;
}

.ms-welcome-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Choice buttons inside modal ── */
.ms-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 1rem 1.25rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    min-width: 130px;
}

.ms-btn:hover,
.ms-btn:focus-visible {
    border-color: #1a73e8;
    background: #f0f6ff;
    outline: none;
}

.ms-btn__icon {
    font-size: 1.8rem;
    line-height: 1;
}

.ms-btn__label {
    font-weight: 600;
    font-size: 1rem;
}

.ms-btn__sub {
    font-size: .8rem;
    color: #666;
}

/* ── Persistent switcher pill ── */
.ms-switcher {
    display: inline-flex;
    border: 1px solid #ccc;
    border-radius: 999px;
    overflow: hidden;
    background: #f4f4f4;
}

.ms-pill {
    padding: .35rem .9rem;
    font-size: .85rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.ms-pill:hover {
    background: #e0e0e0;
}

.ms-pill--active {
    background: #1a73e8;
    color: #fff;
    border-radius: 999px;
}

/* ── Body-class-based price visibility ── */
/*
   В теме можно добавить, например:
   html.mode-b2b .price-tax-label { display: none; }
   html.mode-b2b .price { color: var(--color-b2b, #0d6efd); }
*/
