/* 🔹 Spinner */
#loading-spinner {
  display: none;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
  position: relative;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 🔹 Coupon container */
.coupon-container {
  font-family: 'Open Sans', sans-serif;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  /* border: 1px solid red; */
}

/* 🔹 Coupon list — horizontal scroll enabled */
.coupon-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;           /* enables horizontal scroll */
  overflow-y: hidden;
  white-space: nowrap;
  justify-content: center;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  gap: 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  margin-bottom: 25px;
}

/* 🔹 Scrollbar style */
.coupon-list::-webkit-scrollbar {
  height: 6px;
}
.coupon-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.coupon-list::-webkit-scrollbar-track {
  background: #f9f9f9;
}

/* 🔹 Items */
.coupon-item,
.domain-item {
  flex: 0 0 auto; /* prevent shrinking */
}

/* 🔹 Buttons */
.coupon-list .coupon-btn {
 display: inline-block;
    padding: 5px 18px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: #fff;
    /* width: 113px; */
    color: #232E2E;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.coupon-list .coupon-btn:hover {
  background: #2C3C94;
  color: #fff;
  border-color: #2C3C94;
}

.coupon-list .coupon-btn.active {
  background: #2C3C94;
  color: #fff;
  border-color: #2C3C94;
}

#load-coupons .no-posts
{
      text-align: center;
    margin: 50px;
    font-size: 30px;
    color: #2F4B91;
}
/* 🔹 Responsive tweak */
@media (max-width: 600px) {
  .coupon-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  .coupon-list {
    justify-content: start;
  }
}


/*  Coupon card css */

.coupon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F9F9F9;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 16px 24px;
  gap: 20px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.coupon-card-responsive
{
  display: none;
}

/* LEFT SECTION */
.coupon-save {
   background-image: url('http://localhost/hostbreakNew/wp-content/uploads/2025/11/Subtract.png'); 
  /*background-image: url('/wp-content/plugins/coupons-plans/assets/images/Subtract.png');*/
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;
  /* border-radius: 10px; */
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 220px;
  height: 158px;
  min-width: 220px;
  line-height: 1.4;
  /* border: 3px dashed #fff; */
 /* box-shadow: 0 0 0 2px #5bbf24;*/
}
.coupon-save .coupon-discount
{
  background: #fff;
    color: #F15722;
    padding: 5px 12px;
    width: 80%;
    gap: 2px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;

}
.coupon-save .coupon-discount span.ist
{
  
}
  .coupon-save .coupon-discount span.snd
{
      background: #F15722;
    color: #fff;
    padding: 3px 10px;
    border-radius: 5px;
}
.coupon-label {
  display: block;
  font-size: 30px;
  font-weight: 700;
}

.coupon-discount {
  display: block;
  font-size: 16px;
}

/* MIDDLE SECTION */
.coupon-description {
  flex: 1;
  min-width: 200px;
  background: #F9F9F9;
}

.coupon-description h3 {
  color: #2F4B91;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.coupon-description p {
  color: #2E4360;
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

/* RIGHT SECTION */
.copy-code {
  min-width: 160px;
  text-align: right;
}

.coupon-btn1 {
    background: #f26522;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 18px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    display: flex;
    font-size: 14px;
    transition: 0.3s ease;
}
.coupon-btn1 span.ist{
font-size: 16px;
font-weight: 600;
}
.coupon-btn1 span.snd{
font-size: 24px;
font-weight: 600;
margin-top: 3px;
}

.coupon-btn1:hover {
  background: #d95417;
}

 .ist {
  position: relative;
  cursor: pointer;

} 

.copy-tooltip {
  display: none;
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 999;
}


/* ✅ Responsive */
@media (max-width: 768px) {
  .coupon-card {
     display: none;
  }
  .coupon-card-responsive
  {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: white;
        margin: 20px 0 30px 0;
  }
  .coupon-save-responsive div{
     background-image: url('http://localhost/hostbreakNew/wp-content/uploads/2025/11/Subtract.png'); 
  /*background-image: url('/wp-content/plugins/coupons-plans/assets/images/Subtract.png');*/
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  margin: 20px auto;
  width: 220px;
  height: 158px;

  }
  .coupon-save-responsive {
  color: #fff;
        /* border-radius: 10px; */
        padding: 10px 16px;
        text-align: center;
        font-size: 14px;
        font-weight: bold;
        width: 90%;
        height: auto;
        min-width: 220px;
        border-top-right-radius: 20px;
        border-top-left-radius: 20px;
        line-height: 1.4;
        border: none !important;
        /* margin-bottom: 12px; */
        background-color: #003366;
  }
    .coupon-description-responsive {
             width: 90%;
        background-color: #F6F6F6;
        /* color: blue; */
        border-top-right-radius: 20px;
        border-top-left-radius: 20px;
        padding: 30px 15px 30px 15px;
        margin-top: -11px;
    }
    .coupon-container
    {
      background-color: #fff;
    }
    .coupon-div
    {
      /* border:1px solid red; */
              display: flex;
        flex-direction: column;
        justify-content: center;
    }
   .coupon-div .coupon-label
   {
   
    font-size: 28px;
    font-weight: 700;
   }
    .coupon-div .coupon-discount
   {
   
    font-size: 29px;
    font-weight: 700;
    background-color: #FFF;
    color:#F15722;
    padding: 3px 5px;
    margin: 0 auto;
    border-radius: 5px;
   }
 .coupon-div .coupon-discount span.bg-cl
   {
    background-color: #F15722;
    color:#FFF;
    padding: 3px 5px;
    border-radius: 5px;
   }
   .coupon-code1
   {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 10px 0;
   }
  .coupon-code1 span.ist
  {
    font-size: 16px;
    font-weight: 600;
   }
  .coupon-code1 span.snd
   {
    font-size: 24px;
    font-weight: 600;
   }
   .coupon-description-responsive p.ist
  {
    font-size: 18px;
    color: 18px;
    font-weight: 600;
    color: #2F4B91;
   }
  .coupon-description-responsive p.snd
   {
    font-size: 15px;
    color:#2E4360;
    font-weight: 400;
   }
   
}

