/*
Theme Name: BonusWave
Theme URI: https://bonuswave.local
Description: Дочерняя тема BonusWave — система лояльности для бизнеса. Расширяет DevBrothers Theme.
Author: DevBrothers
Author URI: https://devbrothers.ru
Template: devbrothers-theme
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bonuswave
*/

/* Подключаем стили родителя (шрифты, переменные, база) — на главной будет Montserrat из настроек темы */
@import url("../devbrothers-theme/style.css");

/* BonusWave overrides - cabinet uses Tailwind via cabinet.css */

/*
 * Кабинет и посадочная (/cabinet/*, /reg/*) — дизайн-система BonusWave: Fira Sans + Fira Code.
 * Перебиваем родительский Montserrat, чтобы не было конфликта.
 */
.bonuswave-cabinet-body,
.bonuswave-landing-body {
    font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.bonuswave-cabinet-body .font-heading,
.bonuswave-landing-body .font-heading,
.bonuswave-cabinet-body h1,
.bonuswave-cabinet-body h2,
.bonuswave-cabinet-body h3,
.bonuswave-landing-body h1,
.bonuswave-landing-body h2,
.bonuswave-landing-body h3 {
    font-family: "Fira Code", "Fira Sans", monospace !important;
}

/* Shortcode buttons */
.bw-btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 200ms ease;
    cursor: pointer;
}
.bw-btn-login {
    background: #6366F1;
    color: #fff;
}
.bw-btn-login:hover {
    background: #4f46e5;
    color: #fff;
}
.bw-btn-register {
    background: #10B981;
    color: #fff;
}
.bw-btn-register:hover {
    background: #059669;
    color: #fff;
}

/* Cashier: payment segmented control (doesn't rely on tailwind build) */
.bw-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border-width: 0 !important;
}

#bw-payment-segment {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
#bw-payment-segment .bw-pay-pill {
    flex: 1 1 160px; /* wraps nicely on narrow screens */
}

/* Cabinet: products import dropdown width (doesn't rely on tailwind build) */
#bw-products-import-dropdown {
    width: 340px;
    max-width: calc(100vw - 24px);
}

/* Cabinet: custom file picker */
.bw-file-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bw-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
    white-space: nowrap;
}
.bw-file-btn:hover {
    background: #f3f4f6;
    border-color: #cbd5e1;
}
.bw-file-name {
    font-size: 14px;
    color: #6b7280;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
