/* English (LTR) overrides for website pages */
html[lang='en'],
body.is-ltr {
  direction: ltr !important;
}

body.is-ltr {
  text-align: left;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Arial, sans-serif;
}

body.is-ltr .header-desktop-bottom,
body.is-ltr .header-mobile-content,
body.is-ltr .header-footer-top {
  flex-direction: row-reverse;
}


body.is-ltr .header-desktop .navigation-bar-item > a,
body.is-ltr .header-mobile .mobile-navigation a {
  text-align: left;
}

body.is-ltr .header-desktop .navigation-bar-item > a svg,
body.is-ltr .header-mobile .mobile-navigation a svg {
  margin-right: 0;
  margin-left: 6px;
}

body.is-ltr .header-account-menu .header-account-dropdown-menu {
  left: 0;
  right: auto;
  text-align: left;
}

body.is-ltr .header-account-menu .header-account-dropdown-menu a,
body.is-ltr .header-account-menu .header-account-dropdown-menu button {
  text-align: left !important;
}

body.is-ltr .header-desktop-search-input-container input,
body.is-ltr .mobile-search-input-container input,
body.is-ltr input[type='search'],
body.is-ltr input[type='text'] {
  text-align: left;
}

body.is-ltr .header-desktop-search-input-container .clear,
body.is-ltr .mobile-search-input-container .clear {
  right: 8px;
  left: auto;
}

body.is-ltr .header-desktop-search-input-container .search-button,
body.is-ltr .mobile-search-input-container .search-button {
  left: 8px;
  right: auto;
}

body.is-ltr .ajax-search-item {
  direction: ltr;
  text-align: left;
}

body.is-ltr .ajax-search-item .meta,
body.is-ltr .ajax-search-item .submeta {
  text-align: left;
}

/* Base template RTL -> LTR overrides */
body.is-ltr p,
body.is-ltr .center,
body.is-ltr .align-right,
body.is-ltr .direction-rtl,
body.is-ltr .txt,
body.is-ltr .btn,
body.is-ltr .message-box,
body.is-ltr .price-label,
body.is-ltr .custom-button,
body.is-ltr .segmented-button-container,
body.is-ltr .segmented-button > label > .button-label,
body.is-ltr .book-description-content,
body.is-ltr .book-block-tags,
body.is-ltr article.block-white .book,
body.is-ltr article.block-white .book h1,
body.is-ltr .author-biography h1,
body.is-ltr .author-biography > p,
body.is-ltr .author-biography .summary,
body.is-ltr .author-biography-content,
body.is-ltr .comment-text,
body.is-ltr .comment-footer a {
  direction: ltr !important;
  text-align: left !important;
}

body.is-ltr .center {
  text-align: left;
}

body.is-ltr .line-end {
  left: auto;
  right: -1px;
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0,
    var(--color-bg-container) 100%
  );
}

body.is-ltr .cover-labels {
  right: auto;
  left: 5px;
}

body.is-ltr .message-text p {
  margin-right: 0;
  margin-left: 10px;
}

body.is-ltr .message-box-close {
  background-position: center right;
}

body.is-ltr .message-box > a:after {
  content: '<';
  margin-right: 0;
  margin-left: 3px;
}

body.is-ltr .custom-button > .ic-audio-book-play,
body.is-ltr .custom-button > .ic-share,
body.is-ltr .custom-button > .ic-download,
body.is-ltr .custom-button > .ic-get-app,
body.is-ltr .custom-button > .ic-brand-logo {
  margin-left: 0;
  margin-right: 5px;
}

body.is-ltr .segmented-button {
  direction: ltr;
}

body.is-ltr .segmented-button > label:first-child > .button-label {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-left: 1px solid var(--color-border-main);
}

body.is-ltr .segmented-button > label:last-child > .button-label {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

body.is-ltr .segmented-button > label > .button-label {
  border-right: 1px solid var(--color-border-main);
  border-left: 0;
}

body.is-ltr .book-card {
  flex-direction: row;
}

body.is-ltr .book-card .label {
  margin: 5px 5px 5px 0;
}

body.is-ltr .book-card .label svg {
  margin-left: 0;
  margin-right: 5px;
}

body.is-ltr .book-main-info-cover {
  margin-left: 0;
  margin-right: 25px;
}

body.is-ltr .book-main-info-authors {
  padding-left: 0;
  padding-right: 20px;
}

body.is-ltr .book-page-tabs-center {
  flex-direction: row;
}

body.is-ltr .book-page-tabs.sticky {
  right: 0;
  left: 0;
}

body.is-ltr .book-page-notice .icon {
  margin-right: 0;
  margin-left: 15px;
}

body.is-ltr #btnExpandBookDescription {
  text-align: left;
}

body.is-ltr #btnExpandBookDescription span.drop-down,
body.is-ltr #btnExpandBookDescription span.drop-up {
  background-position: left center;
  margin-left: 0;
  margin-right: 5px;
}

body.is-ltr .author-profile {
  margin-left: 0;
  margin-right: 20px;
}

/* Footer social icons */
body.is-ltr .header-footer-social {
  direction: ltr !important;
  text-align: left;
}

body.is-ltr .header-footer-social > div {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

/*body.is-ltr .header-footer-social a {
  margin: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-bg-top-layer);
  border: 1px solid var(--color-border-main);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}*/

/*body.is-ltr .header-footer-social a:hover {
  border-color: var(--button-bg-color-green);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}*/
body.is-ltr .navigation-bar-item-button {
  direction: ltr;
  display: flex;
  gap: 5px;
}
@media (min-width: 1024px) {
  .footer .app-install-buttons {
    justify-content: start;
  }
}

@media (min-width: 768px) {
  .footer-install-apps .title {
    flex-direction: row-reverse;
    flex-shrink: 0;
    gap: 10px;
  }
}

/* LTR tweaks for status pages */
body.is-ltr .status-header h2,
body.is-ltr .status-content,
body.is-ltr .status-text,
body.is-ltr .status-request {
  text-align: left;
}
body.is-ltr .status-actions {
    justify-content: flex-start;
    flex-direction: row;
}

@media (min-width: 768px) {
  .header-footer-social {
    margin-left: auto;
    width: auto;
  }
}
@media (min-width: 768px) {
    .footer-links ul {
        flex-basis: auto;
        margin: 0 7% 0 0;
        text-align: left;
    }

    .header-account-dropdown-menu {
        direction: ltr;
    }

    .header-desktop-bottom .right {
        direction: ltr;
    }

    .dropdown-menu {
        left: 0;
    }

    .dropdown-menu-headline svg {
        rotate: 180deg;
    }

    .content-columns {
        flex-direction: row;
    }

    .side-category-nav-parent {
        flex-direction: row-reverse;
        gap: 5px;
    }

    .side-category-nav-children {
        padding-right: auto;
        padding-left: 33px;
        margin: 0 0 15px 0;
    }

    .side-column-title {
        direction: ltr;
    }

    .grid-container .header {
        flex-direction: row;
    }
}
