/** 
** Discount  Carousel
*/

.discounts-carousel-widget {
  --widget-theme-color: #cd143f;

  display: flex;
  background-color: #d8e0ef;
  border-radius: 8px;
  padding: 24px;
}

.discounts-carousel-widget.backlink {
  --widget-theme-color: #0049b7;
}

.discounts-carousel-widget .side {
  position: relative;
  width: 25%;
  display: flex;
  gap: 32px;
}

.discounts-carousel-widget .side .below {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.discounts-carousel-widget .side .below h2 {
  font-size: 16px;
  text-align: center;
  color: var(--widget-theme-color);
  margin: 0;
}

.discounts-carousel-widget .side .below img {
  width: 64px;
  height: auto;
  margin-bottom: 32px;
}

.discounts-carousel-widget .side .below a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 24px;
  color: var(--widget-theme-color);
}

.discounts-carousel-widget .side .below a:hover {
  color: var(--widget-theme-color);
}

.discounts-carousel-widget .side .below a svg {
  width: 10px;
  height: auto;
  transform: rotate(180deg);
  fill: var(--widget-theme-color);
}

.discounts-carousel-widget .side .above {
  position: absolute;
  width: 100%;
  bottom: 0;
  right: 0;
  background: #d8e0ef;
  transition: all 0.25s linear;
}

.discounts-carousel-widget:hover .side .above {
  opacity: 0;
  visibility: hidden;
  z-index: -1;
}

.discounts-carousel-widget .side .counter-root {
  display: flex;
}

.discounts-carousel-widget .side .counter-root {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 4px;
}

.discounts-carousel-widget .side .counter-root > span {
  color: var(--widget-theme-color);
  font-size: 20px;
  line-height: 1;
  margin-top: 4px;
}

.discounts-carousel-widget .side .counter-root .counter-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.discounts-carousel-widget .side .counter-root .counter-col .box {
  background: var(--widget-theme-color);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 0 6px;
  line-height: 1;
  font-size: 15px;
  width: 40px;
  text-align: center;
}

.discounts-carousel-widget .side .counter-root .counter-col span {
  font-size: 10px;
  font-weight: 700;
  color: var(--widget-theme-color);
}

.discounts-carousel-widget .list {
  width: 75%;
}

.discounts-carousel-widget .list .splide__slide .box {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.discounts-carousel-widget .list .splide__slide .box .header {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
}

.discounts-carousel-widget .list .splide__slide .box .header .icon {
  width: 40px;
  height: auto !important;
  flex-shrink: 0;
}

.discounts-carousel-widget .list .splide__slide .box .header .titles {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-right: 12px;
}

.discounts-carousel-widget .list .splide__slide .box .header .titles > h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.discounts-carousel-widget .list .splide__slide .box .header .titles > h4 {
  font-size: 13px;
  margin: 0;
  font-weight: 300;
  color: #888;
}

.discounts-carousel-widget .list .splide__slide .box .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.discounts-carousel-widget .list .splide__slide .box .badge {
  background: #f43f5e;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  padding: 5px 10px 2px;
  border-radius: 16px;
  font-size: 15px;
}

.discounts-carousel-widget .list .splide__slide .box .prices {
  display: flex;
  flex-direction: column;
}

.discounts-carousel-widget .list .splide__slide .box .prices .before {
  line-height: 1.5;
  color: #888;
  font-size: 15px;
  text-decoration: line-through;
}

.discounts-carousel-widget .list .splide__slide .box .prices .after {
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.discounts-carousel-widget .list .splide__slide .box .prices .after strong {
  font-size: 20px;
  color: #333;
}

.discounts-carousel-widget .list .splide__slide .box .prices .after span {
  font-size: 14px;
  color: #888;
}

.discounts-carousel-widget .splide__arrow {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  padding: 6px 10px 0px;
}

.discounts-carousel-widget .splide__arrow:hover {
  background-color: #fff;
}

.discounts-carousel-widget .splide__arrow svg {
  width: 0.625rem;
}

@media only screen and (max-width: 1024px) {
  .discounts-carousel-widget {
    flex-direction: column;
    gap: 16px;
  }

  .discounts-carousel-widget .side,
  .discounts-carousel-widget .list {
    width: 100%;
  }
}

/**
* File Download
**/
.tfd .tfd-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
}

.tfd .tfd-button.tfd-button--block {
  width: 100%;
  justify-content: center;
}

.tfd .tfd-button.tfd-button--white {
  background-color: #fff;
  border-color: #fff;
  color: #ce1340;
}

.tfd .tfd-button svg {
  width: 20px;
  height: auto;
  fill: #fff;
}

.tfd .tfd-button.tfd-button--white svg {
  fill: #ce1340;
}

.tfd .tfd-modal {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  z-index: -1;
}

.tfd .tfd-modal.active {
  visibility: visible;
  opacity: 1;
  z-index: 99999999;
}

.tfd .tfd-modal .tfd-box {
  background-color: #fff;
  border-radius: 8px;
  width: 400px;
  max-width: calc(100% - 16px);
}

.tfd .tfd-modal .tfd-box .tfd-body {
  padding: 1rem 1rem 0;
}

.tfd .tfd-modal .tfd-box .tfd-header {
  border-bottom: 1px solid #ccc;
  padding: 1rem;
  position: relative;
}

.tfd .tfd-modal .tfd-box .tfd-header .tfd-title {
  font-weight: bold;
  text-align: right;
}

.tfd .tfd-close {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  padding: 6px;
  display: flex;
  border: none;
  transition: all 0.2s ease-in-out;
  width: auto !important;
}

.tfd .tfd-close svg {
  fill: #444 !important;
}

.tfd .tfd-close:hover {
  background-color: #eee;
}

.tfd .tfd-close svg {
  width: 12px;
  height: auto;
}

.tfd .tfd-form .gform_validation_errors {
  display: none;
}

.tfd .tfd-form .gfield_error label {
  color: #ce1340 !important;
}

.tfd .tfd-form .gfield_error [aria-invalid="true"] {
  border-color: #ce1340;
}

.tfd .gfield {
  margin-bottom: 0rem !important;
  text-align: right;
}

.tfd .tfd-form .gfield_validation_message {
  padding: 0 !important;
  color: #ce1340 !important;
  border: none !important;
  font-size: 13px !important;
  background: transparent !important;
  line-height: 1 !important;
}

.tfd .tfd-form .gfield_required {
  color: #ce1340 !important;
  font-style: normal !important;
}

.tfd .tfd-form .gform_button {
  border-radius: 8px !important;
}

/**
  * Success Message
  **/

.tfd .tfd-success {
  display: flex;
  flex-direction: column;
  background: #f3f3f3;
  margin-bottom: 1rem;
  border-radius: 8px;
  padding: 1rem;
}

.tfd .tfd-success .tfd-message {
  text-align: center;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.tfd .tfd-success .tfd-message > div {
  font-weight: bold;
}

.tfd .tfd-success .tfd-message > span {
  font-size: 12px;
  color: #777;
}

.tfd .tfd-success .tfd-success-download {
  display: flex;
  align-items: center;
  background: #ce1340;
  align-self: center;
  padding: 0.25rem 1rem;
  border-radius: 8px;
  color: #fff;
  gap: 10px;
}

.tfd-success-download svg {
  width: 16px;
  height: auto;
  fill: #fff;
}

/**
** Switch Tab
**/

.switch-tab-widget {
  display: flex;
  justify-content: center;
  position: relative;
}

.switch-tab-widget::before {
  content: "";
  width: 100%;
  border-bottom: 1px solid #ddd;
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.switch-tab-widget .box {
  display: grid;
  background: #004060;
  color: #fff;
  border-radius: 32px;
  font-size: 14px;
  overflow: hidden;
  grid-auto-columns: minmax(0, 1fr);
  border: 4px solid #004060;
  font-weight: 600;
  grid-auto-flow: column;
}

.switch-tab-widget .box .option {
  padding: 0.25rem 1.5rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.switch-tab-widget .box .option.active {
  background-color: #fff;
  color: #004060;
  border-radius: 32px;
}
