@use "sass:map";
@use "../core/_index.scss" as *;
@use "../icons/_variables.scss" as *;

/// The horizontal margin of the Breadcrumb
/// @group breadcrumb
$kendo-breadcrumb-margin-x: k-spacing(0) !default;
/// The vertical margin of the Breadcrumb
/// @group breadcrumb
$kendo-breadcrumb-margin-y: k-spacing(0) !default;
/// The horizontal padding of the Breadcrumb
/// @group breadcrumb
$kendo-breadcrumb-padding-x: k-spacing(0) !default;
/// The vertical padding of the Breadcrumb
/// @group breadcrumb
$kendo-breadcrumb-padding-y: k-spacing(0) !default;

/// The width of the border around the Breadcrumb
/// @group breadcrumb
$kendo-breadcrumb-border-width: 0px !default;

/// The font family of the Breadcrumb
/// @group breadcrumb
$kendo-breadcrumb-font-family: var( --kendo-font-family, inherit ) !default;
/// The font size of the Breadcrumb

/// @group breadcrumb
$kendo-breadcrumb-font-size: var( --kendo-font-size, inherit ) !default;
/// The font size of the small breadcrumb.
/// @group breadcrumb
$kendo-breadcrumb-sm-font-size: var( --kendo-font-size, inherit ) !default;
/// The font size of the medium breadcrumb.
/// @group breadcrumb
$kendo-breadcrumb-md-font-size: var( --kendo-font-size, inherit ) !default;
/// The font size of the large breadcrumb.
/// @group breadcrumb
$kendo-breadcrumb-lg-font-size: var( --kendo-font-size, inherit ) !default;

/// The line height used along with the $kendo-font-size variable of the Breadcrumb.
/// @group breadcrumb
$kendo-breadcrumb-line-height: var( --kendo-line-height, normal ) !default;
/// The line height used along with the $kendo-font-size variable of the small breadcrumb.
/// @group breadcrumb
$kendo-breadcrumb-sm-line-height: var( --kendo-line-height, normal ) !default;
/// The line height used along with the $kendo-font-size variable of the medium breadcrumb.
/// @group breadcrumb
$kendo-breadcrumb-md-line-height: var( --kendo-line-height, normal ) !default;
/// The line height used along with the $kendo-font-size variable of the large breadcrumb.
/// @group breadcrumb
$kendo-breadcrumb-lg-line-height: var( --kendo-line-height, normal ) !default;

/// The background color of the Breadcrumb
/// @group breadcrumb
$kendo-breadcrumb-bg: var( --kendo-component-bg, initial ) !default;
/// The text color of the Breadcrumb
/// @group breadcrumb
$kendo-breadcrumb-text: get-theme-color-var( neutral-130 ) !default;
/// The border color of the Breadcrumb
/// @group breadcrumb
$kendo-breadcrumb-border: transparent !default;
/// The box shadow of the focused breadcrumb
/// @group breadcrumb
$kendo-breadcrumb-focus-shadow: 0 0 0 1px if($kendo-enable-color-system, color-mix(in srgb, k-color( border ) 16%, transparent), k-get-theme-color-var( neutral-30 )) !default;

/// The horizontal padding of the Breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-padding-x: k-spacing(2) !default;
/// The horizontal padding of the small Breadcrumb link.
/// @group breadcrumb
$kendo-breadcrumb-sm-link-padding-x: k-spacing(2) !default;
/// The horizontal padding of the medium Breadcrumb link.
/// @group breadcrumb
$kendo-breadcrumb-md-link-padding-x: $kendo-breadcrumb-link-padding-x !default;
/// The horizontal padding of the large Breadcrumb link.
/// @group breadcrumb
$kendo-breadcrumb-lg-link-padding-x: k-spacing(2) !default;

/// The vertical padding of the Breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-padding-y: k-spacing(2) !default;
/// The vertical padding of the small Breadcrumb link.
/// @group breadcrumb
$kendo-breadcrumb-sm-link-padding-y: k-spacing(1.5) !default;
/// The vertical padding of the medium Breadcrumb link.
/// @group breadcrumb
$kendo-breadcrumb-md-link-padding-y: $kendo-breadcrumb-link-padding-y !default;
/// The vertical padding of the large Breadcrumb link.
/// @group breadcrumb
$kendo-breadcrumb-lg-link-padding-y: k-spacing(2.5) !default;

/// The radius of the border around the Breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-border-radius: 0px !default;
/// The initial text color of the Breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-initial-text: inherit !default;
/// The background color of the Breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-bg: transparent !default;
/// The text color of the Breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-text: get-theme-color-var( neutral-130 ) !default;
/// The borer color of the Breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-border: transparent !default;
/// The background color of the hovered breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-hover-bg: var( --kendo-hover-bg, initial ) !default;
/// The text color of the hovered breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-hover-text: if($kendo-enable-color-system, k-color( on-app-surface ), k-get-theme-color-var( neutral-160 )) !default;
/// The border color of the hovered breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-hover-border: var( --kendo-hover-border, initial ) !default;
/// The background color of the active breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-active-bg: var( --kendo-selected-bg, initial ) !default;
/// The text color of the active breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-active-text: var( --kendo-selected-text, initial ) !default;
/// The border color of the active breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-active-border: if($kendo-enable-color-system, k-color( base-active ), k-get-theme-color-var( neutral-30 )) !default;
/// The background color of the focused breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-focus-bg: transparent !default;
/// The text color of the focused breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-focus-text: if($kendo-enable-color-system, k-color( on-app-surface ), k-get-theme-color-var( neutral-190 )) !default;
/// The box shadow of the focused breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-focus-shadow: inset 0 0 0 1px get-theme-color-var( neutral-130 ) !default;
/// The focus and hover background color of the Breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-focus-hover-bg: var( --kendo-hover-bg, initial ) !default;
/// The background color of the disabled breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-disabled-bg: none !default;
/// The text color of the disabled breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-disabled-text: var( --kendo-disabled-text, initial ) !default;
/// The border color of the disabled breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-disabled-border: none !default;
/// The background color of selected the Breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-selected-bg: var( --kendo-component-bg, initial ) !default;
/// The text color of the selected breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-selected-text: if($kendo-enable-color-system, k-color( on-app-surface ), k-get-theme-color-var( neutral-160 )) !default;
/// The border color of the selected breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-selected-border: transparent !default;
/// The font weight of the selected breadcrumb link
/// @group breadcrumb
$kendo-breadcrumb-link-selected-font-weight: var( --kendo-font-weight-bold, bold ) !default;

/// The background color of the Breadcrumb root link
/// @group breadcrumb
$kendo-breadcrumb-root-link-bg: $kendo-breadcrumb-link-bg !default;
/// The text color of the Breadcrumb root link
/// @group breadcrumb
$kendo-breadcrumb-root-link-text: $kendo-breadcrumb-link-text !default;
/// The border color of the Breadcrumb root link
/// @group breadcrumb
$kendo-breadcrumb-root-link-border: $kendo-breadcrumb-link-border !default;
/// The background color of the hovered breadcrumb root link
/// @group breadcrumb
$kendo-breadcrumb-root-link-hover-bg: $kendo-breadcrumb-link-hover-bg !default;
/// The text color of the hovered breadcrumb root link
/// @group breadcrumb
$kendo-breadcrumb-root-link-hover-text: $kendo-breadcrumb-link-hover-text !default;
/// The border color of the hovered breadcrumb root link
/// @group breadcrumb
$kendo-breadcrumb-root-link-hover-border: $kendo-breadcrumb-link-hover-border !default;
/// The background color of the active breadcrumb root link
/// @group breadcrumb
$kendo-breadcrumb-root-link-active-bg: $kendo-breadcrumb-link-active-bg !default;
/// The text color of the active breadcrumb root link
/// @group breadcrumb
$kendo-breadcrumb-root-link-active-text: $kendo-breadcrumb-link-active-text !default;
/// The border color of the active breadcrumb root link
/// @group breadcrumb
$kendo-breadcrumb-root-link-active-border: $kendo-breadcrumb-link-active-border !default;
/// The background color of the focused breadcrumb root link
/// @group breadcrumb
$kendo-breadcrumb-root-link-focus-bg: $kendo-breadcrumb-link-focus-bg !default;
/// The text color of the focused breadcrumb root link
/// @group breadcrumb
$kendo-breadcrumb-root-link-focus-text: $kendo-breadcrumb-link-focus-text !default;
/// The border color of the focused breadcrumb root link
/// @group breadcrumb
$kendo-breadcrumb-root-link-focus-shadow: $kendo-breadcrumb-link-focus-shadow !default;
/// The focus and hover background color of the Breadcrumb root link
/// @group breadcrumb
$kendo-breadcrumb-root-link-focus-hover-bg: $kendo-breadcrumb-link-focus-hover-bg !default;
/// The text color of the disabled breadcrumb root link
/// @group breadcrumb
$kendo-breadcrumb-root-link-disabled-text: $kendo-breadcrumb-link-disabled-text !default;

$kendo-breadcrumb-current-item-bg: null !default;
$kendo-breadcrumb-current-item-text: null !default;
$kendo-breadcrumb-current-item-border: null !default;

/// The vertical padding of the Breadcrumb link icon
/// @group breadcrumb
$kendo-breadcrumb-icon-link-padding-y: k-spacing(2.5) !default;
/// The vertical padding of the small Breadcrumb link icon.
/// @group breadcrumb
$kendo-breadcrumb-sm-icon-link-padding-y: k-spacing(2) !default;
/// The vertical padding of the medium Breadcrumb link icon.
/// @group breadcrumb
$kendo-breadcrumb-md-icon-link-padding-y: $kendo-breadcrumb-icon-link-padding-y !default;
/// The vertical padding of the large Breadcrumb link icon.
/// @group breadcrumb
$kendo-breadcrumb-lg-icon-link-padding-y: k-spacing(3) !default;

/// The horizontal padding of the Breadcrumb link icon
/// @group breadcrumb
$kendo-breadcrumb-icon-link-padding-x: $kendo-breadcrumb-icon-link-padding-y !default;
/// The horizontal padding of the small Breadcrumb link icon.
/// @group breadcrumb
$kendo-breadcrumb-sm-icon-link-padding-x: $kendo-breadcrumb-sm-icon-link-padding-y !default;
/// The horizontal padding of the medium Breadcrumb link icon.
/// @group breadcrumb
$kendo-breadcrumb-md-icon-link-padding-x: $kendo-breadcrumb-icon-link-padding-x !default;
/// The horizontal padding of the large Breadcrumb link icon.
/// @group breadcrumb
$kendo-breadcrumb-lg-icon-link-padding-x: $kendo-breadcrumb-lg-icon-link-padding-y !default;

// Root link spacing
$kendo-breadcrumb-link-icon-spacing: var( --kendo-icon-spacing, #{$kendo-icon-spacing} ) !default;


/// The sizes map for the Breadcrumb.
/// @group breadcrumb
$kendo-breadcrumb-sizes: (
    sm: (
        link-padding-x: $kendo-breadcrumb-sm-link-padding-x,
        link-padding-y: $kendo-breadcrumb-sm-link-padding-y,
        icon-link-padding-x: $kendo-breadcrumb-sm-icon-link-padding-x,
        icon-link-padding-y: $kendo-breadcrumb-sm-icon-link-padding-y,
        font-size: $kendo-breadcrumb-sm-font-size,
        line-height: $kendo-breadcrumb-sm-line-height
    ),
    md: (
        link-padding-x: $kendo-breadcrumb-md-link-padding-x,
        link-padding-y: $kendo-breadcrumb-md-link-padding-y,
        icon-link-padding-x: $kendo-breadcrumb-md-icon-link-padding-x,
        icon-link-padding-y: $kendo-breadcrumb-md-icon-link-padding-y,
        font-size: $kendo-breadcrumb-md-font-size,
        line-height: $kendo-breadcrumb-md-line-height
    ),
    lg: (
        link-padding-x: $kendo-breadcrumb-lg-link-padding-x,
        link-padding-y: $kendo-breadcrumb-lg-link-padding-y,
        icon-link-padding-x: $kendo-breadcrumb-lg-icon-link-padding-x,
        icon-link-padding-y: $kendo-breadcrumb-lg-icon-link-padding-y,
        font-size: $kendo-breadcrumb-lg-font-size,
        line-height: $kendo-breadcrumb-lg-line-height
    )
) !default;
