/* ==========================================================================
   Hot Deals, Cart, Login, Checkout, 404
   ========================================================================== */

/* ---------- Hot deals ---------- */
.deals-banner {
  position: relative;
}

.deals-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hit-area over the "COPY" pill in the banner art (positioned by its centre so
   it stays on the pill at any width; min size keeps it easy to tap on phones) */
.deals-banner__copy {
  left: 54.7%;
  top: 60.3%;
  width: max(8.6%, 48px);
  height: max(7%, 32px);
  transform: translate(-50%, -50%);
}

.deals-organisations {
  padding-top: 40px;
}

.deals-trending {
  margin-top: 20px;
  padding-bottom: 38px;
}

.ts-trending__more {
  height: 34px;
  margin-top: 50px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.deals-accreditation {
  padding-top: 26px;
}

.deals-certificate {
  padding: 50px 0 124px;
}

.deals-certificate .ts-certificate__title {
  margin-bottom: 86px;
}

.deals-certificate .ts-certificate__bg {
  top: 109px;
}

/* ---------- Shared shop title ---------- */
.shop-title {
  font-family: var(--ts-font-head);
  font-weight: 500;
  font-size: 35px;
  line-height: 42px;
  margin: 0 0 22px;
}

/* ---------- Cart ---------- */
.cart-section {
  padding: 50px 0 86px;
}

.cart-section .ts-container {
  max-width: 1232px;
}

@media (min-width: 1300px) {
  .cart-section .ts-container {
    position: relative;
    left: -12px;
  }

  .checkout-layout {
    margin-right: 38px;
  }
}

.cart-section > .ts-container > .shop-title {
  margin-left: -11px;
}

.cart-table-wrap {
  border: 2px solid transparent;
  border-radius: 36px 0 36px 0;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--ts-gradient) border-box;
  overflow: hidden;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ts-font-head);
  font-size: 19px;
  color: var(--ts-dark);
}

/* Solid tints of the gradient (border-image does not work on collapsed cells) */
.cart-table th,
.cart-table td {
  border-right: 2px solid #f19a27;
  border-bottom: 2px solid #f19a27;
  padding: 0 12px;
}

.cart-table th:first-child,
.cart-table td:first-child {
  border-color: #e8762a;
}

.cart-table th:first-child + th,
.cart-table td:first-child + td {
  border-color: #ec8526;
}

.cart-table th:last-child,
.cart-table td:last-child {
  border-right: 0;
}

.cart-table th {
  height: 41px;
  font-weight: 600;
}

.cart-table td {
  height: 126px;
}

.cart-table__sl {
  width: 115px;
  padding-left: 30px !important;
}

.cart-table__product {
  width: 565px;
}

.cart-table td.cart-table__product {
  padding-left: 10px;
}

.cart-table__item {
  display: flex;
  align-items: center;
  gap: 30px;
}

.cart-table th.cart-table__product {
  padding-left: 154px;
}

.cart-table__thumb {
  width: 110px;
  height: 110px;
  background: var(--ts-gradient);
  border-radius: 0 0 16px 0;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cart-qty button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: var(--ts-gradient);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty output {
  min-width: 14px;
  text-align: center;
}

.cart-qty--inline {
  display: none;
}

.cart-coupon {
  padding: 11px 12px 20px;
}

.cart-coupon__row {
  display: flex;
  gap: 12px;
}

.cart-coupon__input {
  width: 170px;
  height: 45px;
  border-width: 2px;
  border-radius: 0 0 14px 0;
}

.cart-coupon .ts-btn--leaf {
  width: 171px;
  height: 45px;
  font-weight: 400;
  font-size: 17px;
}

.cart-coupon__msg {
  font-family: var(--ts-font-head);
  font-size: 16px;
  margin: 12px 0 0;
}

.cart-coupon__msg.is-ok {
  color: #2c8a3f;
}

.cart-totals {
  width: 433px;
  margin: 46px 0 0 auto;
  margin-right: -3px;
}

.cart-totals .shop-title {
  margin: 0 0 14px -6px;
}

.cart-totals__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--ts-font-head);
  font-size: 19px;
  border: 2px solid transparent;
  border-radius: 14px 0 14px 0;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--ts-gradient) border-box;
}

.cart-totals__table th,
.cart-totals__table td {
  height: 42px;
  padding: 0 40px;
  width: 50%;
}

.cart-totals__table th {
  font-weight: 400;
  border-right: 2px solid #ec8526;
}

.cart-totals__table td {
  padding-left: 26px;
}

.cart-totals__table tr:first-child > * {
  border-bottom: 2px solid #f19a27;
}

.cart-totals__table tr:last-child > * {
  font-weight: 600;
}

.cart-totals__checkout {
  width: 213px;
  height: 45px;
  margin-top: 13px;
  font-size: 17px;
}

.cart-totals__or {
  font-family: var(--ts-font-head);
  font-size: 18px;
  text-align: center;
  margin: 18px 0 6px;
}

.cart-totals__or::before,
.cart-totals__or::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--ts-dark);
  vertical-align: middle;
  margin: 0 10px;
}

.cart-totals .ts-pay-btn {
  height: 45px;
  border-radius: 14px 0 14px 0;
  font-size: 26px;
}

.cart-totals .ts-pay-btn + .ts-pay-btn {
  margin-top: 16px;
}

.cart-totals .ts-pay-btn small {
  font-size: 18px;
}

/* ---------- Login ---------- */
.login-section {
  padding: 75px 0 102px;
}

.login-card {
  width: 489px;
  max-width: 100%;
  margin: 0 auto;
  padding: 72px 27px 52px;
  background: var(--ts-cream);
  border-radius: 0 6px 14px 0;
  box-shadow: 14px 14px 18px rgba(0, 0, 0, 0.18);
}

.login-card__title {
  font-family: var(--ts-font-body);
  font-weight: 400;
  font-size: 26px;
  color: var(--ts-black);
  margin: 0 0 18px;
}

.login-card__field + .login-card__field {
  margin-top: 17px;
}

.login-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 4px 38px 0;
  color: var(--ts-black);
}

.login-card__forgot {
  font-size: 13.7px;
  color: #333;
}

.login-card__submit {
  width: 100%;
  height: 37px;
  font-family: var(--ts-font-body);
  font-size: 15px;
}

.login-card__register {
  text-align: center;
  font-size: 13.7px;
  color: var(--ts-black);
  margin: 13px 0 0;
}

.login-card__register a {
  color: #3e64de;
  font-weight: 600;
}

/* ---------- Checkout ---------- */
.checkout-section {
  padding: 28px 0 76px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 499px 374px;
  gap: 20px;
  justify-content: center;
  align-items: start;
}

.checkout-box {
  background: var(--ts-cream);
  border-radius: 0 14px 14px 0;
  padding: 14px 20px;
  font-family: var(--ts-font-head);
  font-size: 11.5px;
  color: #333;
  margin: 0 0 20px;
}

.checkout-box--note {
  padding: 13px 25px;
}

.checkout-box__label {
  font-family: var(--ts-font-head);
  font-weight: 400;
  font-size: 11.5px;
  margin: 0 0 6px;
}

.checkout-box__title {
  font-family: var(--ts-font-head);
  font-weight: 400;
  font-size: 15px;
  margin: 2px 0 20px 3px;
}

.checkout-express {
  padding: 8px 9px 7px;
  margin-bottom: 0;
}

.checkout-express .checkout-box__label {
  padding-left: 4px;
}

.checkout-express__btn {
  height: 45px;
  font-size: 24px;
  border-radius: 0 0 10px 0;
}

.checkout-express__btn small {
  font-size: 20px;
  margin-right: 8px;
}

.checkout-or {
  text-align: center;
  font-family: var(--ts-font-head);
  font-size: 13.2px;
  color: #333;
  margin: 1px 0 1px;
}

.checkout-billing {
  padding: 16px 18px 30px;
}

.checkout-billing .ts-field {
  height: 39px;
  border-radius: 0 0 14px 0;
}

.checkout-notes {
  padding: 16px 18px 12px;
}

.checkout-notes textarea {
  font-family: var(--ts-font-head);
  font-size: 10.8px;
  border-radius: 0 0 14px 0;
}

.checkout-order {
  padding: 16px 23px 6px;
}

.checkout-order__table {
  width: 100%;
  font-size: 10.8px;
}

.checkout-order__table th,
.checkout-order__table td {
  padding: 10px 0;
}

.checkout-order__table th:last-child,
.checkout-order__table td:last-child {
  width: 100px;
}

.checkout-order__table th,
.checkout-order__table .is-strong td:first-child {
  font-weight: 500;
}

.checkout-pay {
  padding: 18px 23px 22px;
}

.checkout-pay .checkout-box__label {
  padding-left: 22px;
}

.checkout-card {
  border: 1px solid transparent;
  border-radius: 0 0 14px 0;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--ts-gradient) border-box;
  padding: 10px 18px 14px 12px;
  margin-bottom: 18px;
}

.checkout-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 22px;
  padding: 0 4px;
  background: #f6f6f6;
}

.checkout-card__row .bi {
  color: #b7c4d1;
  font-size: 15px;
}

.checkout-card__row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 10.8px;
}

.checkout-card__autofill {
  background: var(--ts-gradient);
  color: #fff;
  font-size: 9px;
  padding: 2px 4px 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.checkout-card__autofill .bi {
  color: var(--ts-orange);
  background: #fff;
  font-size: 8px;
  padding: 1px 2px;
}

.checkout-card__save {
  font-size: 10.8px;
  color: #666;
  margin-top: 8px;
}

.checkout-card__save input {
  width: 12px;
  height: 12px;
  border: 1px solid #888;
}

.checkout-pay .ts-pay-btn {
  height: 30px;
  font-size: 16px;
  border-radius: 0 0 10px 0;
}

.checkout-pay .ts-pay-btn + .ts-pay-btn {
  margin-top: 8px;
}

.checkout-pay .ts-pay-btn small {
  font-size: 13px;
}

.checkout-pay .ts-pay-btn__g {
  font-size: 16px;
}

.checkout-pay {
  margin-bottom: 0;
  padding-bottom: 32px;
}

.checkout-place {
  display: flex;
  width: calc(100% - 46px);
  margin: -20px auto 0;
  height: 30px;
  font-size: 13.2px;
  border-radius: 0 0 10px 0;
  position: relative;
}

/* ---------- 404 ---------- */
.notfound {
  padding: 50px 0 74px;
}

.notfound__row {
  display: flex;
  align-items: center;
  gap: 46px;
  margin-left: 21px;
}

.notfound__img {
  width: 613px;
  flex: 0 0 auto;
}

.notfound__oops {
  font-family: var(--ts-font-head);
  font-weight: 600;
  font-size: 41px;
  line-height: 46px;
  color: #fd7c07;
  margin: -40px 0 0;
}

.notfound__title {
  font-family: var(--ts-font-head);
  font-weight: 400;
  font-size: 39px;
  line-height: 50px;
  color: var(--ts-black);
  margin: 0 0 8px;
}

.notfound__text {
  font-family: var(--ts-font-head);
  font-weight: 300;
  font-size: 14px;
  line-height: 17px;
  max-width: 360px;
  color: var(--ts-black);
  margin: 0;
}

.notfound__visit {
  text-align: center;
  font-family: var(--ts-font-head);
  font-size: 20px;
  color: var(--ts-black);
  margin: 64px 0 22px;
}

.notfound__links {
  display: flex;
  justify-content: center;
  gap: 67px;
}

.notfound__links .ts-btn {
  width: 178px;
  height: 36px;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
  .cart-table__product {
    width: auto;
  }

  .notfound__row {
    margin-left: 0;
  }

  .notfound__img {
    width: 52%;
  }
}

@media (max-width: 991.98px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 499px);
  }

  .notfound__row {
    flex-direction: column;
    text-align: center;
  }

  .notfound__img {
    width: 100%;
    max-width: 500px;
  }

  .notfound__oops {
    margin-top: 0;
  }

  .notfound__text {
    margin-inline: auto;
  }
}

@media (max-width: 767.98px) {
  /* Phone banner (banner-autumn-wide-mobile): COPY pill sits lower and further right */
  .deals-banner__copy {
    left: 64.7%;
    top: 73.4%;
    width: 24%;
    height: 6.4%;
  }

  /* Hot deals: one large card per row on phones */
  .deals-trending .ts-trending__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-inline: 18px;
  }

  .deals-trending .ts-course-card__title {
    font-size: 15px;
    line-height: 18px;
  }

  .deals-trending .ts-course-card__meta,
  .deals-trending .ts-course-card__meta .bi {
    font-size: 13px;
  }

  .deals-trending .ts-course-card__price del {
    font-size: 16px;
  }

  .deals-trending .ts-course-card__price strong {
    font-size: 27px;
  }

  .deals-trending .ts-course-card__actions .ts-btn {
    height: 42px;
    font-size: 14px;
  }

  .deals-organisations .ts-organisations__box {
    width: 190px;
    height: 142px;
  }

  .ts-trending__more {
    margin-top: 26px;
    height: 26px;
    font-size: 9px;
  }

  .deals-certificate {
    padding-bottom: 40px;
  }

  .shop-title {
    font-size: 30px;
    margin-bottom: 14px;
  }

  .cart-section {
    padding-top: 18px;
  }

  .cart-section > .ts-container > .shop-title {
    margin-left: 0;
  }

  /* Cart: compact 3-column table, quantity under product name */
  .cart-table {
    font-size: 14px;
  }

  .cart-table th:nth-child(4),
  .cart-table td:nth-child(4),
  .cart-table th:nth-child(5),
  .cart-table td:nth-child(5) {
    display: none;
  }

  .cart-table__sl {
    width: 70px;
    padding-left: 12px !important;
    vertical-align: top;
    padding-top: 12px !important;
  }

  .cart-table th.cart-table__product {
    padding-left: 10px;
  }

  .cart-table td {
    height: 100px;
  }

  .cart-table td.cart-table__product {
    padding: 6px;
  }

  .cart-table__item {
    gap: 10px;
  }

  .cart-qty--inline {
    display: flex;
    margin-top: 26px;
  }

  .cart-table__thumb {
    width: 64px;
    height: 76px;
    flex: 0 0 auto;
  }

  .cart-table-wrap {
    border-radius: 0 0 30px 0;
  }

  .cart-table-wrap {
    margin-bottom: 26px;
  }

  .cart-coupon__row {
    gap: 12px;
  }

  .cart-coupon__input,
  .cart-coupon .ts-btn--leaf {
    flex: 1;
    width: auto;
    height: 40px;
    font-size: 15px;
  }

  .cart-coupon__msg {
    font-size: 13px;
  }

  .cart-totals {
    width: 100%;
    margin: 36px 0 0;
  }

  .cart-totals__table {
    font-size: 15px;
  }

  .cart-totals__table th,
  .cart-totals__table td {
    padding: 0 22px;
  }

  .cart-totals__checkout {
    font-size: 14px;
    height: 40px;
    width: 190px;
  }

  .cart-totals .ts-pay-btn {
    height: 40px;
    font-size: 21px;
  }

  .login-section {
    padding: 40px 0;
  }

  .login-card {
    padding: 40px 18px 34px;
  }

  .login-card__title {
    font-size: 22px;
  }

  .login-card__row {
    margin-bottom: 26px;
  }

  .checkout-section {
    padding-top: 16px;
  }

  .checkout-billing .row > .col-sm-6 {
    width: 100%;
  }

  .notfound {
    padding: 30px 0 50px;
  }

  .notfound__oops {
    font-size: 44px;
    line-height: 52px;
  }

  .notfound__title {
    font-size: 40px;
    line-height: 48px;
  }

  .notfound__text {
    font-size: 15px;
  }

  .notfound__visit {
    margin-top: 60px;
  }

  .notfound__links {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}
