/* Redesign layer over the styles inherited from the old site (site.css, stylesheet.css). Loaded last. */

:root {
    --cs-ink: #23283a;
    --cs-ink-soft: #4a5068;
    --cs-muted: #6a7086;
    --cs-primary: #394260;
    --cs-primary-dark: #2c3350;
    --cs-line: #e3e6ef;
    --cs-soft: #f1f2f6;
    --cs-page: #f5f6fa;
    --cs-radius: 10px;
    --cs-radius-lg: 16px;
    --cs-shadow: 0 18px 40px rgba(41, 50, 77, .08);
}

/* Header */
.header { position: sticky; top: 0; padding: 0; border-bottom: 1px solid var(--cs-line); background: #fff; }
.header .container { gap: 28px; min-height: 72px; }
.header__logo .logo img { max-width: 108px; transition: opacity .15s; }
.header__logo .logo:hover img { opacity: .8; }

.header__search { flex: 1 1 320px; width: auto; max-width: 440px; }
.header .header__search #search .form-control, .header .header__search #search .form-control:focus {
    height: 44px !important; padding: 0 46px 0 18px !important; border: 1px solid transparent !important; border-radius: 22px !important; background: var(--cs-soft) !important;
    color: var(--cs-ink); font-size: 15px; box-shadow: none; transition: background .15s, border-color .15s, box-shadow .15s;
}
.header__search .form-control::placeholder { color: #8a90a5; }
.header .header__search #search .form-control:focus { border-color: var(--cs-primary) !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(57, 66, 96, .14); }
.header__search .search-icon { top: 0; right: 4px; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.header__search .search-icon i { color: var(--cs-muted); font-size: 16px; transition: color .15s; }
.header__search .search-icon:hover i { color: var(--cs-primary); }

.header__menu ul { gap: 4px; }
.header__menu ul li, .header__menu ul li:last-of-type { margin: 0; }
.header__menu ul li a { display: block; padding: 9px 14px; border-radius: 9px; color: var(--cs-ink); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.header__menu ul li a:hover, .header__menu ul li a:focus { background: var(--cs-soft); color: var(--cs-primary); text-decoration: none; }

.header__info { flex: none; gap: 8px; width: auto; }
.header__info-cart { margin: 0; }
.header__info .language button.btn { height: 42px; padding: 0 12px !important; border: 0; border-radius: 9px; background: none; color: var(--cs-ink); font-size: 15px; font-weight: 500; box-shadow: none; transition: background .15s; }
.header__info .language button.btn:hover, .header__info .language .js-dropdown.open button.btn { background: var(--cs-soft); }
.header__info .language #form-language ul.dropdown-menu { margin-top: 6px; overflow: hidden; border: 1px solid var(--cs-line); border-radius: 10px; box-shadow: var(--cs-shadow); }
.header__info .language #form-language ul.dropdown-menu li > a:hover,
.header__info .language #form-language ul.dropdown-menu li > a:focus { background: var(--cs-soft); color: var(--cs-primary); }
.header__info-cart #cart > .btn, .header__info-cabinet .cabinet__button {
    position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none; transition: background .15s;
}
.header__info-cart #cart > .btn:hover, .header__info-cabinet .cabinet__button:hover { background: var(--cs-soft); }
.header__info-cart #cart > .btn img { width: 24px; height: 24px; }
.header__info-cart .cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid #fff; border-radius: 9px; background: var(--cs-primary); color: #fff; font-size: 11px; font-weight: 600; line-height: 14px; text-align: center; box-sizing: border-box; }
.header__info-cabinet a img, .header__info-cabinet a img.login { width: 24px; height: 24px; min-width: 24px; min-height: 24px; }
.header__info-cabinet a img:not(.login) { width: 34px; height: 34px; border-radius: 50%; }

/* Footer */
.footer { margin-top: 0; padding: 56px 0 0; border-top: 0; background: var(--cs-ink); color: #c5c9d6; }
.footer .row { display: flex; flex-wrap: wrap; row-gap: 32px; }
.footer .row::before, .footer .row::after { display: none; }
.footer__info-item img.img-responsive { max-width: 130px; filter: brightness(0) invert(1); }
.footer__info-item + .footer__info-item { display: flex; gap: 10px; margin-top: 20px; }
.footer__info-item a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .15s; }
.footer__info-item a:hover { background: rgba(255, 255, 255, .18); }
.footer__info-item a img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.footerMenu__list ul { margin: 0; padding: 0; list-style: none; }
.footerMenu__list ul li { margin: 0 0 12px; }
.footerMenu__list ul li a { color: #c5c9d6; font-size: 15px; line-height: 1.4; text-decoration: none; transition: color .15s; }
.footerMenu__list ul li a:hover { color: #fff; text-decoration: none; }
.footer .copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .12); color: #8f95a8; font-size: 14px; }
.footer .copyright__title, .footer .copyright__year { color: inherit; font-size: inherit; }

@media (max-width: 991px) {
    .header .container { gap: 12px; min-height: 62px; }
    .header__info { margin-left: auto; }
}
@media (max-width: 400px) {
    /* the logo, three buttons and the burger are wider than a 360px phone */
    .header .container { gap: 6px; padding-right: 10px; padding-left: 10px; }
    .header__logo .logo img { max-width: 84px; }
    .header__info { gap: 2px; }
    .header .header__burgerMenu .burger { left: 0; }
}
@media (max-width: 640px) {
    .footer { padding-top: 36px; }
    .footer .copyright { margin-top: 28px; }
}

/* Product card in lists */
.productItem { margin-bottom: 28px; }
.productItem .productItem__wrap { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--cs-line); border-radius: var(--cs-radius-lg); background: #fff; box-shadow: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.productItem .productItem__wrap:hover { transform: translateY(-3px); border-color: #d3d8e6; box-shadow: var(--cs-shadow); }
.productItem .info { flex: 1 1 auto; display: flex; flex-direction: column; }
.productItem .image { margin: 0; padding: 0; }
/* product stickers set in the backend: the built-in ones come as <div class="badge new">, a custom one is free HTML */
.productItem .image, .product-thumb .image, .productContent__thumb { position: relative; }
.cs50-badge { position: absolute; top: 12px; left: 12px; z-index: 2; max-width: calc(100% - 24px); pointer-events: none; }
.cs50-badge, .cs50-badge .badge { display: inline-block; padding: 5px 12px; border-radius: 20px; background: #5b3fd6; box-shadow: 0 6px 16px rgba(35, 40, 58, .18); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; text-shadow: none; white-space: normal; }
.cs50-badge:has(.badge) { padding: 0; background: none; box-shadow: none; }
.cs50-badge .badge i { margin-right: 3px; }
/* a line box leaves more room above small letters than below: trim it to the letters so the text sits in the middle */
.cs50-badge, .cs50-badge .badge { padding-top: 4px; padding-bottom: 6px; }
@supports (text-box: trim-both cap alphabetic) {
    .cs50-badge, .cs50-badge .badge { padding-top: 9px; padding-bottom: 9px; text-box: trim-both cap alphabetic; }
    .cs50-badge:has(.badge) { padding: 0; text-box: normal; }
}
/* a sticker typed by hand comes with a background of its own, the suggested one is light: dark text unless it sets a colour */
.cs50-badge .badge:not(.new):not(.bestseller):not(.low-price):not(.badge-sticker) { color: #23283a; }
.cs50-badge .badge.new { background: #1f9d6b; }
.cs50-badge .badge.bestseller { background: #e0762a; }
.cs50-badge .badge.low-price { background: #d6403f; }
.productContent__thumb .cs50-badge { top: 16px; left: 16px; }
.productContent__thumb .cs50-badge, .productContent__thumb .cs50-badge .badge { font-size: 14px; }
.productItem .image a { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cs-soft); }
.productItem .image img, .product-thumb .image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.productItem .productItem__wrap:hover .image img { transform: scale(1.03); }
.productItem .caption { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; padding: 16px 18px 14px; }
.productItem .caption__name { min-height: 0; margin: 0 0 8px; }
.productItem .caption__name a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--cs-ink); font-size: 16px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.productItem .caption__name a:hover { color: var(--cs-primary); }
.productItem .caption__description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; height: auto; min-height: 0; margin: 0 0 14px; color: var(--cs-muted); font-size: 14px; line-height: 1.45; }
.productItem .caption__rating { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: auto 0 0; padding: 0; }
.productItem .caption__rating .price { margin: 0; color: var(--cs-ink); font-size: 18px; font-weight: 700; }
.productItem .caption__rating .rating { margin: 0; color: #f5a623; font-size: 13px; }
.productItem .button-group { margin: 0; padding: 0 18px 18px; border: 0; background: none; }
.productItem .button-group .btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px !important; padding: 0 16px; border: 1px solid var(--cs-line); border-radius: var(--cs-radius); background: #fff !important; color: var(--cs-primary) !important; font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: none; box-shadow: none; transition: background .15s, border-color .15s, color .15s; }
.productItem .button-group .btn::after { content: "\2192"; font-size: 16px; line-height: 1; transition: transform .15s; }
.productItem .productItem__wrap:hover .button-group .btn { border-color: var(--cs-primary); }
.productItem .button-group .btn:hover, .productItem .button-group .btn:focus-visible { border-color: var(--cs-primary); background: var(--cs-primary) !important; color: #fff !important; }
.productItem .button-group .btn:hover::after { transform: translateX(3px); }

/* Product page */
#product-product .simpleProduct__wrap-title h1 { margin: 8px 0 22px; color: var(--cs-ink); font-size: 30px; font-weight: 700; line-height: 1.25; }
#product-product .productContent__thumb a.thumbnail { display: block; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--cs-line); border-radius: var(--cs-radius-lg); background: #fff; }
#product-product .productContent__thumb img { display: block; width: 100%; height: auto; }
#product-product .productContent__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#product-product .productContent__thumbs img { width: 72px; height: 54px; margin: 0; border: 2px solid transparent; border-radius: 8px; object-fit: cover; cursor: pointer; transition: border-color .15s, opacity .15s; }
#product-product .productContent__thumbs img:hover { border-color: var(--cs-primary); opacity: .9; }

#product-product .productContent > .col-md-4 { position: sticky; top: 92px; }
#product-product .productContent > .col-md-4 > .productContent__item,
#product-product .productContent > .col-md-4 > .productContent__install { margin: 0; padding: 0 24px 18px; border: solid var(--cs-line); border-width: 0 1px; background: #fff; }
#product-product .productContent > .col-md-4 > .productContent__item:first-child { padding-top: 24px; border-top-width: 1px; border-radius: var(--cs-radius-lg) var(--cs-radius-lg) 0 0; }
#product-product .productContent > .col-md-4 > .productContent__install { padding-bottom: 22px; border-bottom-width: 1px; border-radius: 0 0 var(--cs-radius-lg) var(--cs-radius-lg); }
#product-product .productContent__item-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; }
#product-product .priceTitle { color: var(--cs-muted); font-size: 15px; }
#product-product .priceDiscount { margin: 0; text-align: right; }
#product-product .priceDiscount li div { color: var(--cs-ink); font-size: 30px; font-weight: 700; line-height: 1.1; }
#product-product #product { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#product-product #product .form-group { flex: 1 1 0; min-width: 0; margin: 0; }
#product-product #product .btn { display: block; width: 100%; height: 54px; padding: 0 20px; border: 0; border-radius: var(--cs-radius); background: var(--cs-primary); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 6px 14px rgba(57, 66, 96, .22); transition: background .15s; }
#product-product #product .btn:hover { background: var(--cs-primary-dark); }
#product-product #product .btn[disabled] { background: #b9bdcb; box-shadow: none; cursor: not-allowed; }
#product-product #product > .info { flex: none; margin: 0; color: var(--cs-muted); }
#product-product .how_install a { display: inline-flex; align-items: center; gap: 8px; color: var(--cs-primary); font-size: 14px; text-decoration: none; }
#product-product .how_install a:hover { text-decoration: underline; }

#product-product .cs50-tabs { margin-top: 36px; }
#product-product .cs50-tabs .nav-tabs { display: flex; flex-wrap: nowrap; gap: 32px; margin: 0; padding: 0 30px; overflow-x: auto; border: 1px solid var(--cs-line); border-radius: var(--cs-radius-lg) var(--cs-radius-lg) 0 0; background: #fff; scrollbar-width: none; }
#product-product .cs50-tabs .nav-tabs::-webkit-scrollbar { display: none; }
#product-product .cs50-tabs .nav-tabs::before, #product-product .cs50-tabs .nav-tabs::after { display: none; }
#product-product .cs50-tabs .nav-tabs > li { flex: none; float: none; margin: 0; }
#product-product .cs50-tabs .nav-tabs > li > a { position: relative; display: flex; align-items: center; gap: 8px; margin: 0; padding: 20px 0 18px; border: 0 !important; border-radius: 0; background: none !important; box-shadow: none; color: var(--cs-muted) !important; font-size: 16px; font-weight: 500; line-height: 1.2; white-space: nowrap; transition: color .15s; }
#product-product .cs50-tabs .nav-tabs > li > a:hover { color: var(--cs-ink) !important; }
#product-product .cs50-tabs .nav-tabs > li.active > a, #product-product .cs50-tabs .nav-tabs > li.active > a:hover { color: var(--cs-primary) !important; font-weight: 600; }
#product-product .cs50-tabs .nav-tabs > li::after { display: none; }
#product-product .cs50-tabs .nav-tabs > li > a::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; display: block; width: auto; height: 3px; border-radius: 3px 3px 0 0; background: var(--cs-primary); opacity: 0; transform: scaleX(.4); transition: opacity .15s, transform .2s; }
#product-product .cs50-tabs .nav-tabs > li.active > a::after { opacity: 1; transform: none; }
#product-product .cs50-tabs .nav-tabs > li, #product-product .cs50-tabs .nav-tabs > li.active { border: 0; }
.cs50-tabs__count { min-width: 22px; padding: 2px 7px; border-radius: 11px; background: var(--cs-soft); color: var(--cs-muted); font-size: 12px; font-weight: 600; line-height: 1.5; text-align: center; }
#product-product .cs50-tabs .nav-tabs > li.active .cs50-tabs__count { background: var(--cs-primary); color: #fff; }
#product-product .tab-content > .tab-pane { padding: 28px 30px; border: 1px solid var(--cs-line); border-top: 0; border-radius: 0 0 var(--cs-radius-lg) var(--cs-radius-lg); background: #fff; color: var(--cs-ink); font-size: 16px; line-height: 1.65; }
#product-product #tab-description h2 { margin: 28px 0 12px; font-size: 24px; font-weight: 700; }
#product-product #tab-description h3 { margin: 22px 0 10px; font-size: 19px; font-weight: 600; }
#product-product #tab-description > :first-child { margin-top: 0; }
#product-product #tab-description img { max-width: 100%; height: auto; border-radius: var(--cs-radius); }
#product-product #tab-description a { color: var(--cs-primary); text-decoration: underline; }
#product-product #tab-description code { padding: 2px 6px; border-radius: 5px; background: var(--cs-soft); color: #b3261e; font-size: .9em; }
#product-product #tab-description pre { padding: 16px 18px; overflow: auto; border: 0; border-radius: var(--cs-radius); background: #1f2433; color: #e6e8ef; font-size: 14px; line-height: 1.55; }
#product-product #tab-description pre code { padding: 0; background: none; color: inherit; }

@media (max-width: 991px) {
    #product-product .productContent > .col-md-4 { position: static; margin-top: 20px; }
    #product-product .simpleProduct__wrap-title h1 { font-size: 24px; }
    #product-product .tab-content > .tab-pane { padding: 20px 16px; }
    #product-product .cs50-tabs .nav-tabs { gap: 22px; padding: 0 16px; }
    #product-product .cs50-tabs .nav-tabs > li > a { padding: 16px 0 14px; font-size: 15px; }
}

/* Inner pages: breadcrumbs, titles, the side menu */
.cs50-page { padding-top: 18px; }
.cs50-page .breadcrumb { margin: 0 0 10px; padding: 0; }
.cs50-page .breadcrumb li, .cs50-page .breadcrumb li a { color: var(--cs-muted); font-size: 13px; line-height: 1.4; letter-spacing: 0; text-transform: none; text-decoration: none; }
.cs50-page .breadcrumb li a:hover { color: var(--cs-primary); }
.cs50-page .breadcrumb li i { margin: 0 8px; font-size: 10px; color: #a3a8b8; }
.cs50-page .page-title, .gp-heading .gp-h1 { margin: 0 0 22px; color: var(--cs-ink); font-family: inherit; font-size: 32px; font-weight: 700; line-height: 1.2; }

.cs50-page .globalMenu { position: sticky; top: 92px; min-height: 0; margin: 0; overflow: hidden; border: 1px solid var(--cs-line); border-radius: var(--cs-radius-lg); background: #fff; filter: none; box-shadow: none; }
.cs50-page .globalMenu__list { height: auto; padding: 10px; gap: 2px; }
.cs50-page .globalMenu .globalMenu__list-item-wrap { border-radius: 9px; transition: background .15s; }
.cs50-page .globalMenu .globalMenu__list-item-wrap:hover { background: var(--cs-soft); }
.cs50-page .globalMenu a { padding: 10px 12px; color: var(--cs-ink); font-size: 14px; font-weight: 500; }
.cs50-page .globalMenu .menu-item, .cs50-page .globalMenu .menu-item:hover, .cs50-page .globalMenu .menu-item.active { flex: 1 1 auto; border-radius: 9px; background: none; }
.cs50-page .globalMenu .menu-item > div { align-items: center; }
.cs50-page .globalMenu .menu-item > div img { top: 0; }
.cs50-page .globalMenu img.arrow { width: 16px; margin-right: 10px; opacity: .6; }
.cs50-page .globalMenu__child { padding: 4px 0 8px 12px; border-left: 0; }
.cs50-page .globalMenu__child-item { color: var(--cs-ink-soft); font-size: 14px; font-weight: 400; }
.cs50-page .globalMenu .globalMenu__child-item:hover { background: var(--cs-soft); color: var(--cs-primary); }

/* Category and search lists */
.categorySort.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 22px; }
.categorySort.row::before, .categorySort.row::after { display: none; }
.categorySort .categoryTitle { flex: 1 1 auto; float: none; width: auto; padding: 0; }
.categorySort .categoryTitle .page-title { margin: 0; }
.categorySort .sort_block.row { flex: none; float: none; width: auto; margin: 0; padding: 0; }
.categorySort .sort_block > div { float: none; width: auto; padding: 0; }
.categorySort .sort_block .form-group { display: flex !important; flex-direction: row; align-items: center; gap: 10px; margin: 0; }
.categorySort .sort_block label { display: block; width: auto; margin: 0; white-space: nowrap; padding: 0; border: 0; background: none; color: var(--cs-muted); font-size: 14px; font-weight: 400; }
.categorySort .sort_block .select { position: relative; width: auto; margin: 0; border: 0 !important; }
.categorySort .sort_block select { height: 42px; min-width: 190px; padding: 0 38px 0 14px; border: 1px solid var(--cs-line) !important; border-radius: var(--cs-radius) !important; background: #fff !important; color: var(--cs-ink); font-size: 14px; text-align: left; appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .15s; }
.categorySort .sort_block select:hover, .categorySort .sort_block select:focus { border-color: var(--cs-primary); outline: none; }
.categorySort .sort_block .select i { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--cs-muted); font-size: 13px; pointer-events: none; }

.pagination.pg-amber { gap: 6px; margin: 12px 0 36px; }
.pagination.pg-amber > li > a, .pagination.pg-amber > li > span { min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--cs-line); border-radius: var(--cs-radius); background: #fff; color: var(--cs-ink); font-family: inherit; font-size: 14px; font-weight: 500; transition: background .15s, border-color .15s, color .15s; }
.pagination.pg-amber > li > a:hover { border-color: var(--cs-primary); background: #fff; color: var(--cs-primary); }
.pagination.pg-amber > li.selected > a, .pagination.pg-amber > li.selected > span { border-color: var(--cs-primary); background: var(--cs-primary); color: #fff; }

.pageInfo { margin: 8px 0 40px; padding: 28px 30px; border: 1px solid var(--cs-line); border-radius: var(--cs-radius-lg); background: #fff; }
.pageInfo__text { color: var(--cs-ink-soft); font-size: 15px; line-height: 1.65; }
.pageInfo__text h2, .pageInfo__text h3 { margin: 20px 0 10px; color: var(--cs-ink); font-size: 20px; font-weight: 700; }
.pageInfo__text > :first-child { margin-top: 0; }
.pageInfo__text a { color: var(--cs-primary); text-decoration: underline; }
.cs50-empty, .gp-empty { margin: 8px 0 40px; padding: 48px 24px; border: 1px dashed #c9cedd; border-radius: var(--cs-radius-lg); background: #fff; color: var(--cs-muted); font-size: 16px; text-align: center; }

@media (max-width: 640px) {
    .cs50-page .page-title, .gp-heading .gp-h1 { font-size: 24px; }
    .categorySort .sort_block.row, .categorySort .sort_block .select, .categorySort .sort_block select { width: 100%; }
    .categorySort .sort_block .form-group { flex-wrap: wrap; }
    .pageInfo { padding: 20px 16px; }
}
.productCategory .categorySort .sort_block .form-group { width: auto; border-bottom: 0; }
.productCategory .categorySort .sort_block .select select { border: 1px solid var(--cs-line) !important; background: #fff; }
.productCategory .categorySort .sort_block .select select:hover, .productCategory .categorySort .sort_block .select select:focus { border-color: var(--cs-primary) !important; }
.productItem__wrap .info .caption__name { display: block; }

/* "Our top" links under categories and products */
#seolinks.topProducts { padding: 36px 0 48px; }
#seolinks.topProducts .h3text_x { margin: 0 0 18px; color: var(--cs-ink); font-size: 22px; font-weight: 700; letter-spacing: 0; text-transform: none; }
#seolinks.topProducts .col4_ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; columns: auto; }
#seolinks.topProducts .col4_ul li { margin: 0; }
#seolinks.topProducts .col4_ul li a { align-items: center; height: 100%; padding: 10px 12px; border: 1px solid var(--cs-line); border-radius: 12px; background: #fff; color: var(--cs-ink); font-size: 14px; line-height: 1.35; transition: border-color .15s, box-shadow .15s; }
#seolinks.topProducts .col4_ul li a:hover { border-color: #d3d8e6; color: var(--cs-primary); text-decoration: none; box-shadow: 0 8px 20px rgba(41, 50, 77, .08); }
#seolinks.topProducts .col4_ul li img { border-radius: 8px; object-fit: cover; }
@media (max-width: 991px) { #seolinks.topProducts .col4_ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 576px) { #seolinks.topProducts .col4_ul { grid-template-columns: 1fr; } }

/* Payment plugin output (a form with a submit button) on the checkout result and the order page */
.gp-result__payment { width: 100%; max-width: 440px; padding: 22px 24px; border: 1px solid var(--cs-line); border-radius: var(--cs-radius-lg); background: #fff; }
.gp-result__payment form, .cs50-account__order .plugin form { margin: 0; }
.gp-result__payment br, .cs50-account__order .plugin br { display: none; }
.gp-result__payment em, .cs50-account__order .plugin em { color: var(--cs-muted); font-size: 14px; font-style: normal; line-height: 1.4; }
.gp-result__payment .icon16.loading, .cs50-account__order .plugin .icon16.loading { display: inline-block; width: 16px; height: 16px; margin-right: 8px; border: 2px solid var(--cs-line); border-top-color: var(--cs-primary); border-radius: 50%; background: none; vertical-align: -3px; animation: cs50-spin .8s linear infinite; }
.gp-result__payment input[type="submit"], .gp-result__payment button,
.cs50-account__order .plugin input[type="submit"], .cs50-account__order .plugin button {
    display: block; min-height: 48px; margin: 0; padding: 10px 28px; border: 0; border-radius: var(--cs-radius); background: var(--cs-primary); color: #fff;
    font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; white-space: normal; cursor: pointer; appearance: none; -webkit-appearance: none; transition: background .15s, transform .1s;
}
.gp-result__payment input[type="submit"], .gp-result__payment button { width: 100%; }
.gp-result__payment em ~ input[type="submit"], .gp-result__payment em ~ button { margin-top: 16px; }
.gp-result__payment input[type="submit"]:hover, .gp-result__payment button:hover,
.cs50-account__order .plugin input[type="submit"]:hover, .cs50-account__order .plugin button:hover { background: var(--cs-primary-dark); }
.gp-result__payment input[type="submit"]:active, .gp-result__payment button:active,
.cs50-account__order .plugin input[type="submit"]:active, .cs50-account__order .plugin button:active { transform: translateY(1px); }
.gp-result__payment input[type="submit"]:focus-visible, .gp-result__payment button:focus-visible,
.cs50-account__order .plugin input[type="submit"]:focus-visible, .cs50-account__order .plugin button:focus-visible { outline: 2px solid var(--cs-primary); outline-offset: 2px; }
.gp-result__payment button { display: flex; align-items: center; justify-content: center; gap: 10px; }
.cs50-account__order .plugin button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.gp-result__payment button svg, .cs50-account__order .plugin button svg { flex: none; }
.cs50-account__order .plugin { margin: 12px 0 4px; }
@keyframes cs50-spin { to { transform: rotate(360deg); } }

/* Home page */
#common-home .homeDescription { padding: 24px 0 8px; }
#common-home .globalMenu { min-height: 0; margin-right: 0; border: 1px solid var(--cs-line); border-radius: var(--cs-radius-lg); background: #fff; filter: none; }
#common-home .globalMenu.active { border-radius: var(--cs-radius-lg) 0 0 var(--cs-radius-lg); }
#common-home .globalMenu__list { height: auto; padding: 10px 0; }
#common-home .globalMenu a { padding: 11px 20px; color: var(--cs-ink); font-size: 14px; font-weight: 500; }
#common-home .globalMenu .globalMenu__list-item-wrap:hover, #common-home .globalMenu .menu-item:hover, #common-home .globalMenu .menu-item.active { background: var(--cs-soft); }
#common-home .globalMenu .menu-item > div { align-items: center; }
#common-home .globalMenu .menu-item > div img { top: 0; }
#common-home .globalMenu img.arrow { width: 16px; opacity: .6; }
/* a wrapping flex column does not widen its box for the third column: it lay over the page. A grid filled by columns does */
#common-home .globalMenu__list-item.active .globalMenu__child { display: grid; grid-auto-flow: column; grid-template-rows: repeat(6, min-content); grid-auto-columns: minmax(200px, 340px); align-content: start; width: max-content; min-width: 0; height: auto; min-height: 100%; padding-right: 14px; }
#common-home .globalMenu__list-item.active .globalMenu__child-item { max-width: none; }
@media (max-width: 1199px) {
    /* three full columns do not fit beside the menu, and the block around it cuts a taller panel: narrower columns */
    #common-home .globalMenu__list-item.active .globalMenu__child { grid-auto-columns: minmax(0, 218px); padding-right: 6px; }
    #common-home .globalMenu__list-item.active .globalMenu__child a { padding-top: 6px; padding-bottom: 6px; line-height: 1.3; }
}
#common-home .globalMenu__list-item.active .globalMenu__child { border: 1px solid var(--cs-line); border-left: 0; border-radius: 0 var(--cs-radius-lg) var(--cs-radius-lg) 0; background: #fff; box-shadow: 18px 18px 40px rgba(41, 50, 77, .08); }
#common-home .homeDescription__wrap { padding: 28px 0; }
#common-home .homeDescription__wrap-title { margin: 0 0 18px; color: var(--cs-ink); font-size: 42px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
#common-home .homeDescription__wrap-text { margin: 0 0 28px; color: var(--cs-ink-soft); font-size: 17px; line-height: 1.6; }
#common-home .homeDescription__wrap-btn { display: flex; flex-wrap: wrap; gap: 12px; }
#common-home .homeDescription__wrap-btn .btn { width: auto; height: 52px; padding: 0 26px; border-radius: var(--cs-radius); font-size: 16px; font-weight: 600; line-height: 52px; box-shadow: none; transition: background .15s, border-color .15s, color .15s; }
#common-home .homeDescription__wrap-btn .cs50-hero__primary { border: 0; background: var(--cs-primary); color: #fff; box-shadow: 0 6px 14px rgba(57, 66, 96, .22); }
#common-home .homeDescription__wrap-btn .cs50-hero__primary:hover { background: var(--cs-primary-dark); }
#common-home .homeDescription__wrap-btn .cs50-hero__ghost { border: 1px solid #c9cedd !important; background: #fff !important; color: var(--cs-primary) !important; line-height: 50px; }
#common-home .homeDescription__wrap-btn .cs50-hero__ghost:hover { border-color: var(--cs-primary) !important; }
#common-home .homeDescription__arrow { display: none; }

#common-home .homeContent { padding: 28px 0 56px; }
#common-home .block-title { margin: 0 0 20px; color: var(--cs-ink); font-size: 26px; font-weight: 700; letter-spacing: 0; text-transform: none; }
#common-home .content__wrap { display: flex; flex-wrap: wrap; width: 100%; }
#common-home .product-item { display: flex; float: none; margin-bottom: 28px; }
#common-home .product-thumb { display: flex; flex-direction: column; width: 100%; margin: 0; overflow: hidden; border: 1px solid var(--cs-line); border-radius: var(--cs-radius-lg); background: #fff; box-shadow: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
#common-home .product-thumb:hover { transform: translateY(-3px); border-color: #d3d8e6; box-shadow: var(--cs-shadow); }
#common-home .product-thumb .image { margin: 0; }
#common-home .product-thumb .image a { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cs-soft); }
#common-home .product-thumb .image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
#common-home .product-thumb:hover .image img { transform: scale(1.03); }
#common-home .product-thumb__description { padding: 14px 16px 16px; }
#common-home .product-thumb__description .title { min-height: 0; margin: 0 0 8px; }
#common-home .product-thumb__description .title a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--cs-ink); font-size: 15px; font-weight: 600; line-height: 1.35; text-decoration: none; }
#common-home .product-thumb__description .title a:hover { color: var(--cs-primary); }
#common-home .product-thumb__description .description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; height: auto; margin: 0; color: var(--cs-muted); font-size: 13px; line-height: 1.45; }

@media (max-width: 991px) {
    #common-home .homeDescription__wrap-title { font-size: 30px; }
    #common-home .homeDescription__wrap { padding: 8px 0 20px; }
}

/* Blog */
body .cs50-blog .page-title, body .cs50-post .page-title { margin: 0 0 22px; color: var(--cs-ink); font-family: inherit; font-size: 32px; font-weight: 700; line-height: 1.2; }
body .cs50-post-card { display: flex; flex-direction: column; height: 100%; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--cs-line); border-radius: var(--cs-radius-lg); background: #fff; box-shadow: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
body .cs50-post-card:hover { transform: translateY(-3px); border-color: #d3d8e6; box-shadow: var(--cs-shadow); }
body .cs50-post-card__image { flex: none; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 0; overflow: hidden; border-radius: 0; background: var(--cs-soft); }
body .cs50-post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
body .cs50-post-card:hover .cs50-post-card__image img { transform: scale(1.03); }
body .cs50-post-card__body { flex: 1 1 auto; padding: 18px 20px 20px; }
body .cs50-post-card__title { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.35; }
body .cs50-post-card__title a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: var(--cs-ink); text-decoration: none; }
body .cs50-post-card__title a:hover { color: var(--cs-primary); }
body .cs50-post-card__date { margin: 0 0 10px; color: var(--cs-muted); font-size: 13px; }
body .cs50-post-card__text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: var(--cs-ink-soft); font-size: 14px; line-height: 1.5; }

body .cs50-post { max-width: 880px; margin: 0 auto 56px; }
body .cs50-post__meta { margin: -10px 0 20px; color: var(--cs-muted); font-size: 14px; }
body .cs50-post__text, .landingPage.cs50-info { padding: 32px 36px; border: 1px solid var(--cs-line); border-radius: var(--cs-radius-lg); background: #fff; color: var(--cs-ink); font-size: 17px; line-height: 1.7; }
body .cs50-post__text > :first-child { margin-top: 0; }
body .cs50-post__text h2, body .cs50-post__text h3 { margin: 28px 0 12px; color: var(--cs-ink); font-weight: 700; line-height: 1.3; }
body .cs50-post__text h2 { font-size: 24px; }
body .cs50-post__text h3 { font-size: 20px; }
body .cs50-post__text img { max-width: 100%; height: auto; border-radius: var(--cs-radius); }
body .cs50-post__text a, .landingPage.cs50-info a { color: var(--cs-primary); text-decoration: underline; }
body .cs50-post__text code { padding: 2px 6px; border-radius: 5px; background: var(--cs-soft); color: #b3261e; font-size: .9em; }
body .cs50-post__text pre { padding: 16px 18px; overflow: auto; border: 0; border-radius: var(--cs-radius); background: #1f2433; color: #e6e8ef; font-size: 14px; line-height: 1.55; }
body .cs50-post__text pre code { padding: 0; background: none; color: inherit; }
body .cs50-post .comments { margin-top: 28px; padding: 26px 30px; border: 1px solid var(--cs-line); border-radius: var(--cs-radius-lg); background: #fff; }
body .cs50-post .comment-form input[type="text"], body .cs50-post .comment-form textarea { box-sizing: border-box; padding: 10px 14px; border: 1px solid #c9cedd; border-radius: var(--cs-radius); background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
body .cs50-post .comment-form input[type="text"]:focus, body .cs50-post .comment-form textarea:focus { border-color: var(--cs-primary); outline: none; box-shadow: 0 0 0 3px rgba(57, 66, 96, .15); }
body .cs50-post .comment-form input[type="submit"], body .cs50-post .comment-form button { height: 46px; padding: 0 22px; border: 0; border-radius: var(--cs-radius); background: var(--cs-primary); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }

/* rows are flex here: a column must be able to get narrower than its widest word or table */
.cs50-page .row > [class*="col-"] { min-width: 0; }

/* Info pages */
.landingPage.cs50-info { margin-bottom: 56px; }
.landingPage.cs50-info .page-title { margin: 0 0 18px; padding: 0; font-size: 30px; overflow-wrap: break-word; }
.landingPage.cs50-info .page-title::before { display: none; }
/* the old slanted backdrop is as tall as the page and, rotated, sticks out to the right: a phone scrolls sideways */
.landingPage.cs50-info::before { display: none; }

@media (max-width: 640px) {
    body .cs50-post__text, .landingPage.cs50-info, body .cs50-post .comments { padding: 20px 16px; font-size: 16px; }
    body .cs50-blog .page-title, body .cs50-post .page-title { font-size: 24px; }
    .landingPage.cs50-info .page-title { font-size: 24px; }
    /* lists of the old landing pages: columns in percent plus a fixed gap do not fit a phone */
    .landingPage.cs50-info .landingPage__list ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .landingPage.cs50-info .landingPage__list.text ul { grid-template-columns: minmax(0, 1fr); }
    .landingPage.cs50-info .landingPage__list li { min-width: 0; overflow-wrap: anywhere; }
    .landingPage.cs50-info .landingPage__list.text span { font-size: 20px !important; line-height: 1.3 !important; }
    .landingPage.cs50-info .landingPage__subtitle { font-size: 24px; line-height: 1.3; }
    /* a wide table of a description or a guide scrolls inside itself, not with the page */
    #tab-description table, .cs50-info__text table { display: block; max-width: 100%; overflow-x: auto; }
}
/* a long file name in a guide breaks instead of widening the page */
.cs50-info__text :not(pre) > code { overflow-wrap: anywhere; }
.cs50-info__text pre { max-width: 100%; overflow-x: auto; }
#tab-description { overflow-wrap: break-word; }
#tab-description img, #tab-description iframe, #tab-description video { max-width: 100%; }
#tab-description pre { max-width: 100%; overflow-x: auto; }
#tab-description :not(pre) > code { white-space: normal; overflow-wrap: anywhere; }
body .cs50-blog__stream { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 28px; }
body .cs50-blog__stream > .page-title, body .cs50-blog__stream > p { grid-column: 1 / -1; margin-bottom: 0; }
@media (max-width: 991px) { body .cs50-blog__stream { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { body .cs50-blog__stream { grid-template-columns: 1fr; gap: 16px; } }
body .cs50-post-card { align-items: stretch; gap: 0; }
body .cs50-post-card__image { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
body .cs50-post-card__image img { max-width: none; max-height: none; object-fit: cover; }
body .cs50-post-card__image.is-empty { border-radius: 0; }
/* Post covers are often logos and diagrams: fit them whole instead of cropping */
body .cs50-post-card__image:not(.is-empty) { background: #fff; border-bottom: 1px solid var(--cs-line); }
body .cs50-post-card__image img { object-fit: contain; }

/* Contact page: the form of the Tickets plugin and the other contacts */
.cs50-contact { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.cs50-contact__lead { margin: 0 0 20px; color: var(--cs-ink-soft); }
.cs50-contact__side { padding: 22px 24px; border-radius: var(--cs-radius-lg); background: var(--cs-soft); font-size: 15px; line-height: 1.6; }
.cs50-contact__side h2 { margin: 0 0 14px; color: var(--cs-ink); font-size: 18px; font-weight: 700; }
.cs50-contact__side ul { margin: 0 0 16px; padding: 0; list-style: none; }
.cs50-contact__side li { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.cs50-contact__side li i { width: 20px; color: var(--cs-primary); font-size: 18px; text-align: center; }
.cs50-contact__side p { margin: 0; color: var(--cs-muted); font-size: 14px; }
.tickets-contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.tickets-contact-form p { margin: 0 0 16px; }
.tickets-contact-form label { display: block; margin: 0 0 6px; color: var(--cs-ink-soft); font-size: 14px; font-weight: 500; }
.tickets-contact-form input[type="text"], .tickets-contact-form input[type="email"], .tickets-contact-form select, .tickets-contact-form textarea {
    box-sizing: border-box; display: block; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #c9cedd; border-radius: var(--cs-radius);
    background: #fff; color: var(--cs-ink); font-size: 16px; line-height: 1.4; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.tickets-contact-form textarea { resize: vertical; }
.tickets-contact-form input:focus, .tickets-contact-form select:focus, .tickets-contact-form textarea:focus { border-color: var(--cs-primary); outline: none; box-shadow: 0 0 0 3px rgba(57, 66, 96, .15); }
.tickets-contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tickets-contact-captcha { margin: 0 0 14px; }
.tickets-contact-captcha .wa-captcha p { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 6px; }
.tickets-contact-captcha .wa-captcha strong { color: var(--cs-muted); }
.tickets-contact-captcha .wa-captcha-img { height: 48px; border-radius: 8px; cursor: pointer; }
.tickets-contact-captcha .wa-captcha-input { width: 160px !important; }
.tickets-contact-captcha .wa-captcha-refresh { color: var(--cs-primary); font-size: 13px; text-decoration: underline; }
.tickets-contact-note { color: var(--cs-muted); font-size: 14px; }
.tickets-contact .tickets-error { padding: 10px 14px; border-radius: var(--cs-radius); background: #fdecea; color: #b3261e; font-size: 14px; }
.tickets-contact-submit { display: inline-flex; align-items: center; justify-content: center; height: 52px; margin: 0; padding: 0 32px !important; border: 0; border-radius: var(--cs-radius); background: var(--cs-primary); color: #fff !important; font-size: 16px; font-weight: 600; line-height: 1 !important; text-decoration: none !important; box-shadow: 0 6px 14px rgba(57, 66, 96, .22); cursor: pointer; transition: background .15s; }
.tickets-contact-submit:hover { background: var(--cs-primary-dark); }
.tickets-contact-submit[disabled] { opacity: .6; cursor: default; }
.tickets-contact-thanks { padding: 24px 0; text-align: center; }
.tickets-contact-check { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: #ecfdf3; color: #2e9e5b; font-size: 32px; }
.tickets-contact-thanks h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.tickets-contact-thanks p { margin: 0 0 18px; color: var(--cs-muted); }
@media (max-width: 991px) { .cs50-contact { grid-template-columns: 1fr; gap: 24px; } }

/* VIP subscription: the badge in the account and the downloads on the product page */
.cs50-vip-badge { display: inline-block; padding: 5px 11px; border-radius: 6px; background: #6a3fc4; color: #fff; font-size: 14px; font-style: italic; font-weight: 600; line-height: 1.2; }
.cs50-vip-downloads__note { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--cs-ink-soft); font-size: 14px; }
#product-product #product .cs50-vip-downloads .btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: auto; min-height: 54px; padding: 8px 20px; white-space: normal; }
#product-product #product .cs50-vip-downloads .btn + .btn { margin-top: 8px; }

/* the side menu of inner pages has a fixed width that is wider than its column on small desktops */
@media (min-width: 992px) and (max-width: 1199px) {
    .cs50-page .col-md-3 > .globalMenu { min-width: 0; max-width: 100%; }
    .cs50-page .col-md-3 > .globalMenu .globalMenu__list-item > a { padding-left: 12px; padding-right: 12px; }
}

/* shown only to those logged in to the backend: the editor of the current page */
.cs50-adminbar { position: fixed; left: 20px; bottom: 20px; z-index: 900; display: flex; gap: 8px; align-items: center; }
.cs50-adminbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 22px; background: #23283a; box-shadow: 0 10px 28px rgba(20, 24, 38, .28); color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1; text-decoration: none; transition: background .15s, transform .15s; }
.cs50-adminbar a:hover { background: #5b3fd6; color: #fff; text-decoration: none; transform: translateY(-1px); }
.cs50-adminbar__edit { padding: 0 20px 0 16px; }
.cs50-adminbar__backend { width: 44px; }
@media (max-width: 640px) {
    .cs50-adminbar { left: 12px; bottom: 12px; }
    .cs50-adminbar__edit span { display: none; }
    .cs50-adminbar__edit { width: 44px; padding: 0; }
}
@media print { .cs50-adminbar { display: none; } }
