/* Twofishe Shop: styles for the plugin's own parts. --tf-accent is set from the Twofishe settings page. */

/* free-delivery bar (basket and checkout) */
.tf-freeship { max-width: 1180px; margin: 0 auto 24px; }
.tf-freeship__text { color: #858588; margin-bottom: 10px; }
.tf-freeship__text strong { color: #273647; }
.tf-freeship__track { height: 8px; background: #E6E6E6; border-radius: 99px; overflow: hidden; }
.tf-freeship__fill { display: block; height: 100%; width: 0; background: #273647; border-radius: 99px; transition: width .4s ease; }
.cart_totals .tf-freeship { margin: 0 0 20px; }

/* reassurance lines under add to basket */
.tf-reassure { list-style: none; margin: 4px 0 20px; padding: 14px 0 0; border-top: 1px solid #E6E6E6; font-size: 14px; color: #555; }
.tf-reassure li { margin: 0 0 6px; padding-left: 22px; position: relative; list-style: none; }
.tf-reassure li:before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--tf-accent, #2D7A73); font-weight: 700; }
.tf-reassure a { color: inherit; text-decoration: underline; }

/* thank-you card (order received page) */
.tf-thanks { background: #fff; border-radius: 8px; padding: 32px 36px; margin: 0 0 32px; }
.tf-thanks h2 { text-transform: lowercase; font-size: 32px; margin: 0 0 8px; }
.tf-thanks__lead { font-size: 17px; color: #555; max-width: 720px; margin-bottom: 28px; }
.tf-thanks .tf-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; position: relative; margin-top: 10px; }
.tf-thanks .tf-steps:before { content: ""; position: absolute; top: 28px; left: 28px; width: calc(2 * ((100% - 72px) / 3 + 36px)); border-top: 2px dashed #E6E6E6; border-top-color: color-mix(in srgb, var(--tf-accent, #2D7A73) 30%, #fff); }
.tf-thanks .tf-step { position: relative; }
.tf-thanks .tf-num { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--tf-accent, #2D7A73); color: #fff; font-weight: 700; font-size: 24px; margin-bottom: 16px; box-shadow: 0 0 0 8px #fff; }
.tf-thanks .tf-step h3 { font-size: 20px; margin: 0 0 6px; }
.tf-thanks .tf-step p { color: #555; margin: 0; }
.tf-thanks__small { color: #858588; font-size: 14px; margin: 28px 0 0; }
@media (max-width: 700px) {
  .tf-thanks { padding: 24px 20px; }
  .tf-thanks .tf-steps { grid-template-columns: 1fr; gap: 24px; }
  .tf-thanks .tf-steps:before { display: none; }
}

/* twofishe group line */
.tf-group a { color: inherit; text-decoration: none; }
.tf-group a:hover { text-decoration: underline; }
.tf-group__soon { opacity: .75; }

/* season tile among the range squares */
.tf-season-tile .tf-ranges__img { position: relative; }
.tf-season-tile__badge { position: absolute; top: 8px; left: 8px; background: var(--tf-accent, #2D7A73); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 9px; border-radius: 99px; text-transform: lowercase; letter-spacing: .02em; }
.tf-ranges--season { list-style: none; margin: 0; padding: 0; }
.tf-season-next { text-align: center; color: #555; }

/* slider (twofishe.com) */
.tf-slider { position: relative; overflow: hidden; border-radius: 8px; margin: 0 0 24px; background: #f2f2f2; touch-action: pan-y; }
.tf-slider__track { display: flex; transition: transform .6s ease; will-change: transform; }
.tf-slide { flex: 0 0 100%; position: relative; aspect-ratio: 16 / 5; }
.tf-slide a { display: block; height: 100%; color: inherit; text-decoration: none; }
.tf-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-slide__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 48px 40px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tf-slide__head { font-size: clamp(24px, 3.4vw, 44px); font-weight: 700; line-height: 1.1; text-transform: lowercase; }
.tf-slide__words { font-size: clamp(14px, 1.4vw, 18px); max-width: 640px; }
.tf-slide__button { margin-top: 8px; background: var(--tf-accent, #2D7A73); color: #fff; padding: 10px 20px; border-radius: 99px; font-weight: 700; font-size: 15px; text-transform: lowercase; }
.tf-slider__prev, .tf-slider__next { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #273647; font-size: 28px; line-height: 38px; padding: 0; cursor: pointer; opacity: 0; transition: opacity .2s; }
.tf-slider__prev { left: 12px; } .tf-slider__next { right: 12px; }
.tf-slider:hover .tf-slider__prev, .tf-slider:hover .tf-slider__next, .tf-slider__prev:focus-visible, .tf-slider__next:focus-visible { opacity: 1; }
.tf-slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.tf-slider__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.tf-slider__dots button[aria-current="true"] { background: #fff; }
@media (max-width: 700px) {
  .tf-slide { aspect-ratio: 4 / 3; }
  .tf-slide__text { padding: 40px 18px 34px; }
  .tf-slider__prev, .tf-slider__next { display: none; }
}

/* picture tiles (twofishe.com) */
.tf-tiles { margin: 0 0 32px; text-align: center; }
.tf-tiles__title { margin: 0 0 6px; text-transform: lowercase; }
.tf-tiles__words { color: #555; margin: 0 auto 18px; max-width: 720px; }
.tf-tiles__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tf-tiles__row li { margin: 0; list-style: none; }
.tf-tiles__row a { display: block; color: inherit; text-decoration: none; }
.tf-tiles__row img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 8px; transition: opacity .2s; }
.tf-tiles__row a:hover img { opacity: .88; }
.tf-tiles__label { display: block; margin-top: 8px; font-weight: 700; text-transform: lowercase; }
@media (max-width: 700px) { .tf-tiles__row { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 549px) { .tf-season-tile__badge { display: none; } .tf-season-tile .tf-ranges__name { color: var(--tf-accent, #2D7A73); } }
