/* Pricing Plan Switcher */
.bdt-pricing-plan .bdt-pricing-switcher {
  margin: 0 0 30px;
}

.bdt-pricing-plan .bdt-pricing-switcher .bdt-subnav {
  background-color: #fff;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #e5e5e6;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin: 0;
  position: relative;
}

.bdt-pricing-plan .bdt-pricing-switcher .bdt-subnav li {
  padding-left: 0;
  width: auto;
}

.bdt-pricing-plan .bdt-pricing-switcher .bdt-subnav li a {
  padding: 10px 20px;
  color: #000;
  font-weight: 700;
  text-transform: capitalize;
}

.bdt-pricing-plan .bdt-pricing-switcher .bdt-subnav-pill > * > a:hover {
  background-color: transparent;
}

.bdt-pricing-plan .bdt-pricing-switcher .bdt-subnav-pill > .bdt-active > a {
  color: #fff;
  border-radius: 12px;
  background-color: #1c64f2;
}

.bdt-pricing-plan .bdt-subnav .bdt-switcher-tooltip {
  position: absolute;
  background-color: #1c64f2;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0px 4px 10px 0px rgba(13, 78, 189, 0.34);
  z-index: 10;
  white-space: nowrap;
}

.bdt-pricing-plan .bdt-subnav .bdt-switcher-tooltip::before {
    content: '';
    top: 100%;
    opacity: 1;
    z-index: 1;
    height: 6px;
    width: 13px;
    margin-top: -1px;
    position: absolute;
    background-size: auto;
    clip-path: polygon(100% 0, 25% 100%, 0 0);
    background-color: #1c64f2;
}

/* tooltip badge positions right  */

.bdt-pricing-plan .bdt-tooltip-top-right {
  top: -12px;
  right: -110px;
}

.bdt-pricing-plan .bdt-subnav .bdt-tooltip-top-right::before {
  left: -7px;
  transform: rotate(45deg);
  top: 16px;
  border-radius: 10px;
  height: 20px;
  width: 22px;
}

/* tooltip badge positions left  */
.bdt-pricing-plan .bdt-tooltip-top-left {
    top: -44px;
    left: -5px;
}

.bdt-pricing-plan .bdt-subnav .bdt-tooltip-top-left::before {
    right: 9px;
}

/* tooltip badge positions center */
.bdt-pricing-plan .bdt-tooltip-top-center {
    top: -44px;
    left: 50%;
    transform: translateX(-50%);
}

.bdt-pricing-plan .bdt-subnav .bdt-tooltip-top-center::before {
    left: 50%;
    transform: translateX(-50%);
}



/* Pricing Grid */
.bdt-pricing-plan .bdt-pricing-grid-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.bdt-pricing-plan .bdt-price-item {
  flex-grow: 1;
  flex-basis: 300px;
  border-radius: 36px;
  position: relative;
  /* height: 100%; */
  background: #fff;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
}

.bdt-price-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.bdt-pricing-plan .discount-wrap-inner {
  color: #2a64f2;
  font-size: clamp(9px, .8vw, 10px);
  font-weight: 700;
  background-color: rgba(42, 100, 242, 0.102);
  border: 1px solid rgba(42, 100, 242, 0.2);
  padding: clamp(6px, .6vw, 8px) clamp(10px, .8vw, 12px);
  display: none;
  text-transform: uppercase;
  border-radius: 30px;
  line-height: 1;
  white-space: nowrap;
}

.bdt-pricing-plan .discount-wrap-inner.coupon-applied {
  display: inline-block;
}

/* Price Header */
.bdt-pricing-plan .bdt-price-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  text-transform: capitalize;
}

.bdt-pricing-plan .bdt-price-subtitle {
  font-size: clamp(13px, 1vw, 14px);
  color: #72767f;
  margin: 12px 0 0;
  font-weight: 400;
}

.bdt-pricing-plan .bdt-price-wrap {
  display: flex;
  align-items: flex-end;
  grid-gap: 8px;
  margin-top: 30px;
  line-height: 2;
}

.bdt-pricing-plan .bdt-price-inner {
  display: flex;
  align-items: center;
}

.bdt-pricing-plan .bdt-discount-price {
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;
  color: #7f7e8e;
}

.bdt-pricing-plan .bdt-discount-price.coupon-applied {
  display: inline-block;
}

.bdt-pricing-plan .bdt-current-price {
  font-size: 35px;
  font-weight: 900;
  color: #000;
  line-height: 1;
}

.bdt-pricing-plan .bdt-price-time {
  font-size: 14px;
  font-weight: 500;
  color: #747283;
}

/* Feature List */
.bdt-pricing-plan .bdt-pricing-list-wrap, 
.bdt-pricing-plan .bdt-list-group {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  list-style: none;
}

.bdt-pricing-plan .bdt-list-group {
  margin-bottom: 20px;
}

.bdt-pricing-plan .bdt-list-group:nth-last-child(1) {
  margin-bottom: 0;
}

.bdt-pricing-plan .bdt-pricing-list-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #021343;
  margin-bottom: 3px;
}

.bdt-pricing-plan .has-toggle-button {
  .bdt-tooltiptext {
    display: none;
  }
}
.bdt-pricing-plan .expanded-container {
  .bdt-tooltiptext {
    display: block;
  }
  .expanded {
    overflow: visible !important;
  }
}

.bdt-pricing-plan .plan-feature-container {
  position: relative;
  padding-bottom: 0; /* No padding by default */
  margin-top: 30px;
}

.bdt-pricing-plan .bdt-pricing-list-wrap.limited {
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.4s ease;
  position: relative;
  --pricing-table-mask-shadow: 30%;
  mask-image: linear-gradient(#000 var(--pricing-table-mask-shadow), transparent);
}

.bdt-pricing-plan .bdt-pricing-list-wrap.limited.active {
  max-height: 1000px;
  mask-image: none;
}

.bdt-pricing-plan .bdt-pricing-list-item {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  padding-left: 4px;
  font-size: 14px;
  font-weight: 400;
  color: #676c7a;
}

.bdt-pricing-plan .bdt-pricing-list-item strong {
  color: #5a5c62;
}

.bdt-pricing-plan .bdt-pricing-list-item.cross-item {
  color: #899298;
}

.bdt-pricing-plan .bdt-pricing-list-item > * {
  text-align: left;
}

.bdt-pricing-plan .bdt-pricing-list-item-icon {
  --borderWidth: 2px;
  --height: 10px;
  --width: 7px;
  --borderColor: currentColor;
  display: inline-block;
  transform: rotate(45deg);
  height: var(--height);
  width: var(--width);
  border-bottom: var(--borderWidth) solid var(--borderColor);
  border-right: var(--borderWidth) solid var(--borderColor);
}

.bdt-pricing-plan .bdt-pricing-list-item a {
  color: currentColor;
  font-weight: 400;
  text-decoration: none;
}

/* Toggle Button */
.bdt-pricing-plan .toggle-button {
  margin: 0;
  cursor: pointer;
  display: none; /* Hide by default on desktop */
  background: transparent;
  border: 0;
  color: #1c64f2;
  font-weight: 600;
  text-transform: capitalize;
  transition: all 0.3s ease;
  padding: 0;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Toggle Button when expanded (after show more click) */

.bdt-pricing-plan .toggle-button:hover {
  color: #0f3cc9;
}

.bdt-pricing-plan .toggle-button span {
  font-size: 14px;
}

/* Tooltip */
.bdt-pricing-plan .bdt-pricing-list-item-tooltip {
  position: relative;
  display: inline-block;
}

.bdt-pricing-plan .bdt-pricing-list-item-tooltip .bdt-tooltiptext {
  visibility: hidden;
  width: 150px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 10px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  font-size: 12px;
  transform: translateX(-50%);
}

.bdt-pricing-plan .bdt-pricing-list-item-tooltip .bdt-tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

.bdt-pricing-plan .bdt-pricing-list-item-tooltip:hover .bdt-tooltiptext {
  visibility: visible;
}

/* Buy Button */

.bdt-price-button-wrap {
  margin-top: 30px;
  text-align: center;
}

span.bdt-save-price {
  font-size: 14px;
  color: #3C4D6B;
  font-weight: 400;
  margin-top: 10px;
  display: block;
}

.bdt-pricing-plan .bdt-price-buyButton {
  text-decoration: none;
  color: #172A52;
  padding: 13px;
  font-size: 14px;
  display: block;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid #eaeaea;
  text-align: center;
}

.bdt-pricing-plan .bdt-price-buyButton:hover {
  color: #fff;
  text-decoration: none;
  border-color: #1c64f2;
  background-color: #1c64f2;
}


/* Body Wrapper */
.bdt-price-body-wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: space-between;
} 

/* static combo item ordering */

.bdt-pricing-plan .static-item-right .bdt-price-item.bdt-static-price-combo {
    order: 999;
}
.bdt-pricing-plan .static-item-left .bdt-price-item.bdt-static-price-combo {
    order: -1;
}

/* Static Combo & Plan Highlight Items */


.bdt-pricing-plan .bdt-static-price-combo, 
.bdt-pricing-plan .bdt-highlighted {
  box-shadow: 0 0 0px 4px rgb(0 85 255) inset;
}

.bdt-pricing-plan .bdt-static-price-combo .bdt-price-buyButton,
.bdt-pricing-plan .bdt-highlighted .bdt-price-buyButton {
  background: #1c64f2;
  color: #fff;
  border-color: #1c64f2;
}

.bdt-pricing-plan .bdt-static-price-combo .bdt-price-buyButton:hover,
.bdt-pricing-plan .bdt-highlighted .bdt-price-buyButton:hover {
  border-color: #0b4ccf;
  background-color: #0b4ccf;
}

/* list badge start */
.bdt-price-item .bdt-list-badge {
  background: #f00;
  line-height: 1;
  color: #fff;
  padding: 4px 5px;
  border-radius: 3px;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.bdt-price-item .bdt-list-badge.new {
  background: rgb(239 239 239);
  color: #2d2c3d;
}

.bdt-price-item .bdt-list-badge.hot {
  background: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.bdt-price-item .bdt-list-badge.popular {
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.bdt-price-item .bdt-list-badge.coming-soon {
  background: rgba(99, 102, 241, 0.2);
  color: #4338ca;
}

.bdt-price-item .bdt-list-badge.pro {
  background: rgba(244, 67, 54, 0.2);
  color: #c41e3a;
}

.bdt-price-item .bdt-list-badge.lite {
  background: rgba(0, 153, 255, 0.2);
  color: #0284c7;
}


/* style 2 css here start */
.bdt-pricing-plan {
    &.style-2 {
      .bdt-price-item {
        background: #ffffff29;
        backdrop-filter: blur(15px);
      }
      .bdt-price-title {
        color: #fff;
      }
      .bdt-current-price {
        color: #f1f1f1;
       }
       .bdt-price-time {
          color: #d2d2d2;
       }
      .bdt-discount-price {
        color: rgba(253, 253, 253, 0.502);
       }
       .discount-wrap-inner {
        color: #fafbff;
        background-color: rgba(28, 100, 242, 0);
        backdrop-filter: blur(15px);
       }
     .bdt-pricing-list-item a {
        color: #e9e9e9;
      }

     .bdt-price-buyButton {
          color: #f9f9f9;
          background: rgba(255, 255, 255, 0.1);
          backdrop-filter: blur(10px);
          -webkit-backdrop-filter: blur(10px);
          border: 1px solid rgba(255, 255, 255, 0.2);
          box-shadow: 0 4px 16px rgba(31, 38, 135, 0.15);
          transition: all 0.3s ease;
          &:hover {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
            transform: translateY(-2px);
            color: #fff;
          }
      }


      .bdt-static-price-combo .bdt-price-buyButton,
      .bdt-highlighted .bdt-price-buyButton {
        background: rgba(28, 100, 242, 0.2);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
        transition: all 0.3s ease;
      }

      .bdt-static-price-combo .bdt-price-buyButton:hover,
      .bdt-highlighted .bdt-price-buyButton:hover {
        background: rgba(28, 100, 242, 0.4);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
      }

      .bdt-pricing-switcher .bdt-subnav {
          background: rgba(255, 255, 255, 0.2);
          backdrop-filter: blur(15px);
          -webkit-backdrop-filter: blur(15px);
          border: 1px solid rgba(255, 255, 255, 0.3);
          box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
      }

      .bdt-pricing-switcher .bdt-subnav li a {
          color: #fff;
      }

     .bdt-pricing-switcher .bdt-subnav-pill > .bdt-active > a {
          color: rgb(255, 255, 255);
          background: rgba(28, 99, 242, 0.015);
          backdrop-filter: blur(15px);
          -webkit-backdrop-filter: blur(15px);
          border: 1px solid rgba(255, 255, 255, 0.2);
          box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
      }
    }
}

/* Media Queries */
@media (max-width: 767px) {
  .bdt-pricing-plan .bdt-pricing-list-wrap {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(#000 75%, transparent);
  }

  .bdt-pricing-plan .plan-feature-container {
    padding-bottom: 36px; /* Always space for toggle button on mobile */
  }

  .bdt-pricing-plan .toggle-button {
    display: block !important; /* Force show on mobile */
  }
}

@media (min-width: 768px) {
  .bdt-pricing-plan .bdt-pricing-switcher .bdt-subnav li {
    width: auto;
  }

  .bdt-pricing-plan .toggle-button {
    display: none !important; /* Hide toggle button on desktop */
  }

  /* Reset features list height restrictions for tablet and desktop */
  .bdt-pricing-plan .bdt-pricing-list-wrap {
    max-height: none !important;
    overflow: visible !important;
    mask-image: none !important;
  }

  .bdt-pricing-plan .plan-feature-container {
    padding-bottom: 0; /* Remove extra padding for toggle button */
  }

  /* Override has-toggle-button restrictions on tablet and desktop */
  .bdt-pricing-plan .has-toggle-button .bdt-pricing-list-wrap {
    max-height: none !important;
    overflow: visible !important;
  }

  /* Special override for static combo items */
  .bdt-pricing-plan .bdt-static-price-combo .bdt-pricing-list-wrap,
  .bdt-pricing-plan .bdt-static-combo-wrap .bdt-pricing-list-wrap {
    max-height: none !important;
    overflow: visible !important;
    mask-image: none !important;
  }

  .bdt-pricing-plan .bdt-static-price-combo .has-toggle-button .bdt-pricing-list-wrap {
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (min-width: 1024px) {
  .bdt-pricing-plan .bdt-pricing-grid-wrap {
    flex-wrap: nowrap;
  }

  .bdt-pricing-plan .bdt-price-item[data-filter="combo"] {
    max-width: 40%;
  }

  .bdt-pricing-plan .bdt-pricing-switcher .bdt-subnav li a {
    padding: 12px 30px;
  }

  .bdt-pricing-plan .bdt-price-title {
    font-size: 24px;
  }

  .bdt-pricing-plan .bdt-current-price {
    font-size: 36px;
  }

  .bdt-pricing-plan .bdt-pricing-list-item a {
    font-size: 14px;
  }


  .bdt-pricing-plan .bdt-discount-price {
    font-size: 16px;
  }
}

/* static combo item style horizontal */
.bdt-static-combo-wrap {
  margin-top: 30px;
  .bdt-static-price-combo {
    display: flex;
    justify-content: space-between;
    padding: clamp(20px, 4vw, 40px) !important;
    flex-direction: column;
    position: relative;
    border-radius: 36px;
    background: #1c64f2;
    align-items: center;
    max-width: 100% !important;
    gap: 20px;


    .bdt-price-header-wrap {
      background: #ffffff;
      height: auto;
      border-radius: 30px;
      width: 100%;
    }

    .bdt-price-title {
        font-size: 22px !IMPORTANT;
        color: #fff;
    }

    .bdt-price-subtitle {
      font-size: 14px;
      color: #e1e6f3;
      font-weight: 400;
      margin: 10px 0 0;
    }

    .bdt-price-body-wrap {
        background: transparent ;
        text-align: left;
        padding: 0 !important;
        display: block;
        width: 100%;
    }

    .bdt-pricing-list-item {
        color: rgba(255, 255, 255, 0.71);
    }

    .toggle-button {
        color: rgb(255 255 255);
        font-weight: 600;
        left: 0;
        transform: unset;
        margin-top: 15px;
    }

    .bdt-price-wrap .bdt-current-price {
        color: #2a64f2;
    }

    .bdt-price-wrap {
      justify-content: center;
    } 

    span.bdt-save-price {
      margin: 0;
    }

   .bdt-price-header-wrap {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow: unset;
      padding: 30px;
      min-width: auto;
      text-align: center;

    }

    .bdt-current-price {
        font-size: 36px;
    }

    .bdt-price-inner {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .bdt-list-group {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: clamp(10px, 1vw, 16px); 
      list-style: none;
      padding: 0;
      margin: 0;
      width: 100%;
    }
    
    .bdt-pricing-list-item-title {
      grid-column: 1 / -1;
      font-weight: bold;
      font-size: 16px;
      color: #f7f9fc;
    }

    .bdt-pricing-list-item strong {
      color: #dde2f1;
  }
    

    .has-toggle-button {
        .bdt-pricing-list-wrap {
          max-height: 260px !important;
          overflow: hidden;
       }
    }

    .expanded-container {
      .bdt-pricing-list-wrap {
        max-height: unset !important;
        overflow: unset !important;
      }
    }

    .plan-feature-container {
      padding-bottom: 30px;
      margin-top: clamp(20px, 2vw, 30px);
  }

    .bdt-price-footer-wrap {
      margin-top: 30px;
    }
    
    /* Tablet Responsive */
    @media (min-width: 768px) {
      flex-direction: row-reverse;
      
      .bdt-price-header-wrap {
        min-width: 280px;
        margin-bottom: 0;
        margin-right: 20px;
      }
      
      .bdt-price-title {
        font-size: 19px !IMPORTANT;
      }
      
      .bdt-current-price {
        font-size: 40px;
      }

      
    }
    
    /* Desktop Responsive */
    @media (min-width: 1024px) {
      
      .bdt-price-header-wrap {
        max-width: 400px;
        margin-right: 0;
      }
      
      .bdt-price-title {
        font-size: 32px !IMPORTANT;
      }

      .bdt-current-price {
        font-size: 46px;
      }
      
      .bdt-pricing-list-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
      }
      
      
      .bdt-price-inner {
        flex-direction: row-reverse;
        align-items: flex-start;
      }
      
      .bdt-price-time-wrap {
        .bdt-price-time {
          font-size: 13px;
          letter-spacing: 1.5px;
        }
      }
      
      .bdt-list-group {
        grid-template-columns: repeat(2, 1fr);
      }

      .plan-feature-container {
          padding-bottom: 0;
      }

      /* Reset features list height restrictions for static combo on tablet */
      .bdt-pricing-list-wrap {
        max-height: none !important;
        overflow: visible !important;
        mask-image: none !important;
      }

      .has-toggle-button .bdt-pricing-list-wrap {
        max-height: none !important;
        overflow: visible !important;
      }
    }
  }
}

