.footer-heading {
    padding-inline-start: 0.8rem;
}

.footer-links {
    padding-inline-start: 0.9rem;
}

.account-dropdown {
    inset-inline-end: 0;
    top: 2.5rem;
}

.dropdown-caret {
    inset-inline-start: 50%;
    top: -3%;
    transform: rotate(45deg);
}

html[dir="rtl"] body {
    font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif !important;
    line-height: 1.8;
}

html[dir="rtl"] .text-left,
html[dir="rtl"] .text-sm-left {
    text-align: start !important;
}

html[dir="rtl"] #footer h6 {
    padding-left: 0 !important;
    padding-inline-start: 0.8rem;
}

html[dir="rtl"] #footer h6 + div {
    padding-left: 0 !important;
    padding-inline-start: 0.9rem;
}

html[dir="rtl"] .border-lg-end {
    border-right: 0 !important;
    border-inline-end: 1px solid;
}

html[dir="rtl"] .placeholder {
    left: auto;
    inset-inline-start: 10px;
}

html[dir="rtl"] .border-radius-left-8px {
    border-radius: 0 8px 8px 0;
}

html[dir="rtl"] .border-radius-right-8px {
    border-radius: 8px 0 0 8px;
}

@media (min-width: 992px) {
    html[dir="rtl"] .border-radius-left-8px-lg {
        border-radius: 0 8px 8px 0;
    }

    html[dir="rtl"] .border-radius-right-8px-lg {
        border-radius: 8px 0 0 8px;
    }
}

html[dir="rtl"] .dropdown-menu > span.position-absolute {
    left: auto !important;
    inset-inline-start: 10%;
}

html[dir="rtl"] #Account + .dropdown-menu,
html[dir="rtl"] .navbar-nav .dropdown-menu[style*="left"] {
    left: auto !important;
    inset-inline-end: 0;
}

html[dir="rtl"] .language-menu {
    min-width: 9rem;
    text-align: start;
}

html[dir="rtl"] .form-check {
    padding-left: 0;
    padding-right: 1.5em;
}

html[dir="rtl"] .form-check > .form-check-input {
    float: right;
    margin-left: 0;
    margin-right: -1.5em;
}

html[dir="rtl"] .contact-checks > [class*="col"] {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

html[dir="rtl"] .contact-checks .form-check-input {
    float: none !important;
    position: static !important;
    margin: 0.3em 0 0 0 !important;
    flex: 0 0 auto;
}

html[dir="rtl"] .contact-checks .form-check-label {
    flex: 1 1 auto;
}

html[dir="rtl"] .accordion-button::after {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="search"],
html[dir="rtl"] input[dir="ltr"],
html[dir="rtl"] .ltr-field {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] input[type="email"]:not(:placeholder-shown),
html[dir="rtl"] input[type="search"]:not(:placeholder-shown),
html[dir="rtl"] input[dir="ltr"]:not(:placeholder-shown),
html[dir="rtl"] .ltr-field:not(:placeholder-shown) {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] .navbar-brand img {
    margin-inline-end: 0.25rem;
}

html[dir="rtl"] #my-nav .input-group {
    flex-wrap: nowrap;
}

html[dir="rtl"] #my-nav .input-group > .form-control {
    min-width: 9.5rem;
    width: 11rem;
    flex: 1 1 auto;
}

@media (max-width: 576px) {
    html[dir="rtl"] .pin-plus-image {
        left: auto;
        right: -40vw;
    }

    html[dir="rtl"] .pin-play-image {
        right: auto;
        left: -40vw;
    }
}

@media (min-width: 420px) {
    html[dir="rtl"] .pin-plus-image {
        left: auto;
        right: -35vw;
    }

    html[dir="rtl"] .pin-play-image {
        right: auto;
        left: -35vw;
    }
}

@media (min-width: 520px) {
    html[dir="rtl"] .pin-plus-image {
        left: auto;
        right: -30vw;
    }

    html[dir="rtl"] .pin-play-image {
        right: auto;
        left: -30vw;
    }
}

@media (min-width: 576px) {
    html[dir="rtl"] .pin-plus-image {
        left: auto;
        right: -28vw;
    }

    html[dir="rtl"] .pin-play-image {
        right: auto;
        left: -28vw;
    }
}

@media (min-width: 768px) {
    html[dir="rtl"] .pin-plus-image {
        left: auto;
        right: -22vw;
    }

    html[dir="rtl"] .pin-play-image {
        right: auto;
        left: -22vw;
    }
}

@media (min-width: 992px) {
    html[dir="rtl"] .pin-plus-image {
        left: auto;
        right: -18vw;
    }

    html[dir="rtl"] .pin-play-image {
        right: auto;
        left: -18vw;
    }
}

@media (min-width: 1200px) {
    html[dir="rtl"] .pin-plus-image {
        left: auto;
        right: -20vw;
    }

    html[dir="rtl"] .pin-play-image {
        right: auto;
        left: -20vw;
    }
}

@media (min-width: 1300px) {
    html[dir="rtl"] .pin-plus-image {
        left: auto;
        right: -22vw;
    }

    html[dir="rtl"] .pin-play-image {
        right: auto;
        left: -22vw;
    }
}

@media (min-width: 1400px) {
    html[dir="rtl"] .pin-plus-image {
        left: auto;
        right: -18vw;
    }

    html[dir="rtl"] .pin-play-image {
        right: auto;
        left: -18vw;
    }
}

html[dir="rtl"] #search-bar > div > span {
    background-position: left center;
}

@media (min-width: 500px) {
    html[dir="rtl"] #search-bar > div > span {
        left: auto;
        right: 55.6%;
    }
}

html[dir="rtl"] #txt-rsl-code {
    padding-inline-end: 48px !important;
    text-align: center;
}

@media (max-width: 500px) {
    html[dir="rtl"] #search-bar > div > span {
        right: auto !important;
        left: auto !important;
        inset-inline-end: 8% !important;
    }
}

html[dir="rtl"] body,
html[dir="rtl"] .accordion-button,
html[dir="rtl"] .dropdown-menu,
html[dir="rtl"] .nav-link {
    text-align: start;
}

html[dir="rtl"] .text-start,
html[dir="rtl"] .text-left {
    text-align: start !important;
}

html[dir="rtl"] .text-right {
    text-align: end !important;
}

html[dir="rtl"] .text-end {
    text-align: end !important;
}

html[dir="rtl"] .float-start,
html[dir="rtl"] .float-left {
    float: right;
}

html[dir="rtl"] .float-end,
html[dir="rtl"] .float-right {
    float: left;
}

html[dir="rtl"] ul,
html[dir="rtl"] ol {
    padding-left: 0;
    padding-right: 2rem;
}

html[dir="rtl"] .navbar-nav,
html[dir="rtl"] .dropdown-menu,
html[dir="rtl"] .nav,
html[dir="rtl"] .list-group,
html[dir="rtl"] .pagination {
    padding-right: 0;
}

html[dir="rtl"] .border-start {
    border-left: 0 !important;
    border-right: 1px solid #dee2e6 !important;
}

html[dir="rtl"] .border-start.border-2,
html[dir="rtl"] .border-start.border {
    border-right-width: 2px !important;
    border-left-width: 0 !important;
}

html[dir="rtl"] .border-end {
    border-right: 0 !important;
    border-left: 1px solid #dee2e6 !important;
}

html[dir="rtl"] .input-group > .form-control.border-end-0 {
    border-right: 2px solid #2940b0 !important;
    border-left: 0 !important;
    border-radius: 0 8px 8px 0 !important;
}

html[dir="rtl"] .input-group > .input-group-text.border-start-0 {
    border-left: 2px solid #2940b0 !important;
    border-right: 0 !important;
    border-radius: 8px 0 0 8px !important;
}

html[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
html[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
html[dir="rtl"] .ms-3 { margin-left: 0 !important; margin-right: 1rem !important; }
html[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
html[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
html[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
html[dir="rtl"] .me-auto { margin-right: 0 !important; margin-left: auto !important; }
html[dir="rtl"] .ms-2.me-1 { margin-right: 0.5rem !important; margin-left: 0.25rem !important; }
html[dir="rtl"] .ps-1 { padding-left: 0 !important; padding-right: 0.25rem !important; }
html[dir="rtl"] .ps-3 { padding-left: 0 !important; padding-right: 1rem !important; }
html[dir="rtl"] .pe-3 { padding-right: 0 !important; padding-left: 1rem !important; }
html[dir="rtl"] .pe-4 { padding-right: 0 !important; padding-left: 1.5rem !important; }
html[dir="rtl"] .mr-5px { margin-right: 0 !important; margin-left: 5px !important; }

html[dir="rtl"] .form-select {
    padding: 0.375rem 0.75rem 0.375rem 2.25rem;
    background-position: left 0.75rem center;
}

html[dir="rtl"] .accordion-button {
    display: block;
    text-align: right;
    position: relative;
    padding-left: 2.75rem;
    padding-right: 1.25rem;
}

html[dir="rtl"] .accordion-button::after {
    position: absolute;
    left: 1.15rem;
    right: auto;
    top: 1.2rem;
    margin: 0;
}

html[dir="rtl"] .modal-header .btn-close {
    margin-left: -0.5rem;
    margin-right: auto;
}

html[dir="rtl"] .navbar-nav .dropdown-menu {
    text-align: start;
}

html[dir="rtl"] #navbarScroll > ul.mx-auto .dropdown-menu {
    left: auto !important;
    right: 0;
}

html[dir="rtl"] .dropdown-menu > span.position-absolute {
    left: auto !important;
    right: 10%;
}

@media (min-width: 576px) {
    html[dir="rtl"] .text-sm-start,
    html[dir="rtl"] .text-sm-left {
        text-align: start !important;
    }

    html[dir="rtl"] .text-sm-end,
    html[dir="rtl"] .text-sm-right {
        text-align: end !important;
    }

    html[dir="rtl"] .ms-sm-5 {
        margin-left: 0 !important;
        margin-right: 3rem !important;
    }
}

@media (min-width: 768px) {
    html[dir="rtl"] .text-md-start,
    html[dir="rtl"] .text-md-left {
        text-align: start !important;
    }

    html[dir="rtl"] .text-md-end {
        text-align: end !important;
    }
}

@media (min-width: 992px) {
    html[dir="rtl"] .text-lg-start,
    html[dir="rtl"] .text-lg-left {
        text-align: start !important;
    }

    html[dir="rtl"] .text-lg-end {
        text-align: end !important;
    }

    html[dir="rtl"] .pe-lg-3 { padding-right: 0 !important; padding-left: 1rem !important; }
    html[dir="rtl"] .pe-lg-4 { padding-right: 0 !important; padding-left: 1.5rem !important; }
    html[dir="rtl"] .pe-lg-5 { padding-right: 0 !important; padding-left: 3rem !important; }
    html[dir="rtl"] .ps-lg-3 { padding-left: 0 !important; padding-right: 1rem !important; }
}
