/**
 * sw-widget.css
 * Стили для шорткода [service_widget]
 */

.sw-widget {
    --sw-bg: #f2ede2;
    --sw-dark: #3b5843;/*#1b2e1f;*/
    --sw-dark-hover: #142318;
    --sw-text: #2a2a26;
    --sw-muted: #8c8578;
    --sw-radius: 999px;

    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: inherit;
}

.sw-widget * {
    box-sizing: border-box;
}

/* Переключатель длительности */
.sw-duration-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--sw-bg);
    border-radius: var(--sw-radius);
    padding: 4px;
    width: fit-content;
    max-width: 100%;
}

.sw-duration-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--sw-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--sw-radius);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.sw-duration-btn:hover {
    color: var(--sw-text);
}

.sw-duration-btn.is-active {
    background: var(--sw-dark);
    color: #fff;
}

/* Переключатель Визит / Сертификат */
.sw-type-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--sw-bg);
    border-radius: var(--sw-radius);
    padding: 4px;
    width: fit-content;
    max-width: 100%;
}

.sw-type-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--sw-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--sw-radius);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.sw-type-btn:hover {
    color: var(--sw-text);
}

.sw-type-btn.is-active {
    border-color: var(--sw-text);
    color: var(--sw-text);
    background: #fff;
}

.sw-type-btn .sw-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
}

.sw-type-btn .sw-icon svg {
    width: 100%;
    height: 100%;
}

/* Нижняя строка: цена + кнопка действия */
.sw-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.sw-price-amount {
    font-size: 26px;
    font-weight: 600;
    color: var(--sw-text);
    line-height: 1.2;
}

.sw-price-note {
    font-size: 13px;
    color: var(--sw-muted);
    margin-top: 2px;
}

.sw-action {
    display: flex;
}

.sw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sw-dark);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    /*padding: 12px 24px;*/
    padding-block: 8px;
    padding-inline: 16px;
    border-radius: var(--sw-radius);
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.sw-btn:hover {
    background: var(--sw-dark-hover);
    color: #fff !important;
}

.sw-btn .sw-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
}

.sw-btn .sw-icon svg {
    width: 100%;
    height: 100%;
}
.duration_info{margin-top: auto}
/* Мобильная адаптация */
@media (max-width: 480px) {
    .sw-footer {
        align-items: flex-start;
    }

    .sw-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .sw-duration-btn,
    .sw-type-btn {
        padding: 7px 14px;
        font-size: 13px;
    }
}