@font-face {
    font-family: 'Digital Display';
    src: url('../fonts/digital-7.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}


@font-face {
    font-family: 'Liberation Sans';
    src: url('../fonts/LiberationSans-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Great Vibes';
    src: url('../fonts/GreatVibes-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Nunito Sans';
    src: url('../fonts/NunitoSans-Regular.ttf') format('truetype');
}

/* Topbar Styles */
.kasws-topbar {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: space-between;
  background: linear-gradient(to right, #7d9cf6, #e79ac7);
  padding: 0.5rem 1rem;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-weight: bold;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.2);
  flex-wrap: nowrap; /* Prevent multiple rows */
}

body.has-kasws-topbar {
  padding-top: 3.75rem;
}

/* Adjust for WordPress admin bar */
body.admin-bar .kasws-topbar {
  top: 2rem;
}

body.admin-bar .kasws_topbar_template_2_container {
  top: 2rem;
}

/* Sale Badge */
.kasws-sale-badge {
  background: red;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.3125rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: 0.5rem;
}

.kasws-tag-image {
  width: 32px;
  height: 32px;
}

/* Offer Text */
.kasws-offer-text {
  flex-grow: 1;
  text-align: center;
  font-size: 0.9rem;
  margin: 0 0.625rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-wrap: wrap;
}

/* Shop Button */
.kasws-shop-btn {
  background: #ff7800;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.3125rem;
  text-decoration: none;
  font-size: 0.875rem;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.3),
    0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
  border: 0.0625rem solid rgba(255, 255, 255, 0.1);
  transform: translateY(-0.125rem);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 0.5rem;
  margin-right: 1.5rem;
}

.kasws-shop-btn:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.375rem 0.5rem rgba(0, 0, 0, 0.4),
    0 0.25rem 0.375rem rgba(0, 0, 0, 0.3);
  color: white;
  text-decoration: none;
}

/* Close Button */
.kasws-close-btn {
  position: absolute;
  top: 0.3rem;
  right: 0.4rem;
  background-color: rgba(255, 0, 0, 0.85);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  width: 18px;
  height: 18px;
  font-size: 1rem;
}

/* Close Button Hover */
.kasws-close-btn:hover {
  background-color: #ff0000;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: white;
}

.kasws-timer {
  display: flex;
  gap: 0.3125rem;
  margin: 0 0.5rem;
}

.kasws-timer-box {
  background: #382c3c;
  padding: 0.25rem 0.3125rem;
  border-radius: 0.4375rem;
  text-align: center;
  min-width: 3.75rem;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.3),
    0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
  border: 0.0625rem solid rgba(255, 255, 255, 0.1);
  transform: translateY(-0.125rem);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kasws-timer-box:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.375rem 0.5rem rgba(0, 0, 0, 0.4),
    0 0.25rem 0.375rem rgba(0, 0, 0, 0.3);
}

.kasws-timer-box .kasws-digit {
  color: orange;
  /* font-size: 1.25rem; */
  font-weight: bold;
  line-height: 1.2;
}

.kasws-timer-box .kasws-label {
  color: white;
  font-size: 0.625rem;
  display: block;
  margin-top: 0.125rem;
  line-height: 1;
}

@media screen and (max-width: 768px) {
  .kasws-topbar {
    padding: 0.375rem 0.625rem;
  }

  .kasws-sale-badge {
    font-size: 0.625rem;
    padding: 0.1875rem 0.375rem;
    margin-right: 0.3rem;
  }
  .kasws-tag-image {
    width: 28px;
    height: 28px;
  }
  .kasws-offer-text {
    font-size: 0.65rem;
    margin: 0 0.3125rem;
    text-wrap: wrap;
  }

  .kasws-shop-btn {
    font-size: 0.675rem;
    padding: 0.3125rem 0.5rem;
    margin-left: 0.3rem;
    margin-right: 1.2rem;
  }

  .kasws-close-btn {
    width: 16px;
    height: 16px;
    font-size: 0.875rem;
    right: 0.3rem;
  }

  .kasws-timer {
    gap: 0.2rem;
    margin: 0 0.3rem;
  }

  .kasws-timer-box {
    min-width: 2.2rem;
    padding: 0.15rem 0.2rem;
  }

  .kasws-timer-box .kasws-digit {
    font-size: 0.75rem;
  }

  .kasws-timer-box .kasws-label {
    font-size: 0.45rem;
    margin-top: 0.1rem;
  }
}

/* Mobile Phones */
@media screen and (max-width: 576px) {
  .kasws-topbar {
    padding: 0.3125rem 0.375rem;
  }

  .kasws-sale-badge {
    font-size: 0.5625rem;
    padding: 0.125rem 0.25rem;
    margin-right: 0.2rem;
  }
  .kasws-tag-image {
    width: 24px;
    height: 24px;
  }
  .kasws-offer-text {
    font-size: 0.425rem;
    line-height: 1.2;
    margin: 0 0.18rem;
    text-wrap: wrap;
  }

  .kasws-shop-btn {
    margin-right: 1rem;
    font-size: 0.5625rem;
    padding: 0.25rem 0.375rem;
    margin-left: 0.2rem;
  }

  .kasws-close-btn {
    width: 14px;
    height: 14px;
    font-size: 0.75rem;
    right: 0.2rem;
  }

  .kasws-timer {
    gap: 0.1rem;
    margin: 0 0.15rem;
  }

  .kasws-timer-box {
    min-width: 2.2rem;
    padding: 0.1rem 0.1rem;
  }

  .kasws-timer-box .kasws-digit {
    font-size: 0.7rem;
    /* line-height: 1.1; */
  }

  .kasws-timer-box .kasws-label {
    font-size: 0.375rem;
    margin-top: 0.05rem;
  }
}

@media screen and (max-width: 380px) {
  .kasws-topbar {
    padding: 0.25rem 0.25rem;
    flex-wrap: nowrap;
  }

  /* Make the sale badge more compact */
  .kasws-sale-badge {
    font-size: 0.4rem;
    padding: 0.1rem 0.15rem;
    margin-right: 0.125rem;
  }

  /* Further shrink the offer text */
  .kasws-offer-text {
    font-size: 0.375rem;
    margin: 0 0.12rem;
    line-height: 1.1;
    max-width: 28%;
  }

  /* Make shop button smaller */
  .kasws-shop-btn {
    font-size: 0.45rem;
    padding: 0.2rem 0.25rem;
    margin-left: 0.1rem;
    margin-right: 1rem;
  }

  .kasws-close-btn {
    width: 12px;
    height: 12px;
    font-size: 0.625rem;
    right: 0.15rem;
  }

  .kasws-timer {
    gap: 0.05rem;
    margin: 0 0.1rem;
  }

  .kasws-timer-box {
    min-width: 1.8rem;
    /* padding: 0.05rem 0.05rem; */
  }

  .kasws-timer-box .kasws-digit {
    font-size: 0.5rem;
  }

  .kasws-timer-box .kasws-label {
    font-size: 0.3rem;
    margin-top: 0.02rem;
  }
}

/* For extra small devices (below 380px) - conditional display */
@media screen and (max-width: 320px) {
  .kasws-timer {
    display: none;
  }
  .kasws-tag-image {
    width: 20px;
    height: 20px;
  }
  .kasws-offer-text {
    max-width: 45%;
  }

  .kasws-shop-btn {
    margin-left: auto;
    margin-right: 1rem;
  }
}

/* For extremely narrow screens (below 320px) */
@media screen and (max-width: 220px) {
  .kasws-offer-text {
    display: none;
  }

  .kasws-topbar {
    justify-content: space-between;
  }

  .kasws-sale-badge {
    margin-right: 0.3rem;
  }

  .kasws-shop-btn {
    margin-left: 0.3rem;
  }
}

/*****************
Percentage badge styles
******************/
.kasws-percent-badge {
  position: relative;
  left: 5px; /* Adjust based on theme */
  font-size: 12px;
  z-index: 10;
  background-color: #e02f2f;
  color: white;
  padding: 5px 5px;
  border-radius: 3px;
  margin-left: 5px;
      vertical-align: middle;
    display: inline-block;
}

/* Hide default sale badge when sitewide sale is active */
body.kasws-sale-active {
  /* hide percentage badge on woodmart */
  .onsale.product-label {
    display: none !important;
  }
  /* hide sale badge on divi */
  .onsale {
    display: none !important;
  }
}

/* On Woodmart Quick view button hiding */
body.kasws-sale-active .wd-quick-view-icon,
body.kasws-sale-active .quick-view {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/****************************
Popup Styles Start here.... 
*****************************/
/* Popup Styles */
#kasws-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999998;
}

.kasws-popup-container {
  background: #000000;
  color: white;
  text-align: center;
  width: 400px;
  max-width: 90%;
  max-height: 80vh;
  margin-top: 100px;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.kasws-popup-close-btn-real {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
  line-height: 1;
  width: 20px;
  height: 20px;
  text-align: center;
  background-color: rgba(255, 0, 0, 0.8);
  border-radius: 50%;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.kasws-popup-close-btn-real:hover {
  background-color: #ff0000;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.kasws-popup-title {
  margin: 0 0 15px;
  font-size: 42px;
  color: white;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 0 10px rgba(255, 46, 99, 0.6);
  line-height: 1.1;
  transform: scale(1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.kasws-popup-text {
  font-size: 16px;
  margin: 0 0 15px;
  color: #ffffff;
}

/* Timer styles */
.kasws-popup-timer {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 10px 5px;
}

.kasws-popup-timer-box {
  background: #382c3c;
  padding: 3px 4px;
  border-radius: 5px;
  border: 0.0625rem solid rgba(255, 255, 255, 0.1);
  text-align: center;
  min-width: 60px;
  display: block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  line-height: 25px;
  transform: translateY(-0.125rem);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.kasws-popup-digit {
  color: orange;
  font-size: 20px;
  font-weight: bold;
}

.kasws-popup-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kasws-popup-timer-box:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.375rem 0.5rem rgba(0, 0, 0, 0.4),
    0 0.25rem 0.375rem rgba(0, 0, 0, 0.3);
}

.kasws-popup-btn {
  display: block;
  background: #ff2e63;
  color: white;
  padding: 10px 8px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  margin: 18px auto 2px;
  width: 50%;
  text-align: center;
  box-shadow: 0 0.5px 0 #3c3a3a;
  transition: transform 0.4s ease, box-shadow 0.2s ease;
  font-size: 16px;
  letter-spacing: 0.03em;
}

.kasws-popup-btn:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.375rem 0.5rem rgba(0, 0, 0, 0.4),
    0 0.25rem 0.375rem rgba(0, 0, 0, 0.3);
  color: white;
  text-decoration: none;
}

/* Responsive adjustments */

@media (max-width: 480px) {
  .kasws-popup-container {
    padding: 1.8rem 0.8rem;
    width: 65%;
  }

  .kasws-popup-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .kasws-popup-text {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .kasws-popup-timer {
    gap: 3px;
  }

  .kasws-popup-timer-box {
    min-width: 35px;
    padding: 1px 2px;
    line-height: 16px;
  }

  .kasws-popup-digit {
    font-size: 16px;
  }

  .kasws-popup-label {
    font-size: 6px;
  }

  .kasws-popup-btn {
    padding: 8px 6px;
    font-size: 14px;
    width: auto;
  }
}


/* Template 2 design */

.kasws_topbar_template_2_container {

      position: fixed;
      top: 0; 
      left: 0;
      right: 0;
      z-index: 999999;
    }

    .kasws-close-btn-template-2 {
      position: absolute;
      top: 5px;
      right: 5px;
      font-size: 18px;
      font-weight: bold;
      color: white;
      background-color: red !important;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 10;
      transition: 
        background-color 0.25s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
    }



    .kasws-close-btn-template-2:hover {
      background-color: #cc0000;    
      transform: scale(1.12);
      box-shadow: 0 2px 6px rgba(0,0,0,0.3); 
      font-weight: bold;
    }


.kasws_topbar_template_2 {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: linear-gradient(to right, #7d9cf6, #e79ac7);
      padding: 8px 16px;
      color: white;
      font-family: Arial, Helvetica, sans-serif;
      font-weight: bold;
      gap: 10px;
      flex-wrap: nowrap;
      overflow: hidden;
    }

    .kasws_topbar_template_2 > * {
      flex: 1;
      min-width: 0;
    }

     .kasws_topbar_template_2_before_time_text {
      text-align: left;
      flex: 1;
      line-height: 1.2;
      min-width: 60px;
    }

    .kasws_topbar_template_2_before_time_text_sale{
      font-size: 16px;
      background: red;
      padding: 8px 10px;
      white-space: normal;        
      text-overflow: initial; 
      border-radius: 0.5rem;
      text-align: center;
      color: White;
      text-align: left;
      flex: 1;
      line-height: 1.2;
      width: fit-content;
    }

    .kasws-sale-badge {
      background: red;
      color: white;
      padding: 0.25rem 0.5rem;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      white-space: nowrap;
      margin-right: 0.5rem;
    }

    .kasws_topbar_template_2_before_time_img {
      width: 60px;
      height: 60px;
    }


    .kasws_topbar_template_2_timer_space_alocation {
      display: flex;
      justify-content: center;
      flex: 1.2;
      min-width: 0;
    }

    .kasws_topbar_template_2_timer {
      display: flex;
      justify-content: center;
      align-items: center;
      border: 1.5px solid silver;
      border-radius: 12px;
      padding: 5px 10px;
      gap: clamp(2px, 0.6vw, 8px);
      flex-shrink: 1;
    }

    .kasws_topbar_template_2_timer_box {
      text-align: center;
      flex-shrink: 1;
    }

    .kasws_timer_label {
      font-size: 9px;
      margin-bottom: 1px;
    }

    .kasws_topbar_template_2_digit {
      background: black;
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 23px;
      border-radius: 8px;
    }

    .kasws_topbar_template_2_content_div {
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 2;
      min-width: 0;
    }

    .kasws_topbar_template_2_content {
      font-size: 18px;
      white-space: normal;         
      overflow-wrap: break-word;
      word-break: break-word;
      text-align: center;
      line-height: 1.2;
    }

    .kasws_topbar_template_2_button_div {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      flex: 1;
      min-width: 0;
      margin-right: 30px;
    }

    .kasws_topbar_template_2_button {
      border-radius: 100px;
      font-family: Arial, Helvetica, sans-serif;
      font-weight: bold;
      background: #ff7800;
      color: white;
      font-size: 15px;
      padding: 6px 12px;
      min-width: fit-content;
      height: auto;
      border: none;
      cursor: pointer;
      white-space: nowrap;
      flex-shrink: 0;
      transition: background-color 0.3s, transform 0.2s;
      text-decoration: none;
    }

.kasws_topbar_template_2_button:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.375rem 0.5rem rgba(0, 0, 0, 0.4),
    0 0.25rem 0.375rem rgba(0, 0, 0, 0.3);
  color: white;
  text-decoration: none;
}


    @media (max-width: 780px) {
      .kasws_topbar_template_2 {
        gap: 6px;
        padding: 6px 10px;
      }
      .kasws_topbar_template_2_timer {
        border-width: 1px;
      }

      .kasws_topbar_template_2_digit{
        width: 31px;
        height: 31px;
        font-size: 20px;
      }

      .kasws_topbar_template_2_content{
        font-size: 13px;
      }

      .kasws_topbar_template_2_button{
        font-size: 13px;
        height: 34px;
      }

      .kasws_topbar_template_2_button_div{
        margin-right: 20px;
      }
      
      .kasws_topbar_template_2_before_time_text_sale{
        font-size: 13px;
            padding: 7px 10px;
      }

      .kasws_topbar_template_2_timer_space_alocation{
        flex: 1.5;
      }

      .kasws_topbar_template_2_content_div{
        flex: 1.5;
      }
    }


    @media (max-width: 480px) {
      .kasws_topbar_template_2 {
        gap: 6px;
        padding: 6px 10px;
      }
      .kasws_topbar_template_2_timer {
        border-width: 1px;
        padding: 5px 5px;
      }

      .kasws_topbar_template_2_digit{
        width: 24px;
        height: 20px;
        font-size: 12px;
        border-radius: 4px;
      }

      .kasws_timer_label {
        font-size: 7px;
      }

      .kasws_topbar_template_2_content{
        font-size: 9px;
      }

      .kasws_topbar_template_2_button{
        font-size: 9px;
        height: 23px;
        padding: 5px 9px;
      }

      .kasws_topbar_template_2_button_div{
        margin-right: 10px;
      }
      
      .kasws_topbar_template_2_before_time_text_sale{
        font-size: 9px;
        padding: 6px 10px;
      }

      .kasws-close-btn-template-2{
        top: 5px;
        right: 5px;
        font-size: 12px;
        width: 12px;
        height: 11px;
      }
    }

    @media (max-width: 390px) {
      .kasws_topbar_template_2 {
        gap: 6px; 
        padding: 6px 10px;
      }
      .kasws_topbar_template_2_timer {
        border-width: 1px;
        padding: 5px 5px;
      }

      .kasws_topbar_template_2_digit{
        width: 18px;
        height: 16px;
        font-size: 9px;
        border-radius: 4px;
      }

      .kasws_timer_label {
        font-size: 5px;
      }

      .kasws_topbar_template_2_content{
        font-size: 8px;
      }

      .kasws_topbar_template_2_button{
        font-size: 8px;
        height: 20px;
        padding: 5px 8px
      }

      .kasws_topbar_template_2_button_div{
        margin-right: 10px;
      }
      
      .kasws_topbar_template_2_before_time_text_sale{
        font-size: 8px;
        padding: 5px 8px;
        border-radius: 4px;
      }

      .kasws-close-btn-template-2{
        top: 5px;
        right: 5px;
        font-size: 11px;
        width: 11px;
        height: 11px;
        padding: 3px 0px 0px 0px;
      }
    }

    /* Topbar Template 3 Design */

    .kasws_topbar_template_3 {
      display: grid;
      grid-template-columns: 1.5fr 3fr 1fr;
      align-items: center;
      background: linear-gradient(to right, #7d9cf6, #e79ac7);
      color: white;
      padding: 12px 20px;
      font-family: Arial, Helvetica, sans-serif;
      font-weight: bold;
      width: 100%;
      gap: 16px;
      box-sizing: border-box;
    }

    .kasws_topbar_template_3_part_1 {
      display: flex;
      flex-direction: column;
      justify-content: center;
      border-right: 2px solid rgba(255, 255, 255, 0.6);
      padding-right: 25px;
      margin-left: 15px;
      min-width: 0;
    }

    .kasws-close-btn-template-3 {
      font-size: 15px !important;
    }

    .kasws_topbar_template_3_part_1_sale_name {
      font-size: 16px;
      white-space: normal;
      overflow-wrap: break-word;
      text-align: left; 
    }

    .kasws_topbar_template_3_part_1_timer {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: nowrap;
    }

    .kasws_topbar_template_3_part_1_timer_box {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      line-height: 1; 
      min-width: 0;
    }

    .kasws_topbar_template_3_part_1_digit {
      font-size: 28px;
      font-family: sans-serif;
      font-weight: bold;
      border-radius: 10px;
      line-height: 1;
      text-align: left;
      min-width: 31px;
      margin-bottom: 0; 
    }

    .kasws_topbar_template_3_part_1_colon {
        position: relative;
        bottom: 5px;
        font-size: 22px;
        font-weight: bold;
        flex-shrink: 0;
        margin-bottom: 0;
        line-height: 1; 
        padding-bottom: 2px;
    }

    .kasws_topbar_template_3_part_1_label {
      font-size: 9.5px;
      align-self: center;
      margin-top: 0; 
    }

    .kasws_topbar_template_3_part_2 {
      text-align: center;
      font-size: 20px;
      font-weight: bold;
      line-height: 1.2;
      word-break: break-word;
      overflow-wrap: break-word;
      white-space: normal;
      min-width: 0;
    }

    .kasws_topbar_template_3_part_3 {
      justify-self: right;
      min-width: 0;
      width: fit-content;
      margin-right: 30px;
    }

    .kasws_topbar_template_3_part_3_button {
      border: none;
      background: none;
      color: white;
      font-size: 15px;
      background: #ff7800;
      padding: 10px 14px;
      font-weight: bold;
      border-radius: 100px;
      cursor: pointer;
      white-space: nowrap;
      text-decoration: none;
    }


    @media (max-width: 970px){
      .kasws_topbar_template_3_part_1_digit{
        font-size: 24px;
      }

      .kasws_topbar_template_3_part_1_label{
        font-size: 9px;
      }

      .kasws_topbar_template_3_part_1_timer{
        gap: 1px;
      }

      .kasws_topbar_template_3_part_1_sale_name{
        font-size: 15px;
      }

      .kasws_topbar_template_3_part_3_button{
        font-size: 14px;
      }
    }


    @media (max-width: 768px){
      .kasws_topbar_template_3_part_1_digit{
        font-size: 23px;
        min-width: 25px;
      }

      .kasws_topbar_template_3_part_1_label{
        font-size: 8px;
      }

      .kasws_topbar_template_3_part_1_timer{
        gap: 2px;
      }

      .kasws_topbar_template_3_part_1_sale_name{
        font-size: 14px;
      }

      .kasws_topbar_template_3_part_3_button{
        font-size: 13px;
      }

      .kasws_topbar_template_3_part_1_colon{
        font-size: 19px;
      }

      .kasws_topbar_template_3_part_2{
        font-size: 18px;
      }
    }

    @media (max-width: 680px){
      .kasws_topbar_template_3_part_1{
        margin-left: 0px;
        padding-right: 0px;
        min-width: 150px;
      }

      .kasws_topbar_template_3_part_1_label{
        font-size: 7px;
      }

      .kasws_topbar_template_3_part_1_digit {
        font-size: 20px;
        min-width: 22px;
      }

      .kasws_topbar_template_3_part_1_sale_name{
        font-size: 12px;
      }

      .kasws_topbar_template_3{
        grid-template-columns: 1.5fr 2.4fr 1fr;
      }

      .kasws_topbar_template_3_part_2{
        font-size: 15px;
      }

      .kasws_topbar_template_3_part_3_button{
        font-size: 11px;
        padding: 8px 9px;
      }

      .kasws_topbar_template_3_part_3{
        margin-right: 2px;
      }

      .kasws-close-btn-template-2{
        font-size: 12px;
        width: 15px;
        height: 15px;
        padding-top: 0px;
      }

      .kasws_topbar_template_3_part_1_colon{
        font-size: 18px;
      }

    }
    
    @media (max-width: 500px){
      .kasws_topbar_template_3_part_1{
        min-width: 110px;
        margin-left: 0px;
      }

      .kasws_topbar_template_3_part_1_label{
        font-size: 6px;
      }

      .kasws_topbar_template_3_part_1_digit {
        font-size: 16px;
        min-width: 18px;
      }

      .kasws_topbar_template_3_part_1_sale_name{
        font-size: 12px;
      }

      .kasws_topbar_template_3{
        grid-template-columns: 1.5fr 2.4fr 1fr;
      }

      .kasws_topbar_template_3_part_2{
        font-size: 12px;
      }

      .kasws_topbar_template_3_part_3_button{
        font-size: 10px;
        padding: 7px 6px;
      }

      .kasws_topbar_template_3_part_3{
        margin-right: 2px;
      }

      .kasws-close-btn-template-2{
        font-size: 11px;
        width: 13px;
        height: 13px;
        padding-top: 0px;
      }

      .kasws_topbar_template_3_part_1_colon{
        font-size: 16px;
        padding-top: 4px;
      }

      .kasws_topbar_template_3_part_1_timer{
        gap: 0px;
        width: fit-content;
      }
    }

    @media (max-width: 390px){
      .kasws_topbar_template_3{
        grid-template-columns: 1.5fr 2.4fr 1.4fr;
        gap: 0px;
      }
    }


    /* Popup Template 2 Design */

    .kasws-popup-container-template-2 {
            background: linear-gradient(135deg, #dad2cc 0%, #c8b5a6 100%);
            color: white; 
            text-align: center;
            width: 380px;
            max-width: 90%;
            max-height: 80vh;
            padding: 100px 40px 56px 40px;
            border-radius: 32px;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            border: 3px solid #b89968;
            margin: 150px 0px 0px;
            box-sizing: border-box;
        }

        .kasws-popup-close-btn-template-2 {
            position: absolute;
            top: 2%;
            right: 2%;
            font-size: 28px;
            font-weight: 300;
            cursor: pointer;
            color: #fff;
            transition: all 0.3s ease;
            line-height: 1;
            width: 36px;
            height: 36px;
            text-align: center;
            background-color: transparent;
            border-radius: 50%;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.8;
            box-shadow: none;
        }

        .kasws-popup-close-btn-template-2:hover {
            opacity: 1;
            transform: rotate(90deg);
            background-color: inherit;
            border-color: inherit;
            box-shadow: none;
        }

        .kasws-popup-title-template-2 {
            margin-bottom: 3px;
            font-size: 26px;
            color: #2c2c2c;
            font-weight: 445;
            text-transform: uppercase;
            line-height: 1.1;
            font-family: 'Liberation Sans';
            margin-top: 0px;
        }

        .kasws-popup-title-highlight-template-2 {
            font-weight: 300;
            color: #fff;
            font-size: 28px;
            margin-top: 5px;
            /* letter-spacing: 0.08em; */
        }

        .kasws-popup-text-template-2 {
            font-size: 33px;
            margin: 0 0 20px;
            color: #4a4a4a;
            font-weight: 400;
            font-family: 'Great Vibes';
        }

        /* Timer styles */
        .kasws-popup-timer-template-2 {
            display: flex;
            justify-content: center;
            gap: 6px;
            margin: 43px 0 68px;
        }

        .kasws-popup-timer-box-template-2 {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .kasws-popup-digit-template-2 {
            font-family: 'Nunito Sans';
            color: #2c2c2c;
            font-size: 43px;
            font-weight: 300;
            line-height: 1;
            margin-bottom: 8px;
            letter-spacing: -0.02em;
        }

        .kasws-popup-separator-template-2 {
            color: #2c2c2c;
            font-size: 36px;
            font-weight: 300;
            line-height: 1;
            align-self: flex-start;
            font-weight: 400;
            font-family: 'Liberation Sans';
        }

        .kasws-popup-label-template-2 {
            font-size: 12px;
            color: #403f40;
            text-transform: uppercase;
            font-weight: normal;
            margin-top: 5px;
            font-family: 'Liberation Sans';
        }

        .kasws-popup-btn-template-2 {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, #c8b5a6 0%, #b89968 100%);
            color: white;
            padding: 7px 40px;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            margin: 0 auto;
            text-align: center;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            font-size: 16px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            border: none;
            font-family: 'Liberation Sans';
        }

        .kasws-popup-btn-template-2:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            color: white;
            text-decoration: none;
            background: linear-gradient(135deg, #b89968 0%, #a88858 100%);
        }

        .kasws-popup-btn-icon-template-2 {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        /* Responsive adjustments */


@media (max-width: 480px) {
    .kasws-popup-container-template-2 {
        width: 320px;
        max-width: 85%;
        padding: 80px 30px 45px 30px;
        border-radius: 28px;
    }
    .kasws-popup-close-btn-template-2 {
        font-size: 24px;
        width: 32px;
        height: 32px;
    }
    .kasws-popup-title-template-2 {
        font-size: 22px;
        margin-bottom: 2px;
    }
    .kasws-popup-title-highlight-template-2 {
        font-size: 24px;
        margin-top: 4px;
    }
    .kasws-popup-text-template-2 {
        font-size: 28px;
        margin: 0 0 16px;
    }

    .kasws-popup-timer-template-2 {
        gap: 5px;
        margin: 35px 0 55px;
    }
    .kasws-popup-digit-template-2 {
        font-size: 36px;
        margin-bottom: 6px;
    }
    .kasws-popup-separator-template-2 {
        font-size: 30px;
    }
    .kasws-popup-label-template-2 {
        font-size: 10px;
        margin-top: 4px;
    }
    /* Button */
    .kasws-popup-btn-template-2 {
        padding: 7px 32px;
        font-size: 14px;
        gap: 8px;
    }
    .kasws-popup-btn-icon-template-2 {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 380px) {
    .kasws-popup-container-template-2 {
        width: 280px;
        max-width: 82%;
        padding: 70px 25px 40px 25px;
    }
    .kasws-popup-title-template-2 {
        font-size: 20px;
    }
    .kasws-popup-title-highlight-template-2 {
        font-size: 22px;
    }
    .kasws-popup-text-template-2 {
        font-size: 26px;
        margin-bottom: 14px;
    }
    .kasws-popup-timer-template-2 {
        gap: 4px;
        margin: 30px 0 50px;
    }
    .kasws-popup-digit-template-2 {
        font-size: 32px;
        margin-bottom: 5px;
    }
    .kasws-popup-separator-template-2 {
        font-size: 28px;
    }
    .kasws-popup-btn-template-2 {
        padding: 6px 28px;
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    .kasws-popup-container-template-2 {
        width: 260px;
        max-width: 88%;
        padding: 60px 20px 35px 20px;
        border-radius: 24px;
    }
    .kasws-popup-close-btn-template-2 {
        font-size: 22px;
        width: 28px;
        height: 28px;
    }
    .kasws-popup-title-template-2 {
        font-size: 18px;
    }
    .kasws-popup-title-highlight-template-2 {
        font-size: 20px;
        margin-top: 3px;
    }
    .kasws-popup-text-template-2 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    .kasws-popup-timer-template-2 {
        gap: 3px;
        margin: 28px 0 45px;
    }
    .kasws-popup-digit-template-2 {
        font-size: 28px;
        margin-bottom: 5px;
    }
    .kasws-popup-separator-template-2 {
        font-size: 24px;
    }
    .kasws-popup-label-template-2 {
        font-size: 9px;
        margin-top: 3px;
    }
    .kasws-popup-btn-template-2 {
        font-size: 12px;
        padding: 6px 24px;
        gap: 6px;
    }
    .kasws-popup-btn-icon-template-2 {
        width: 16px;
        height: 16px;
    }
}

@media (max-height: 700px) {
    .kasws-popup-container-template-2 {
        padding: 70px 30px 40px 30px;
        max-height: 92vh;
    }
    .kasws-popup-text-template-2 {
        margin-bottom: 14px;
    }
    .kasws-popup-timer-template-2 {
        margin: 30px 0 45px;
    }
}

@media (max-height: 600px) {
    .kasws-popup-container-template-2 {
        padding: 55px 30px 35px 30px;
        max-height: 94vh;
    }
    .kasws-popup-title-template-2 {
        font-size: 22px;
        margin-bottom: 2px;
    }
    .kasws-popup-title-highlight-template-2 {
        font-size: 24px;
    }
    .kasws-popup-text-template-2 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    .kasws-popup-timer-template-2 {
        margin: 25px 0 40px;
    }
    .kasws-popup-digit-template-2 {
        font-size: 36px;
        margin-bottom: 5px;
    }
}

@media (max-width: 380px) and (max-height: 650px) {
    .kasws-popup-container-template-2 {
        padding: 55px 22px 32px 22px;
    }
    .kasws-popup-timer-template-2 {
        margin: 25px 0 38px;
    }
}


        
/* Popup Template 3 Design */

.kasws-popup-container-template-3 {
            background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
            color: #333;
            text-align: center;
            width: fit-content;
            max-width: 90%;
            padding: 45px 35px 15px 35px;
            border-radius: 20px;
            position: relative;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            border: 4px solid #a8884f;
            margin: 150px 0px 0px;
        }

        .kasws-popup-close-btn-template-3 {
            position: absolute;
            top: 10px;
            right: 5px;
            font-size: 24px;
            font-weight: 300;
            cursor: pointer;
            color: #333;
            transition: all 0.3s ease;
            line-height: 1;
            width: 32px;
            height: 32px;
            text-align: center;
            background-color: transparent;
            border-radius: 50%;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.6;
            background-color: inherit;
            border: none;
            box-shadow: none;
        }

        .kasws-popup-close-btn-template-3:hover {
            opacity: 1;
            transform: scale(1.1);
            background-color: inherit;
            border: none;
            box-shadow: none;

        }

        .kasws-popup-title-template-3 {
            margin: 0 0 15px;
            font-size: 32px;
            color: #d4af37;
            font-weight: 400;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            line-height: 1.2;
            font-family: 'Georgia', serif;
            font-weight: 600;
        }

        .kasws-popup-subtitle-template-3 {
            font-size: 16px;
            margin: 0 0 35px;
            color: #666;
            font-weight: 400;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        /* Digital Timer Box */
        .kasws-popup-timer-container-template-3 {
            background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
            border: 3px solid #a8884f;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            max-width: 325px;
            width: fit-content;
            align-self: center;
            padding: 0px 9px;
            margin-bottom: 25px;
        }

        .kasws-popup-timer-template-3 {
            display: flex;
            justify-content: center;
            align-items: center;
            line-height: normal;
        }

        .kasws-popup-timer-box-template-3 {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 2px 0px;
            gap: 2px;
        }

        .kasws-popup-digit-template-3 {
            font-family: 'Digital Display';
            color: #eace8b;
            font-size: 61px;
            font-weight: 700;
            letter-spacing: 4px;
            min-width: 65px;
            min-height: 49px;
            margin-top: 7px;
        }

        .kasws-popup-separator-template-3 {
            color: #eace8b;
            font-size: 61px;
            font-weight: 700;
            align-self: flex-start;
            font-family: 'Digital Display';
            margin-top: 9px;
        }

        .kasws-popup-label-template-3 {
            font-size: 10px;
            color: #eace8b;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            font-weight: 500;
            font-family: sans-serif;
            font-size: 10px;
            margin: 4px 0px 1px 0px;
        }

        /* Button Styles */
        .kasws-popup-btn-template-3 {
            display: inline-block;
            background: transparent;
            color: #d4af37;
            padding: 14px 50px;
            border-radius: 6px;
            font-weight: 600;
            text-decoration: none;
            margin: 15px auto 0;
            text-align: center;
            transition: all 0.3s ease;
            font-size: 14px;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            border: 2px solid #d4af37;
            cursor: pointer;
        }

        .kasws-popup-btn-template-3:hover {
            background: #d4af37;
            color: #fff;
            text-decoration: none;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
        }

        .kasws-popup-decline-template-3 {
          top: auto !important;          
            display: block;
            margin-top: 20px;
            font-size: 14px;
            color: #666 !important;
            text-decoration: none;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .kasws-popup-decline-template-3:hover {
            color: #333;
            text-decoration: underline;
        }

/* -------------------------------------------------------
   RESPONSIVE STYLES — TEMPLATE 3 
   (Matches structure, breakpoints & scaling of Template-2)
---------------------------------------------------------*/

/* ----------- 480px ----------- */
@media (max-width: 480px) {
    .kasws-popup-container-template-3 {
        padding: 35px 28px 12px 28px;
        border-radius: 18px;
        max-width: 88%;
    }

    .kasws-popup-close-btn-template-3 {
        font-size: 22px;
        width: 30px;
        height: 30px;
    }

    .kasws-popup-title-template-3 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .kasws-popup-subtitle-template-3 {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .kasws-popup-timer-container-template-3 {
        max-width: 270px;
        padding: 0px 10px;
    }

    .kasws-popup-digit-template-3 {
        font-size: 52px;
        min-width: 55px;
        min-height: 40px;
        margin-top: 6px;
    }

    .kasws-popup-separator-template-3 {
        font-size: 52px;
        margin-top: 7px;
    }

    .kasws-popup-label-template-3 {
        font-size: 9px;
        margin-top: 3px;
    }

    .kasws-popup-btn-template-3 {
        padding: 12px 40px;
        font-size: 13px;
        margin-top: 12px;
    }

    .kasws-popup-decline-template-3 {
        font-size: 13px;
        margin-top: 16px;
    }
}

/* ----------- 380px ----------- */
@media (max-width: 380px) {
    .kasws-popup-container-template-3 {
        padding: 30px 22px 12px 22px;
        max-width: 92%;
    }

    .kasws-popup-title-template-3 {
        font-size: 25px;
    }

    .kasws-popup-subtitle-template-3 {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .kasws-popup-timer-container-template-3 {
        max-width: 240px;
        padding: 0px 8px;
    }

    .kasws-popup-digit-template-3 {
        font-size: 46px;
        min-width: 48px;
        min-height: 34px;
    }

    .kasws-popup-separator-template-3 {
        font-size: 46px;
        margin-top: 6px;
    }

    .kasws-popup-label-template-3 {
        font-size: 8px;
    }

    .kasws-popup-btn-template-3 {
        padding: 10px 34px;
        font-size: 12px;
    }

    .kasws-popup-decline-template-3 {
        font-size: 12px;
    }
}

/* ----------- 320px ----------- */
@media (max-width: 320px) {
    .kasws-popup-container-template-3 {
        padding: 26px 18px 10px 18px;
        border-radius: 16px;
    }

    .kasws-popup-close-btn-template-3 {
        font-size: 20px;
        width: 26px;
        height: 26px;
    }

    .kasws-popup-title-template-3 {
        font-size: 22px;
        letter-spacing: 0.04em;
    }

    .kasws-popup-subtitle-template-3 {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .kasws-popup-timer-container-template-3 {
        max-width: 210px;
        padding: 0px 6px;
    }

    .kasws-popup-digit-template-3 {
        font-size: 40px;
        min-width: 40px;
        min-height: 30px;
        margin-top: 4px;
    }

    .kasws-popup-separator-template-3 {
        font-size: 40px;
        margin-top: 5px;
    }

    .kasws-popup-label-template-3 {
        font-size: 7px;
        margin-top: 2px;
    }

    .kasws-popup-btn-template-3 {
        font-size: 11px;
        padding: 9px 28px;
    }
}

/* ----------- Height based responsiveness ----------- */
@media (max-height: 700px) {
    .kasws-popup-container-template-3 {
        padding: 35px 24px 12px 24px;
    }

    .kasws-popup-subtitle-template-3 {
        margin-bottom: 25px;
    }

    .kasws-popup-timer-container-template-3 {
        margin-bottom: 10px;
    }
}

@media (max-height: 600px) {
    .kasws-popup-container-template-3 {
        padding: 28px 20px 10px 20px;
    }

    .kasws-popup-title-template-3 {
        font-size: 24px;
    }

    .kasws-popup-separator-template-3 {
      font-size: 48px;
    }

    .kasws-popup-subtitle-template-3 {
        font-size: 13px;
    }

    .kasws-popup-digit-template-3 {
        font-size: 48px;
        min-height: 38px;
        min-width: 51px;


    }
}

/* Combined height + width tight layout */
@media (max-width: 380px) and (max-height: 650px) {
    .kasws-popup-container-template-3 {
        padding: 24px 16px 10px 16px;
    }

    .kasws-popup-timer-container-template-3 {
        margin-bottom: 12px;
    }
}



/* Product Page counter setting */

.custom-top-right-label_content{
    box-sizing: content-box;
    content: "";
    display: block;
    height: fit-content;
    left:0px;
    top: 0px;
    position: absolute;
    width: max-content;
    font-size: 15px;
    top: 10px; 
    left: 10px; 
    z-index: 999;
    box-sizing: border-box;
  }

  .custom-top-right-label_content .kasws-product-timer{
    visibility: hidden;
  }

   
 .kasws-product-timer {
  display: flex;
  align-items: stretch;
  gap: 6px;

  width: 100%;
  flex-basis: 100%;
}

.kasws-product-timer-price{
  margin-top: 10px;
  margin-bottom: 10px;
}
.kasws-product-box {
  width: 42px;
  padding: 6px 4px;
  background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
  border-radius: 8px;
  text-align: center;
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

  
  .kasws-product-digit,
.kasws-product-label {
  display: block;
  line-height: 1;
}
  
  .kasws-product-digit {
  font-size: 18px;
  font-weight: 700;
  color: #ff6b6b;
  text-shadow: 0 2px 8px rgba(255,107,107,0.5);
}

.kasws-product-label {
  margin-top: 7px;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

  .price{
    align-items: center !important;
  }


  .kasws-product-timer-with-variable{
    display: none;
  }

