/**
 * EMODIBOK Typography System
 *
 * Single-source typography tokens for the entire plugin.
 * Mobile: 12px
 * Tablet: 13px
 * Desktop: 15px
 */

/* ============================================
   Font Face
   ============================================ */

@font-face {
    font-family: "SamsungOne";
    src: url("../font/SamsungOne-400.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SamsungOne";
    src: url("../font/SamsungOne-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   Core Tokens
   ============================================ */

:root {
    --emodibok-font-family: "SamsungOne", "Segoe UI", Tahoma, Geneva, Verdana, Arial, sans-serif;

    --emodibok-font-size-mobile: 12px;
    --emodibok-font-size-tablet: 13px;
    --emodibok-font-size-desktop: 15px;

    --emodibok-font-size-copy: var(--emodibok-font-size-mobile);
    --emodibok-font-size-ui: var(--emodibok-font-size-mobile);

    --emodibok-line-height-copy: 1.6;
    --emodibok-line-height-ui: 1.4;
}

@media (min-width: 768px) {
    :root {
        --emodibok-font-size-copy: var(--emodibok-font-size-tablet);
        --emodibok-font-size-ui: var(--emodibok-font-size-tablet);
    }
}

@media (min-width: 1024px) {
    :root {
        --emodibok-font-size-copy: var(--emodibok-font-size-desktop);
        --emodibok-font-size-ui: var(--emodibok-font-size-desktop);
    }
}

/* ============================================
   Plugin Scope
   ============================================ */

.emodibok-admin,
.emodibok-new-booking-notice,
.emodibok-calendar-wrapper,
.emodibok-booking-wrapper,
.emodibok-widget-calendar,
.emodibok-widget-form,
.emodibok-employee-portal {
    font-family: var(--emodibok-font-family);
    font-size: var(--emodibok-font-size-copy);
    line-height: var(--emodibok-line-height-copy);
}

.emodibok-admin :where(div, p, span, small, label, a, li, ul, ol, strong, em, b, i, th, td, legend, h1, h2, h3, h4, h5, h6, button, input, select, textarea, option, code),
.emodibok-new-booking-notice :where(div, p, span, small, label, a, li, ul, ol, strong, em, b, i, th, td, legend, h1, h2, h3, h4, h5, h6, button, input, select, textarea, option, code),
.emodibok-calendar-wrapper :where(div, p, span, small, label, a, li, ul, ol, strong, em, b, i, th, td, legend, h1, h2, h3, h4, h5, h6, button, input, select, textarea, option, code),
.emodibok-booking-wrapper :where(div, p, span, small, label, a, li, ul, ol, strong, em, b, i, th, td, legend, h1, h2, h3, h4, h5, h6, button, input, select, textarea, option, code),
.emodibok-widget-calendar :where(div, p, span, small, label, a, li, ul, ol, strong, em, b, i, th, td, legend, h1, h2, h3, h4, h5, h6, button, input, select, textarea, option, code),
.emodibok-widget-form :where(div, p, span, small, label, a, li, ul, ol, strong, em, b, i, th, td, legend, h1, h2, h3, h4, h5, h6, button, input, select, textarea, option, code),
.emodibok-employee-portal :where(div, p, span, small, label, a, li, ul, ol, strong, em, b, i, th, td, legend, h1, h2, h3, h4, h5, h6, button, input, select, textarea, option, code) {
    font-family: inherit;
}

.emodibok-admin :where(div, p, span, small, label, a, li, ul, ol, strong, em, b, i, th, td, legend, code),
.emodibok-new-booking-notice :where(div, p, span, small, label, a, li, ul, ol, strong, em, b, i, th, td, legend, code),
.emodibok-calendar-wrapper :where(div, p, span, small, label, a, li, ul, ol, strong, em, b, i, th, td, legend, code),
.emodibok-booking-wrapper :where(div, p, span, small, label, a, li, ul, ol, strong, em, b, i, th, td, legend, code),
.emodibok-widget-calendar :where(div, p, span, small, label, a, li, ul, ol, strong, em, b, i, th, td, legend, code),
.emodibok-widget-form :where(div, p, span, small, label, a, li, ul, ol, strong, em, b, i, th, td, legend, code),
.emodibok-employee-portal :where(div, p, span, small, label, a, li, ul, ol, strong, em, b, i, th, td, legend, code) {
    font-size: var(--emodibok-font-size-copy);
    line-height: var(--emodibok-line-height-copy);
}

.emodibok-admin :where(h1, h2, h3, h4, h5, h6, button, input, select, textarea, option),
.emodibok-new-booking-notice :where(h1, h2, h3, h4, h5, h6, button, input, select, textarea, option),
.emodibok-calendar-wrapper :where(h1, h2, h3, h4, h5, h6, button, input, select, textarea, option),
.emodibok-booking-wrapper :where(h1, h2, h3, h4, h5, h6, button, input, select, textarea, option),
.emodibok-widget-calendar :where(h1, h2, h3, h4, h5, h6, button, input, select, textarea, option),
.emodibok-widget-form :where(h1, h2, h3, h4, h5, h6, button, input, select, textarea, option),
.emodibok-employee-portal :where(h1, h2, h3, h4, h5, h6, button, input, select, textarea, option) {
    font-size: var(--emodibok-font-size-ui);
    line-height: var(--emodibok-line-height-ui);
}

.emodibok-admin :where(button, input, select, textarea),
.emodibok-new-booking-notice :where(button, input, select, textarea),
.emodibok-calendar-wrapper :where(button, input, select, textarea),
.emodibok-booking-wrapper :where(button, input, select, textarea),
.emodibok-widget-calendar :where(button, input, select, textarea),
.emodibok-widget-form :where(button, input, select, textarea),
.emodibok-employee-portal :where(button, input, select, textarea) {
    font-family: inherit;
}

.emodibok-admin textarea,
.emodibok-new-booking-notice textarea,
.emodibok-calendar-wrapper textarea,
.emodibok-booking-wrapper textarea,
.emodibok-widget-calendar textarea,
.emodibok-widget-form textarea,
.emodibok-employee-portal textarea {
    line-height: var(--emodibok-line-height-copy);
}

/* ============================================
   Centralized typography overrides
   Forces all plugin UI to use shared 12 / 13 / 15 sizing
   ============================================ */

.emodibok-admin :where(
    .emodibok-admin__eyebrow,
    .emodibok-admin__intro,
    .emodibok-stat-card__label,
    .emodibok-stat-card__value,
    .emodibok-stat-card__value--small,
    .emodibok-admin-card__head h2,
    .emodibok-admin-card__head p,
    .emodibok-summary-item span,
    .emodibok-summary-item strong,
    .emodibok-admin-list,
    .emodibok-admin-list li,
    .emodibok-badge,
    .emodibok-settings-table th,
    .emodibok-settings-table td,
    .emodibok-settings-table .description,
    .emodibok-token-toolbar,
    .emodibok-token-toolbar code,
    .emodibok-settings-actions .button,
    .emodibok-sidebar-actions .button,
    .emodibok-toggle-button,
    .emodibok-toggle-button__text,
    .emodibok-day-pill,
    .emodibok-day-pill__input,
    .emodibok-day-toggle,
    .emodibok-day-toggle__label,
    .emodibok-day-toggle__input,
    .button,
    button,
    input,
    select,
    textarea,
    option,
    label,
    p,
    span,
    small,
    a,
    code,
    th,
    td
) {
    font-size: var(--emodibok-font-size-ui) !important;
    line-height: var(--emodibok-line-height-ui) !important;
}

.emodibok-new-booking-notice :where(
    p,
    span,
    a,
    strong,
    .button
) {
    font-size: var(--emodibok-font-size-ui) !important;
    line-height: var(--emodibok-line-height-ui) !important;
}

.emodibok-calendar-wrapper :where(
    .emodibok-selector,
    .emodibok-dayname,
    .emodibok-day-number,
    .emodibok-day-count,
    .emodibok-time-slot,
    .emodibok-slot-message,
    .emodibok-month-small,
    .button,
    button,
    input,
    select,
    textarea,
    option,
    label,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6
),
.emodibok-booking-wrapper :where(
    .emodibok-selector,
    .emodibok-dayname,
    .emodibok-day-number,
    .emodibok-day-count,
    .emodibok-time-slot,
    .emodibok-slot-message,
    .emodibok-form-container h2,
    .button,
    button,
    input,
    select,
    textarea,
    option,
    label,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6
),
.emodibok-widget-calendar :where(
    .emodibok-selector,
    .emodibok-dayname,
    .emodibok-day-number,
    .emodibok-day-count,
    .emodibok-time-slot,
    .emodibok-slot-message,
    .emodibok-month-small,
    .button,
    button,
    input,
    select,
    textarea,
    option,
    label,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6
),
.emodibok-widget-form :where(
    .emodibok-selector,
    .emodibok-time-slot,
    .emodibok-slot-message,
    .emodibok-form-container h2,
    .button,
    button,
    input,
    select,
    textarea,
    option,
    label,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6
),
.emodibok-employee-portal :where(
    .emodibok-booking-card__customer-name,
    .emodibok-employee-portal__empty,
    .emodibok-portal-message,
    .emodibok-portal-summary__value,
    .emodibok-portal-summary__label,
    .emodibok-portal-detail__label,
    .emodibok-portal-detail__value,
    .button,
    button,
    input,
    select,
    textarea,
    option,
    label,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6
),
.emodibok-modern-select :where(
    .emodibok-modern-select__trigger,
    .emodibok-modern-select__label,
    .emodibok-modern-select__option,
    .emodibok-modern-select__option-text,
    .emodibok-modern-select__empty
) {
    font-size: var(--emodibok-font-size-ui) !important;
    line-height: var(--emodibok-line-height-ui) !important;
}

.emodibok-calendar-wrapper :where(
    p,
    span,
    small,
    a,
    li,
    td,
    th,
    code
),
.emodibok-booking-wrapper :where(
    p,
    span,
    small,
    a,
    li,
    td,
    th,
    code
),
.emodibok-widget-calendar :where(
    p,
    span,
    small,
    a,
    li,
    td,
    th,
    code
),
.emodibok-widget-form :where(
    p,
    span,
    small,
    a,
    li,
    td,
    th,
    code
),
.emodibok-employee-portal :where(
    p,
    span,
    small,
    a,
    li,
    td,
    th,
    code
) {
    font-size: var(--emodibok-font-size-copy) !important;
    line-height: var(--emodibok-line-height-copy) !important;
}
