dialog {
    border: none;
}

a {
    text-decoration: none;
    color: initial;
}

img {
    max-width: 100%;
}

.brd-btm {
    border-bottom: 1px solid #fff;
}

.dialog-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    max-height: 80vh;
    max-width: 85vw;
    overflow-y: scroll;
    overflow-x: hidden;
    gap: 6px;
}

dialog .dialog-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

dialog .success {
    width: 200px;
    margin-top: 12px;
}

dialog[open] {
    animation: scaleOut 0.3s;
    pointer-events: inherit;
}

dialog::backdrop {
    backdrop-filter: blur(8px);
    scroll-behavior: none;
}

#loading-dialog {
    background-color: transparent;
    width: 80px;
    height: 80px;
}

#loading-dialog div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #fff;
    border-radius: 50%;
    animation: loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}

#loading-dialog div:nth-child(1) {
    animation-delay: -0.45s;
}

#loading-dialog div:nth-child(2) {
    animation-delay: -0.3s;
}

#loading-dialog div:nth-child(3) {
    animation-delay: -0.15s;
}

.p-sm {
    padding: 6px !important;
}

.p-md {
    padding: 8px !important;
}

.dashed {
    border-top: 1px var(--primary-color) dashed;
}

.flex-items,
.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.flex-items>* {
    flex: 1;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.alert {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    margin: 0 auto;
    width: calc(100% - 10%);
    color: white;
    text-align: center;
    border-radius: 5px;
    z-index: 9999;
    border: none;
    animation: slideDownAndUp 3s forwards;
}

.selected {
    border: 2px solid var(--primary-color) !important;
}

.highlight {
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.active {
    background-color: var(--primary-color);
    color: #000000;
}

.active i {
    filter: invert(0%) sepia(6%) saturate(1%) hue-rotate(156deg) brightness(103%) contrast(101%) !important;
}

.danger {
    background-color: #f43131;
    color: #e5e5e5;
}

.warning {
    background-color: #ff9800;
    color: #e5e5e5;
}

.success {
    background-color: #4caf50;
    color: #e5e5e5;
}

.accent {
    background-color: var(--primary-color);
}

.center-align {
    text-align: center;
    align-items: center;
}

.icon {
    display: inline-block;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-md {
    width: 22px;
    height: 22px;
}

.icon-lg {
    width: 26px;
    height: 26px;
}

i {
    display: block;
    width: 100%;
    height: 100%;
}

[dir='ltr'] #background,
[dir='ltr'] .search-icon,
[dir='ltr'] .clear-icon {
    left: 0;
}


[dir='rtl'] #background,
[dir='rtl'] .search-icon,
[dir='rtl'] .clear-icon {
    left: 0;
}

[dir='rtl'] .prev {
    right: 8px;
}

[dir='rtl'] .next {
    left: 8px;
}

[dir='ltr'] .prev {
    left: 8px;
}

[dir='ltr'] .next {
    right: 8px;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
}

.nav-left,
.nav-right,
.logo {
    flex: 1;
}

.nav-left {
    text-align: end;
}

.logo {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    height: 60px;
    text-transform: uppercase;
}

.center-circle {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-25%, -25%);
    background-color: #eaeaea;
    border-radius: 50%;
}

.icons .icon {
    margin-left: 15px;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    position: relative;
}


.sidebar {
    position: fixed;
    top: 0;
    width: 320px;
    height: 100%;
    background-color: #fff;
    color: #000;
    overflow-y: auto;
    transition: all 0.3s ease-in-out, left 0.3s ease-in-out;
    z-index: 999;
}

.sidebar .clear-icon {
    text-align: start;
    padding: 10px 20px;
    font-size: 24px;
    cursor: pointer;
}

.sidebar ul {
    list-style: none;
    padding: 0 8px;
    overflow-y: scroll;
    height: 85%;
}

.sidebar ul li {
    padding: 15px 20px;
    border-bottom: 1px solid var(--primary-color);
    cursor: pointer;
}

.sidebar-bottom {
    position: absolute;
    padding: 12px;
    display: flex;
    justify-content: space-around;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 0.8px solid var(--primary-color);
}

.sidebar ul li > ul {
    margin-top: 12px;
    clip-path: inset(0 0 100% 0);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    height: 0;
    padding: 0;
}

.sidebar ul li.open > ul {
    clip-path: inset(0 0 0 0);
    padding-left: 10px;
    height: auto;
}

.sidebar ul li.open > ul > li{
    border-top: 1px solid var(--primary-color);
}

.sidebar ul li > ul > li {
    border-bottom: none;
}

.sidebar ul li > li:hover {
    background-color: #f0f0f0;
}

.sidebar ul li h4> span.toggle-icon {
    float: inline-end;
    font-weight: bold;
    user-select: none;
    transition: transform 0.3s ease;
}

.sidebar ul li.open > h4 span.toggle-icon {
    transform: rotate(45deg);
}

.border-btn {
    border: 1px solid var(--accent-color);
    width: fit-content;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 20px;
}

.float-bottom {
    position: absolute;
    margin: 0 auto;
    bottom: 20%;
    right: 10%;
    left: 10%;
}

[dir='ltr'] .card, input {
    text-align: left;
}

[dir='rtl'] .card, input {
    text-align: right;
}

/** sidebar LTR **/
[dir='rtl'] .sidebar-right {
    left: -320px;
}

[dir='rtl'] .sidebar-right.open {
    left: 0;
    box-shadow: 5px 0 4px #7675753b;
}

[dir='rtl'] .sidebar-left {
    right: -320px;
}

[dir='rtl'] .sidebar-left.open {
    right: 0;
    box-shadow: -5px 0 4px #7675753b;
}

/** sidebar RTL **/
[dir='ltr'] .sidebar-right {
    right: -320px;
}

[dir='ltr'] .sidebar-right.open {
    right: 0;
    box-shadow: 5px 0 4px #7675753b;
}

[dir='ltr'] .sidebar-left {
    left: -320px;
}

[dir='ltr'] .sidebar-left.open {
    left: 0;
    box-shadow: -5px 0 4px #7675753b;
}

/** end sidebar RTL **/

[dir='rtl'] .cart-item div:last-child {
    margin-right: auto;
    align-self: center;
}

[dir='ltr'] .cart-item div:last-child {
    margin-left: auto;
    align-self: center;
}

[dir='rtl'] .side-cart button {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

[dir='ltr'] .side-cart button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

[dir='ltr'] .cart-counter {
    right: 0;
}

[dir='rtl'] .cart-counter {
    left: 0;
}

[dir='rtl'] .floating-cart {
    right: 25px;
}

[dir='ltr'] .floating-cart {
    left: 25px;
}

[dir='rtl'] .step::before {
    right: -50%;
}

[dir='ltr'] .step::before {
    left: -50%;
}

@keyframes scaleOut {
    from {
        scale: 0.5;
    }

    to {
        scale: 1;
    }
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideDownAndUp {
    0% {
        top: -80px;
    }

    25%,
    75% {
        top: 8px;
    }

    100% {
        top: -80px;
    }
}