/* ==========================================================================
   BonusPlus Loyalty System - Global & Component Styles
   Light / Dark Themes with Modal Form Aesthetics
   ========================================================================== */

:root,
:root[data-bp-theme="light"],
[data-bp-theme="light"],
.bp-theme-light,
.bp-profile-container,
.bonusplus-basket-container,
.bp-modal-overlay,
.bp-modal-content,
.bp-balance-card {
    --infopush-bonusplus-site-color: #007bff;
    --infopush-bonusplus-site-color-hover: #0056b3;
    --infopush-bonusplus-text-color: #ffffff;

    /* Base Palette - Light Theme */
    --bp-bg-card: #ffffff;
    --bp-bg-body: #f8fafc;
    --bp-bg-input: #ffffff;
    --bp-bg-input-hover: #fcfdfe;
    --bp-bg-input-disabled: #f1f5f9;
    --bp-border-card: #e2e8f0;
    --bp-border-input: #cbd5e1;
    --bp-border-input-focus: var(--infopush-bonusplus-site-color, #007bff);
    --bp-border-divider: #e2e8f0;
    --bp-text-primary: #1e293b;
    --bp-text-secondary: #64748b;
    --bp-text-muted: #94a3b8;
    --bp-text-disabled: #94a3b8;

    /* Shadows & Radii */
    --bp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --bp-shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
    --bp-shadow-modal: 0 12px 30px -4px rgba(0, 0, 0, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
    --bp-btn-flat-bg: #f1f5f9;
    --bp-btn-flat-bg-hover: #e2e8f0;
    --bp-btn-flat-text: #475569;
    --bp-item-bg-hover: #f8fafc;
    --bp-modal-overlay-bg: rgba(15, 23, 42, 0.6);

    /* Badges */
    --bp-badge-credit-bg: rgba(16, 185, 129, 0.15);
    --bp-badge-credit-text: #2dad7e;
    --bp-badge-credit-border: rgba(16, 185, 129, 0.35);
    --bp-badge-debit-bg: rgba(239, 68, 68, 0.15);
    --bp-badge-debit-text: #c75757;
    --bp-badge-debit-border: rgba(239, 68, 68, 0.35);

    --bp-radius-card: 12px;
    --bp-radius-input: 8px;
    --bp-radius-btn: 8px;

    /* AirDatepicker Theme Tokens - Light */
    --adp-background-color: #ffffff;
    --adp-background-color-hover: #f1f5f9;
    --adp-background-color-active: #e2e8f0;
    --adp-color: #1e293b;
    --adp-color-secondary: #64748b;
    --adp-accent-color: var(--infopush-bonusplus-site-color, #007bff);
    --adp-color-current-date: var(--infopush-bonusplus-site-color, #007bff);
    --adp-color-other-month: #cbd5e1;
    --adp-color-other-month-hover: #94a3b8;
    --adp-color-disabled: #cbd5e1;
    --adp-border-color: #e2e8f0;
    --adp-border-color-inner: #f1f5f9;
    --adp-border-radius: 12px;
    --adp-nav-arrow-color: #64748b;
    --adp-day-name-color: var(--infopush-bonusplus-site-color, #007bff);
    --adp-day-name-color-hover: var(--infopush-bonusplus-site-color-hover, #0056b3);
    --adp-cell-border-radius: 6px;
    --adp-cell-background-color-hover: #f1f5f9;
    --adp-cell-background-color-selected: var(--infopush-bonusplus-site-color, #007bff);
    --adp-cell-background-color-selected-hover: var(--infopush-bonusplus-site-color-hover, #0056b3);
    --adp-btn-color: var(--infopush-bonusplus-site-color, #007bff);
}

:root[data-bp-theme="dark"],
[data-bp-theme="dark"],
.bp-theme-dark {
    --infopush-bonusplus-site-color: #007bff;
    --infopush-bonusplus-site-color-hover: #0056b3;
    --infopush-bonusplus-text-color: #ffffff;

    /* Base Palette - Dark Graphite/Gray Theme */
    --bp-bg-card: #252830;
    --bp-bg-body: #1a1d24;
    --bp-bg-input: #1d2027;
    --bp-bg-input-hover: #22252e;
    --bp-bg-input-disabled: #181a20;
    --bp-border-card: #383c48;
    --bp-border-input: #424754;
    --bp-border-input-focus: var(--infopush-bonusplus-site-color, #007bff);
    --bp-border-divider: #343844;
    --bp-text-primary: #f3f4f6;
    --bp-text-secondary: #a1a7b5;
    --bp-text-muted: #6e7587;
    --bp-text-disabled: #555b6a;

    /* Shadows & Radii */
    --bp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --bp-shadow-card: 0 6px 20px rgba(0, 0, 0, 0.35);
    --bp-shadow-modal: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --bp-btn-flat-bg: #2d313c;
    --bp-btn-flat-bg-hover: #373c49;
    --bp-btn-flat-text: #d1d5db;
    --bp-item-bg-hover: #2b2f3a;
    --bp-modal-overlay-bg: rgba(0, 0, 0, 0.75);

    /* Badges */
    --bp-badge-credit-bg: rgba(16, 185, 129, 0.15);
    --bp-badge-credit-text: #2dad7e;
    --bp-badge-credit-border: rgba(16, 185, 129, 0.35);
    --bp-badge-debit-bg: rgba(239, 68, 68, 0.15);
    --bp-badge-debit-text: #c75757;
    --bp-badge-debit-border: rgba(239, 68, 68, 0.35);

    --bp-radius-card: 12px;
    --bp-radius-input: 8px;
    --bp-radius-btn: 8px;

    /* AirDatepicker Theme Tokens - Dark */
    --adp-background-color: #252830;
    --adp-background-color-hover: #2e333e;
    --adp-background-color-active: #373c49;
    --adp-color: #f3f4f6;
    --adp-color-secondary: #a1a7b5;
    --adp-accent-color: var(--infopush-bonusplus-site-color, #007bff);
    --adp-color-current-date: var(--infopush-bonusplus-site-color, #007bff);
    --adp-color-other-month: #4b5263;
    --adp-color-other-month-hover: #6e7587;
    --adp-color-disabled: #3d4250;
    --adp-border-color: #383c48;
    --adp-border-color-inner: #2e333e;
    --adp-border-radius: 12px;
    --adp-nav-arrow-color: #a1a7b5;
    --adp-day-name-color: var(--infopush-bonusplus-site-color, #007bff);
    --adp-day-name-color-hover: var(--infopush-bonusplus-site-color-hover, #0056b3);
    --adp-cell-border-radius: 6px;
    --adp-cell-background-color-hover: #2e333e;
    --adp-cell-background-color-selected: var(--infopush-bonusplus-site-color, #007bff);
    --adp-cell-background-color-selected-hover: var(--infopush-bonusplus-site-color-hover, #0056b3);
    --adp-btn-color: var(--infopush-bonusplus-site-color, #007bff);
}

/* ==========================================================================
   Visibility Utilities (Strict Specificity)
   ========================================================================== */
.bp-d-none,
.mui-textfield.bp-d-none,
.mui-select.bp-d-none,
div.bp-d-none,
span.bp-d-none,
button.bp-d-none {
    display: none;
}

.bp-d-flex,
div.bp-d-flex {
    display: flex;
}

.bp-d-block,
div.bp-d-block,
span.bp-d-block {
    display: block;
}

/* ==========================================================================
   Card / Panel Styles (Modal Form Aesthetic)
   ========================================================================== */
.bp-profile-container .bp-mui-panel,
.bp-profile-container .mui-panel,
.bp-modal-content .bp-mui-panel,
.bp-modal-content .mui-panel,
.bp-card,
.bp-panel,
.bp-mui-panel {
    padding: 16px 20px;
    margin-bottom: 16px;
    border-radius: var(--bp-radius-card, 12px);
    background-color: var(--bp-bg-card, #ffffff);
    border: 1px solid var(--bp-border-card, #e2e8f0);
    box-shadow: var(--bp-shadow-card);
    box-sizing: border-box;
    color: var(--bp-text-primary, #1e293b);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.bp-profile-container .bp-mui-panel:after,
.bp-profile-container .bp-mui-panel:before,
.bp-profile-container .mui-panel:after,
.bp-profile-container .mui-panel:before,
.bp-card:after,
.bp-card:before,
.bp-mui-panel:after,
.bp-mui-panel:before {
    content: " ";
    display: table;
}
.bp-profile-container .bp-mui-panel:after,
.bp-profile-container .mui-panel:after,
.bp-card:after,
.bp-mui-panel:after {
    clear: both;
}

/* ==========================================================================
   Typography & Headings
   ========================================================================== */
.bp-profile-container legend,
.bp-modal-content legend,
.bp-profile-container .bp-mui-form legend,
.bp-profile-container .mui-form legend,
.bp-modal-content .bp-mui-form legend,
.bp-modal-content .mui-form legend,
.bp-mui-form legend,
.bp-card-title {
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 600;
    color: var(--bp-text-primary, #1e293b);
    line-height: 1.35;
    border: 0;
    transition: color 0.25s ease;
}

.bp-profile-container .bp-mui-form fieldset,
.bp-profile-container .mui-form fieldset,
.bp-modal-content .bp-mui-form fieldset,
.bp-modal-content .mui-form fieldset,
.bp-mui-form fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 14px 0;
}

/* ==========================================================================
   Form Controls: Textfields & Selects (BonusPlus Scoped)
   ========================================================================== */
.bp-modal-content .bp-mui-textfield,
.bp-modal-content .mui-textfield,
.bp-modal-content .bp-mui-select,
.bp-modal-content .mui-select {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
    position: relative;
    box-sizing: border-box;
}

.bp-profile-container .bp-mui-textfield,
.bp-profile-container .mui-textfield,
.bonusplus-basket-container .bp-mui-textfield,
.bonusplus-basket-container .mui-textfield,
.bp-card .bp-mui-textfield,
.bp-card .mui-textfield,
.bp-textfield,
.bp-mui-textfield,
.bp-profile-container .bp-mui-select,
.bp-profile-container .mui-select,
.bonusplus-basket-container .bp-mui-select,
.bonusplus-basket-container .mui-select,
.bp-card .bp-mui-select,
.bp-card .mui-select,
.bp-select,
.bp-mui-select {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    position: relative;
    box-sizing: border-box;
}

/* Label ALWAYS on top above input/select */
.bp-modal-content .bp-mui-textfield > label,
.bp-modal-content .mui-textfield > label,
.bp-modal-content .bp-mui-select > label,
.bp-modal-content .mui-select > label,
.bp-modal-content label {
    order: -1;
    display: block;
    color: var(--bp-text-secondary, #64748b);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 3px;
    padding: 0;
    position: static;
    transition: color 0.2s ease;
    text-transform: none;
}

.bp-profile-container .bp-mui-textfield > label,
.bp-profile-container .mui-textfield > label,
.bonusplus-basket-container .bp-mui-textfield > label,
.bonusplus-basket-container .mui-textfield > label,
.bp-card .bp-mui-textfield > label,
.bp-card .mui-textfield > label,
.bp-profile-container .bp-mui-select > label,
.bp-profile-container .mui-select > label,
.bonusplus-basket-container .bp-mui-select > label,
.bonusplus-basket-container .mui-select > label,
.bp-card .bp-mui-select > label,
.bp-card .mui-select > label,
.bp-mui-textfield > label,
.bp-mui-select > label,
.bp-profile-container label {
    order: -1;
    display: block;
    color: var(--bp-text-secondary, #64748b);
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
    margin-bottom: 5px;
    padding: 0;
    position: static;
    transition: color 0.2s ease;
    text-transform: none;
}

.bp-modal-content .bp-mui-textfield input,
.bp-modal-content .mui-textfield input,
.bp-profile-container .bp-mui-textfield input,
.bp-profile-container .mui-textfield input,
.bonusplus-basket-container .bp-mui-textfield input,
.bonusplus-basket-container .mui-textfield input,
.bp-card .bp-mui-textfield input,
.bp-card .mui-textfield input,
.bp-modal-content .bp-mui-textfield textarea,
.bp-modal-content .mui-textfield textarea,
.bp-profile-container .bp-mui-textfield textarea,
.bp-profile-container .mui-textfield textarea,
.bonusplus-basket-container .bp-mui-textfield textarea,
.bonusplus-basket-container .mui-textfield textarea,
.bp-card .bp-mui-textfield textarea,
.bp-card .mui-textfield textarea,
.bp-mui-textfield input,
.bp-mui-textfield textarea,
.bp-modal-content input,
.bp-profile-container input,
.bonusplus-basket-container input {
    order: 0;
    box-sizing: border-box;
    display: block;
    background-color: var(--bp-bg-input, #ffffff);
    color: var(--bp-text-primary, #1e293b);
    border: 1px solid var(--bp-border-input, #cbd5e1);
    outline: none;
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--bp-radius-input, 8px);
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    height: 38px;
    min-height: 38px;
    box-shadow: var(--bp-shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.bp-modal-content .bp-mui-select select,
.bp-modal-content .mui-select select,
.bp-profile-container .bp-mui-select select,
.bp-profile-container .mui-select select,
.bonusplus-basket-container .bp-mui-select select,
.bonusplus-basket-container .mui-select select,
.bp-card .bp-mui-select select,
.bp-card .mui-select select,
.bp-mui-select select,
.bp-modal-content select,
.bp-profile-container select {
    order: 0;
    box-sizing: border-box;
    display: block;
    background-color: var(--bp-bg-input, #ffffff);
    color: var(--bp-text-primary, #1e293b);
    border: 1px solid var(--bp-border-input, #cbd5e1);
    outline: none;
    width: 100%;
    padding: 8px 34px 8px 12px;
    border-radius: var(--bp-radius-input, 8px);
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    height: 38px;
    min-height: 38px;
    box-shadow: var(--bp-shadow-sm);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.bp-modal-content .bp-sms-timer-block {
    order: 1;
    margin-top: 2px;
    margin-bottom: 0;
    line-height: 1.1;
}

.bp-modal-content .bp-sms-timer-block {
    font-size: 11px;
    line-height: 1.1;
}

.bp-modal-content textarea,
.bp-profile-container textarea {
    min-height: 70px;
    height: auto;
    resize: vertical;
}

.bp-modal-content input:focus,
.bp-modal-content textarea:focus,
.bp-modal-content select:focus,
.bp-profile-container input:focus,
.bp-profile-container textarea:focus,
.bp-profile-container select:focus,
.bonusplus-basket-container input:focus {
    border-color: var(--infopush-bonusplus-site-color, #007bff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--infopush-bonusplus-site-color, #007bff) 22%, transparent);
    outline: none;
}

.bp-modal-content .bp-mui-textfield input:focus ~ label,
.bp-modal-content .mui-textfield input:focus ~ label,
.bp-modal-content .bp-mui-textfield textarea:focus ~ label,
.bp-modal-content .mui-textfield textarea:focus ~ label,
.bp-modal-content .bp-mui-select select:focus ~ label,
.bp-modal-content .mui-select select:focus ~ label,
.bp-profile-container .bp-mui-textfield input:focus ~ label,
.bp-profile-container .mui-textfield input:focus ~ label,
.bp-profile-container .bp-mui-textfield textarea:focus ~ label,
.bp-profile-container .mui-textfield textarea:focus ~ label,
.bp-profile-container .bp-mui-select select:focus ~ label,
.bp-profile-container .mui-select select:focus ~ label,
.bp-mui-textfield input:focus ~ label,
.bp-mui-select select:focus ~ label {
    color: var(--infopush-bonusplus-site-color, #007bff);
}

.bp-modal-content input:disabled,
.bp-modal-content input[readonly],
.bp-modal-content textarea:disabled,
.bp-modal-content textarea[readonly],
.bp-modal-content select:disabled,
.bp-profile-container input:disabled,
.bp-profile-container input[readonly],
.bp-profile-container textarea:disabled,
.bp-profile-container textarea[readonly],
.bp-profile-container select:disabled,
.bonusplus-basket-container input:disabled,
.bonusplus-basket-container input[readonly] {
    background-color: var(--bp-bg-input-disabled, #f1f5f9);
    color: var(--bp-text-disabled, #94a3b8);
    border-color: var(--bp-border-input, #cbd5e1);
    cursor: not-allowed;
}

.bp-modal-content input::placeholder,
.bp-modal-content textarea::placeholder,
.bp-profile-container input::placeholder,
.bp-profile-container textarea::placeholder,
.bonusplus-basket-container input::placeholder {
    color: var(--bp-text-muted, #94a3b8);
    opacity: 1;
}

/* All Select Option Items - Transparent / Modern Dropdown */
select option,
.bp-modal-content select option,
.bp-profile-container select option,
.bonusplus-basket-container select option,
.bp-card select option,
.bp-mui-select select option,
.mui-select select option {
    background: transparent;
    background-color: transparent;
    color: var(--bp-text-primary, inherit);
    padding: 6px 10px;
}

:root[data-bp-theme="dark"] select option,
[data-bp-theme="dark"] select option,
.bp-theme-dark select option,
.bp-modal-content.bp-theme-dark select option,
.bp-profile-container.bp-theme-dark select option {
    background: transparent;
    background-color: transparent;
    color: #f3f4f6;
}

:root[data-bp-theme="light"] select option,
[data-bp-theme="light"] select option,
.bp-theme-light select option,
.bp-modal-content.bp-theme-light select option,
.bp-profile-container.bp-theme-light select option {
    background: transparent;
    background-color: transparent;
    color: #1e293b;
}

/* ==========================================================================
   Form Controls: Checkboxes (BonusPlus Scoped)
   ========================================================================== */
.bp-modal-content .bp-mui-checkbox,
.bp-modal-content .mui-checkbox,
.bp-profile-container .bp-mui-checkbox,
.bp-profile-container .mui-checkbox,
.bonusplus-basket-container .bp-mui-checkbox,
.bonusplus-basket-container .mui-checkbox,
.bp-checkbox,
.bp-mui-checkbox {
    position: relative;
    display: block;
    margin-top: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.bp-modal-content .bp-mui-checkbox > label,
.bp-modal-content .mui-checkbox > label,
.bp-profile-container .bp-mui-checkbox > label,
.bp-profile-container .mui-checkbox > label,
.bonusplus-basket-container .bp-mui-checkbox > label,
.bonusplus-basket-container .mui-checkbox > label,
.bp-mui-checkbox > label {
    min-height: 20px;
    padding-left: 26px;
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    position: relative;
    color: var(--bp-text-primary, #1e293b);
    font-size: 13px;
    user-select: none;
    line-height: 1.4;
}

.bp-modal-content .bp-mui-checkbox > label > input[type=checkbox],
.bp-modal-content .mui-checkbox > label > input[type=checkbox],
.bp-profile-container .bp-mui-checkbox > label > input[type=checkbox],
.bp-profile-container .mui-checkbox > label > input[type=checkbox],
.bonusplus-basket-container .bp-mui-checkbox > label > input[type=checkbox],
.bonusplus-basket-container .mui-checkbox > label > input[type=checkbox],
.bp-mui-checkbox > label > input[type=checkbox] {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--infopush-bonusplus-site-color, #007bff);
    border-radius: 4px;
}

.bp-modal-content .bp-mui-checkbox input:disabled,
.bp-modal-content .mui-checkbox input:disabled,
.bp-profile-container .bp-mui-checkbox input:disabled,
.bp-profile-container .mui-checkbox input:disabled,
.bp-mui-checkbox input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ==========================================================================
   Buttons (BonusPlus Scoped - Modern Modal Form Aesthetic)
   ========================================================================== */
.bonusplus-basket-container button,
.bonusplus-basket-container [type="button"],
.bonusplus-basket-container [type="submit"],
.bonusplus-basket-container [type="reset"],
.bp-modal-content button,
.bp-modal-content [type="button"],
.bp-modal-content [type="submit"],
.bp-modal-content [type="reset"],
.bp-profile-container button,
.bp-profile-container [type="button"],
.bp-profile-container [type="submit"],
.bp-profile-container [type="reset"],
.bp-card button,
.bp-card [type="button"],
.bp-card [type="submit"],
.bp-card [type="reset"],
.bp-modal-content .bp-mui-btn,
.bp-modal-content .mui-btn,
.bp-profile-container .bp-mui-btn,
.bp-profile-container .mui-btn,
.bonusplus-basket-container .bp-mui-btn,
.bonusplus-basket-container .mui-btn,
.bp-mui-btn,
.bp-btn,
.bp-btn-primary,
.bonus-debit-btn,
.bp-add-btn,
.bp-delete-btn,
.close-bpm,
.close.close-bpm,
.close.js-close-date-modal,
.js-save-modal-date,
.js-close-date-modal,
.js-add-relative-date-btn,
.js-delete-relative-date {
    outline: none;
    outline-style: none;
    outline-width: 0;
    -webkit-tap-highlight-color: transparent;
}

.bonusplus-basket-container button::-moz-focus-inner,
.bonusplus-basket-container [type="button"]::-moz-focus-inner,
.bonusplus-basket-container [type="submit"]::-moz-focus-inner,
.bonusplus-basket-container [type="reset"]::-moz-focus-inner,
.bp-modal-content button::-moz-focus-inner,
.bp-modal-content [type="button"]::-moz-focus-inner,
.bp-modal-content [type="submit"]::-moz-focus-inner,
.bp-modal-content [type="reset"]::-moz-focus-inner,
.bp-profile-container button::-moz-focus-inner,
.bp-profile-container [type="button"]::-moz-focus-inner,
.bp-profile-container [type="submit"]::-moz-focus-inner,
.bp-profile-container [type="reset"]::-moz-focus-inner,
.bp-modal-content .bp-mui-btn::-moz-focus-inner,
.bp-modal-content .mui-btn::-moz-focus-inner,
.bp-profile-container .bp-mui-btn::-moz-focus-inner,
.bp-profile-container .mui-btn::-moz-focus-inner,
.bp-mui-btn::-moz-focus-inner {
    border: 0;
    border-style: none;
    padding: 0;
    outline: none;
}

.bonusplus-basket-container button:-moz-focusring,
.bonusplus-basket-container [type="button"]:-moz-focusring,
.bonusplus-basket-container [type="submit"]:-moz-focusring,
.bp-modal-content button:-moz-focusring,
.bp-modal-content [type="button"]:-moz-focusring,
.bp-modal-content [type="submit"]:-moz-focusring,
.bp-profile-container button:-moz-focusring,
.bp-profile-container [type="button"]:-moz-focusring,
.bp-profile-container [type="submit"]:-moz-focusring,
.bp-modal-content .bp-mui-btn:-moz-focusring,
.bp-modal-content .mui-btn:-moz-focusring,
.bp-profile-container .bp-mui-btn:-moz-focusring,
.bp-profile-container .mui-btn:-moz-focusring,
.bp-mui-btn:-moz-focusring {
    outline: none;
}

.bp-modal-content .bp-mui-btn,
.bp-modal-content .mui-btn,
.bp-profile-container .bp-mui-btn,
.bp-profile-container .mui-btn,
.bonusplus-basket-container .bp-mui-btn,
.bonusplus-basket-container .mui-btn,
.bp-card .bp-mui-btn,
.bp-card .mui-btn,
.bp-mui-btn,
.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    color: var(--bp-text-primary, #1e293b);
    background-color: var(--bp-btn-flat-bg, #f1f5f9);
    height: 38px;
    padding: 0 18px;
    margin: 4px 0;
    border: 1px solid transparent;
    border-radius: var(--bp-radius-btn, 8px);
    cursor: pointer;
    touch-action: manipulation;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    font-family: inherit;
    text-decoration: none;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
}

.bp-modal-content .bp-mui-btn:hover,
.bp-modal-content .mui-btn:hover,
.bp-profile-container .bp-mui-btn:hover,
.bp-profile-container .mui-btn:hover,
.bonusplus-basket-container .bp-mui-btn:hover,
.bonusplus-basket-container .mui-btn:hover,
.bp-mui-btn:hover,
.bp-btn:hover {
    background-color: var(--bp-btn-flat-bg-hover, #e2e8f0);
    color: var(--bp-text-primary, #1e293b);
    text-decoration: none;
    outline: none;
}

.bp-modal-content .bp-mui-btn.bp-mui-btn--flat,
.bp-modal-content .mui-btn.mui-btn--flat,
.bp-profile-container .bp-mui-btn.bp-mui-btn--flat,
.bp-profile-container .mui-btn.mui-btn--flat,
.bonusplus-basket-container .bp-mui-btn.bp-mui-btn--flat,
.bonusplus-basket-container .mui-btn.mui-btn--flat,
.bp-mui-btn.bp-mui-btn--flat,
.bp-btn.bp-btn--flat {
    background-color: var(--bp-btn-flat-bg, #f1f5f9);
    color: var(--bp-btn-flat-text, #475569);
    border: 1px solid var(--bp-border-input, #cbd5e1);
    outline: none;
}

.bp-modal-content .bp-mui-btn.bp-mui-btn--flat:hover,
.bp-modal-content .mui-btn.mui-btn--flat:hover,
.bp-modal-content .bp-mui-btn.bp-mui-btn--flat:focus,
.bp-modal-content .mui-btn.mui-btn--flat:focus,
.bp-modal-content .bp-mui-btn.bp-mui-btn--flat:active,
.bp-modal-content .mui-btn.mui-btn--flat:active,
.bp-modal-content .bp-mui-btn.bp-mui-btn--flat:focus-visible,
.bp-modal-content .mui-btn.mui-btn--flat:focus-visible,
.bp-profile-container .bp-mui-btn.bp-mui-btn--flat:hover,
.bp-profile-container .mui-btn.mui-btn--flat:hover,
.bp-profile-container .bp-mui-btn.bp-mui-btn--flat:focus,
.bp-profile-container .mui-btn.mui-btn--flat:focus,
.bp-profile-container .bp-mui-btn.bp-mui-btn--flat:active,
.bp-profile-container .mui-btn.mui-btn--flat:active,
.bp-profile-container .bp-mui-btn.bp-mui-btn--flat:focus-visible,
.bp-profile-container .mui-btn.mui-btn--flat:focus-visible {
    background-color: var(--bp-btn-flat-bg-hover, #e2e8f0);
    color: var(--bp-text-primary, #1e293b);
    outline: none;
}

.bp-modal-content .bp-mui-btn--raised,
.bp-modal-content .mui-btn--raised,
.bp-profile-container .bp-mui-btn--raised,
.bp-profile-container .mui-btn--raised,
.bonusplus-basket-container .bp-mui-btn--raised,
.bonusplus-basket-container .mui-btn--raised,
.bp-modal-content .bp-mui-btn--primary,
.bp-modal-content .mui-btn--primary,
.bp-profile-container .bp-mui-btn--primary,
.bp-profile-container .mui-btn--primary,
.bonusplus-basket-container .bp-mui-btn--primary,
.bonusplus-basket-container .mui-btn--primary,
.bp-mui-btn--raised,
.bp-mui-btn--primary,
.bp-btn-primary,
.bonus-debit-btn,
.bp-modal-content button.bp-btn-primary,
.bonusplus-basket-container button.bonus-debit-btn {
    color: var(--infopush-bonusplus-text-color, #ffffff);
    background-color: var(--infopush-bonusplus-site-color, #007bff);
    border: none;
    outline: none;
    box-shadow: none;
}

.bp-modal-content .bp-mui-btn--raised:hover,
.bp-modal-content .mui-btn--raised:hover,
.bp-modal-content .bp-mui-btn--primary:hover,
.bp-modal-content .mui-btn--primary:hover,
.bp-profile-container .bp-mui-btn--raised:hover,
.bp-profile-container .mui-btn--raised:hover,
.bp-profile-container .bp-mui-btn--primary:hover,
.bp-profile-container .mui-btn--primary:hover,
.bonusplus-basket-container .bp-mui-btn--raised:hover,
.bonusplus-basket-container .mui-btn--raised:hover,
.bonusplus-basket-container .bp-mui-btn--primary:hover,
.bonusplus-basket-container .mui-btn--primary:hover,
.bp-mui-btn--raised:hover,
.bp-mui-btn--primary:hover,
.bp-btn-primary:hover,
.bonus-debit-btn:hover,
.bp-modal-content button.bp-btn-primary:hover,
.bonusplus-basket-container button.bonus-debit-btn:hover,
.bp-modal-content .bp-mui-btn--raised:focus,
.bp-modal-content .mui-btn--raised:focus,
.bp-modal-content .bp-mui-btn--primary:focus,
.bp-modal-content .mui-btn--primary:focus,
.bp-profile-container .bp-mui-btn--raised:focus,
.bp-profile-container .mui-btn--raised:focus,
.bp-profile-container .bp-mui-btn--primary:focus,
.bp-profile-container .mui-btn--primary:focus,
.bonusplus-basket-container .bp-mui-btn--raised:focus,
.bonusplus-basket-container .mui-btn--raised:focus,
.bonusplus-basket-container .bp-mui-btn--primary:focus,
.bonusplus-basket-container .mui-btn--primary:focus,
.bp-btn-primary:focus,
.bonus-debit-btn:focus,
.bp-btn-primary:focus-visible,
.bonus-debit-btn:focus-visible {
    color: var(--infopush-bonusplus-text-color, #ffffff);
    background-color: var(--infopush-bonusplus-site-color-hover, #0056b3);
    box-shadow: none;
    transform: none;
    outline: none;
}

.bp-modal-content .bp-mui-btn--raised:active,
.bp-modal-content .mui-btn--raised:active,
.bp-modal-content .bp-mui-btn--primary:active,
.bp-modal-content .mui-btn--primary:active,
.bp-profile-container .bp-mui-btn--raised:active,
.bp-profile-container .mui-btn--raised:active,
.bp-profile-container .bp-mui-btn--primary:active,
.bp-profile-container .mui-btn--primary:active,
.bonusplus-basket-container .bp-mui-btn--raised:active,
.bonusplus-basket-container .mui-btn--raised:active,
.bonusplus-basket-container .bp-mui-btn--primary:active,
.bonusplus-basket-container .mui-btn--primary:active,
.bp-btn-primary:active,
.bonus-debit-btn:active,
.bp-modal-content button.bp-btn-primary:active,
.bonusplus-basket-container button.bonus-debit-btn:active {
    color: var(--infopush-bonusplus-text-color, #ffffff);
    background-color: var(--infopush-bonusplus-site-color-hover, #0056b3);
    transform: none;
    box-shadow: none;
    outline: none;
}

.bp-modal-content .bp-mui-btn.bp-mui--is-disabled,
.bp-modal-content .mui-btn.mui--is-disabled,
.bp-modal-content .bp-mui-btn:disabled,
.bp-modal-content .mui-btn:disabled,
.bp-profile-container .bp-mui-btn.bp-mui--is-disabled,
.bp-profile-container .mui-btn.mui--is-disabled,
.bp-profile-container .bp-mui-btn:disabled,
.bp-profile-container .mui-btn:disabled,
.bp-mui-btn.bp-mui--is-disabled,
.bp-mui-btn:disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.55;
    box-shadow: none;
    transform: none;
    outline: none;
}

.bp-modal-content .bp-mui-btn + .bp-mui-btn,
.bp-modal-content .mui-btn + .mui-btn,
.bp-profile-container .bp-mui-btn + .bp-mui-btn,
.bp-profile-container .mui-btn + .mui-btn,
.bp-mui-btn + .bp-mui-btn {
    margin-left: 8px;
}

.bp-modal-content .mui-btn--raised:hover,
.bp-modal-content .mui-btn--primary:hover,
.bp-profile-container .mui-btn--raised:hover,
.bp-profile-container .mui-btn--primary:hover,
.bonusplus-basket-container .mui-btn--raised:hover,
.bonusplus-basket-container .mui-btn--primary:hover,
.bp-btn-primary:hover,
.bonus-debit-btn:hover,
.bp-modal-content button.bp-btn-primary:hover,
.bonusplus-basket-container button.bonus-debit-btn:hover,
.bp-modal-content .mui-btn--raised:focus,
.bp-modal-content .mui-btn--primary:focus,
.bp-profile-container .mui-btn--raised:focus,
.bp-profile-container .mui-btn--primary:focus,
.bonusplus-basket-container .mui-btn--raised:focus,
.bonusplus-basket-container .mui-btn--primary:focus,
.bp-btn-primary:focus,
.bonus-debit-btn:focus,
.bp-btn-primary:focus-visible,
.bonus-debit-btn:focus-visible {
    color: var(--infopush-bonusplus-text-color, #ffffff);
    background-color: var(--infopush-bonusplus-site-color-hover, #0056b3);
    box-shadow: none;
    transform: none;
    outline: none;
}

.bp-modal-content .mui-btn--raised:active,
.bp-modal-content .mui-btn--primary:active,
.bp-profile-container .mui-btn--raised:active,
.bp-profile-container .mui-btn--primary:active,
.bonusplus-basket-container .mui-btn--raised:active,
.bonusplus-basket-container .mui-btn--primary:active,
.bp-btn-primary:active,
.bonus-debit-btn:active,
.bp-modal-content button.bp-btn-primary:active,
.bonusplus-basket-container button.bonus-debit-btn:active {
    color: var(--infopush-bonusplus-text-color, #ffffff);
    background-color: var(--infopush-bonusplus-site-color-hover, #0056b3);
    transform: none;
    box-shadow: none;
    outline: none;
}

.bp-modal-content .mui-btn.mui--is-disabled,
.bp-modal-content .mui-btn:disabled,
.bp-profile-container .mui-btn.mui--is-disabled,
.bp-profile-container .mui-btn:disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.55;
    box-shadow: none;
    transform: none;
    outline: none;
}

.bp-modal-content .mui-btn + .mui-btn,
.bp-profile-container .mui-btn + .mui-btn {
    margin-left: 8px;
}

/* ==========================================================================
   Air Datepicker Full Theme Overrides (Light & Dark)
   ========================================================================== */
.bp-air-datepicker,
.air-datepicker {
    background: var(--adp-background-color, #ffffff);
    border: 1px solid var(--adp-border-color, #e2e8f0);
    color: var(--adp-color, #1e293b);
    border-radius: var(--adp-border-radius, 12px);
    box-shadow: var(--bp-shadow-modal);
    font-family: inherit;
    z-index: 100005;
}

.bp-air-datepicker-nav,
.air-datepicker-nav {
    border-bottom: 1px solid var(--adp-border-color-inner, #e2e8f0);
    padding: 6px;
}

.bp-air-datepicker-nav--title,
.air-datepicker-nav--title {
    color: var(--adp-color, #1e293b);
    font-weight: 600;
}

.bp-air-datepicker-nav--title i,
.air-datepicker-nav--title i {
    color: var(--adp-color-secondary, #64748b);
}

.bp-air-datepicker-nav--title:hover,
.air-datepicker-nav--title:hover {
    background: var(--adp-background-color-hover, #f1f5f9);
}

.bp-air-datepicker-nav--action,
.air-datepicker-nav--action {
    border-radius: 6px;
}

.bp-air-datepicker-nav--action:hover,
.air-datepicker-nav--action:hover {
    background: var(--adp-background-color-hover, #f1f5f9);
}

.bp-air-datepicker-nav--action svg path,
.air-datepicker-nav--action svg path {
    stroke: var(--adp-nav-arrow-color, #64748b);
}

.bp-air-datepicker-body--day-name,
.air-datepicker-body--day-name {
    color: var(--adp-day-name-color, var(--infopush-bonusplus-site-color, #007bff));
    font-weight: 600;
    font-size: 11px;
}

.bp-air-datepicker-cell,
.air-datepicker-cell {
    color: var(--adp-color, #1e293b);
    border-radius: var(--adp-cell-border-radius, 6px);
    transition: background 0.15s ease, color 0.15s ease;
}

.bp-air-datepicker-cell.-other-month-,
.bp-air-datepicker-cell.-other-decade-,
.air-datepicker-cell.-other-month-,
.air-datepicker-cell.-other-decade- {
    color: var(--adp-color-other-month, #4b5263);
}

.bp-air-datepicker-cell.-other-month-:hover,
.bp-air-datepicker-cell.-other-decade-:hover,
.air-datepicker-cell.-other-month-:hover,
.air-datepicker-cell.-other-decade-:hover {
    color: var(--adp-color-other-month-hover, #6e7587);
}

.bp-air-datepicker-cell.-disabled-,
.air-datepicker-cell.-disabled- {
    color: var(--adp-color-disabled, #3d4250);
    cursor: not-allowed;
}

.bp-air-datepicker-cell.-focus-,
.air-datepicker-cell.-focus- {
    background: var(--adp-cell-background-color-hover, #2e333e);
    color: var(--adp-color, #f3f4f6);
}

.bp-air-datepicker-cell.-current-,
.air-datepicker-cell.-current- {
    color: var(--infopush-bonusplus-site-color, #007bff);
    font-weight: 700;
}

.bp-air-datepicker-cell.-current-.-focus-,
.air-datepicker-cell.-current-.-focus- {
    color: var(--infopush-bonusplus-site-color, #007bff);
    background: var(--adp-cell-background-color-hover, #2e333e);
}

.bp-air-datepicker-cell.-selected-,
.air-datepicker-cell.-selected- {
    background: var(--infopush-bonusplus-site-color, #007bff);
    color: var(--infopush-bonusplus-text-color, #ffffff);
    font-weight: 600;
}

.bp-air-datepicker-cell.-selected-.-focus-,
.bp-air-datepicker-cell.-selected-:hover,
.air-datepicker-cell.-selected-.-focus-,
.air-datepicker-cell.-selected-:hover {
    background: var(--infopush-bonusplus-site-color-hover, #0056b3);
    color: var(--infopush-bonusplus-text-color, #ffffff);
}

.bp-air-datepicker-cell.-selected-.-current-,
.air-datepicker-cell.-selected-.-current- {
    background: var(--infopush-bonusplus-site-color, #007bff);
    color: var(--infopush-bonusplus-text-color, #ffffff);
}

.bp-air-datepicker--pointer:after,
.air-datepicker--pointer:after {
    background: var(--adp-background-color, #ffffff);
    border-top: 1px solid var(--adp-border-color, #e2e8f0);
    border-right: 1px solid var(--adp-border-color, #e2e8f0);
}

/* ==========================================================================
   Widget Loader & Spinner (Universal)
   ========================================================================== */
.bp-basket-wrapper,
.bonusplus-basket-container,
#js-bonus-widget,
.bp-balance-card {
    position: relative;
    overflow: hidden;
}

.bp-widget-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    background-color: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-sizing: border-box;
}

:root[data-bp-theme="dark"] .bp-widget-loader,
[data-bp-theme="dark"] .bp-widget-loader,
.bp-theme-dark .bp-widget-loader,
[data-theme="dark"] .bp-widget-loader,
.bonusplus-basket-container.bp-theme-dark .bp-widget-loader,
.bp-balance-card.bp-theme-dark .bp-widget-loader {
    background-color: rgba(37, 40, 48, 0.82);
}

.bonusplus-basket-container.bp-loading > .bp-widget-loader,
#js-bonus-widget.bp-loading > .bp-widget-loader,
.bp-balance-card.bp-loading > .bp-widget-loader {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bp-spinner {
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    border: 2.5px solid color-mix(in srgb, var(--infopush-bonusplus-site-color, #007bff) 22%, transparent);
    border-top-color: var(--infopush-bonusplus-site-color, #007bff);
    border-radius: 50%;
    animation: bp-spinner-rot 0.65s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes bp-spinner-rot {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Locked / Readonly phone inputs */
.bp-phone-lock-hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.7;
}

.bp-registration-limit-timer {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-top: 5px;
    color: #ef4444;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

.bp-registration-change-phone {
    display: block;
    width: fit-content;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--infopush-bonusplus-site-color, #007bff);
    font: inherit;
    font-size: 12px;
    line-height: 1.3;
}

.bp-registration-change-phone:disabled {
    cursor: wait;
    opacity: 0.55;
}

.bp-registration-limit-line {
    display: block;
}

[data-bp-theme="dark"] .bp-registration-limit-timer,
.bp-theme-dark .bp-registration-limit-timer {
    color: #f87171;
}

.bp-mui-textfield input[readonly],
.bp-modal-content input[readonly],
.bp-input-readonly {
    background-color: var(--bp-bg-input-disabled, #f1f5f9);
    cursor: not-allowed;
    opacity: 0.88;
    user-select: none;
}

[data-bp-theme="dark"] .bp-mui-textfield input[readonly],
[data-bp-theme="dark"] .bp-modal-content input[readonly],
[data-bp-theme="dark"] .bp-input-readonly {
    background-color: #1e2128;
    color: #94a3b8;
}
