/*@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');*/

.cart-sidebar {
  width: 28%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #ddd;
  background: #fff;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;

  font-family: 'DM Sans';

  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-header {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cart-badge {
  background: #e8fff0;
  border: 1px solid #40BB6A;
  background-color: #D9FFE6;
  color: #40BB6A;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 12px;
  margin-left: 8px;
  font-weight: 500;
}

.cart-orders-header {
  margin-top: 26px;
  font-size: 16px;
  color: #002863;
  font-weight: 700;
  margin-bottom:20px;
}

.cart-highlight-bar {
  background: linear-gradient(90deg, #DCDFFF 0%, #EAECFF 100%);
  padding: 12px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 0.85em;
  line-height: 1em;
  font-weight: bold;
  color: #5A40C4;

  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-highlight-bar img {
  width: 50px;
  height: auto;
}

.cart-orders-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-order-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  padding-right: 30px;
  display: flex;
  gap: 12px;
  /* box-shadow: 0 0 5px rgba(0, 0, 0, 0.05); */
  box-shadow: 1px 1px 6px 0px #0000001A;

  margin-bottom: 12px;

  position: relative;
}

.cart-order-card .item-image-card {
  padding: 0.5em;
  background: #FFF2D5;
  border-radius: 10px;
  width: 70px;
  height: auto;
  max-height: 100px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-remove-btn {
  color: #FF6473;
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0.2em;
}

.cart-order-card img {
  width: 60px;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

.cart-order-card .order-details {
  flex: 1;
}

.cart-add-more {
  width: 100%;
  padding: 0.5em 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-add-more span {
  font-size: 0.9em;
}

.cart-add-more button {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 16px;
  background: #FFFFFF;
  color: #5A40C4;
  border: 1px solid #5A40C4;
  border-radius: 8px;
}

@media screen and (max-width: 375px) {
  .cart-add-more {
    justify-content: center;
    flex-direction: column;
    gap: 5px;
  }
}

/* coupon section: start */
.coupon-section {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toddy-coins {
  width:100%;
  border: 2px solid #a58bff;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}

.toddy-coins input {
  accent-color: #5A40C4;
  transform: scale(2);
  width:12px;
  height:12px;
}

.coin-info .coin-title {
  font-weight: bold;
  color: #2e1d6f;
  font-size:0.95rem;
}

.coin-info .coin-sub {
  font-size: 0.8rem;
  color: #555;
}

.coupon-input-box {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 4px 8px;
  background: #fff;
}

.coupon-icon img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.coupon-input-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9rem;
  padding: 8px 4px;
}

.apply-btn {
  background: none;
  border: 2px solid #824fff;
  color: #824fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: bold;
  cursor: pointer;
}

.error-msg {
  display: none;
  color: #f44336;
  font-size: 0.85rem;
  margin-top: -10px;
  margin-left: 36px;
}

.view-coupons-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff1cc;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  gap: 12px;
}

.view-coupons-btn>div {
  display: flex;
  align-items: start;
  justify-content: start;
  flex-direction: column;
}

.view-coupons-btn img {
  width: 36px;
  height: 36px;
}

.view-coupons-btn .btn-main-text {
  font-weight: bold;
  color: #2e1d6f;
}

.view-coupons-btn .btn-sub-text {
  font-size: 0.85rem;
  color: #333;
}

.view-coupons-btn .arrow {
  font-size: 1em;
  color: #444;
  margin-left: auto;
}

/* coupon section: end */

.order-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-details .title {
  font-size: 0.9em;
  font-weight: 600;
}

.order-details .weight {
  font-size: 0.8em;
  color: #717171;
}

.order-details .price {
  font-size: 0.9rem;
}

.order-details .price del {
  color: #999;
  margin-right: 5px;
}

/* .quantity {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.quantity button {
  width: 24px;
  height: 24px;
  border: none;
  background: #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.quantity span {
  margin: 0 8px;
} */

/* quantity: used from product-details css: start */
.quantity {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  margin-top: 4px;
}

/* edited */
.counter {
  display: inline-flex;
  align-items: center;
  border: 2px solid #e2e4ff;
  border-radius: 5px;
  /* padding: 8px 12px; */
  padding: 0.2em 0.5em;
  background-color: #EAECFF;
  font-family: sans-serif;
  user-select: none;
}

/* edited */

.counter-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: #000;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.2s;
}

.counter-btn:disabled {
  color: #bbb;
  cursor: not-allowed;
}

.counter-value {
  margin: 0 8px;
  font-size: 14px;
  font-weight: bold;
  width: 20px;
  text-align: center;
}

/* quantity: used from product-details css: end */

.more-flavors {
  margin-top: 20px;
  width: 100%;

  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;

  background: linear-gradient(360deg, #D9DCFF 0%, #FFFFFF 100%);
}

.flavors-scroll {
  width: 100%;
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 10px;
}

.flavor-card {
  flex: 0 0 auto;
  width: 120px;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  border: 2px solid #EAECFF;
  text-align: center;

  position: relative;
}

.flavor-card img {
  width: 80px;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

.flavor-card span {
  font-size: 12px;
}

.flavor-card button {
  position: absolute;
  right: 0;
  top: 0;
  color: white;
  border: 1px solid #FFFFFF;
  background: #FF6473;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;

  font-size: 12px;
  font-weight: 500;
}

.offers-section {
  margin: 20px 0;
  padding: 12px;
  background: #fffef0;
  border-radius: 10px;
  font-size: 0.9rem;
}

/* .order-summary {
  margin-top: 20px;
  background: #f9f9f9;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.total-row {
  font-weight: bold;
  font-size: 1rem;
} */

/* new order summary section: start */
.order-summary-wrapper {
  background: #eef0ff;
  border-radius: 12px;
  max-width: 420px;
  margin: auto;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
  border: 2px solid #EAECFF;

  overflow: hidden;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 16px;

  background-color: white;
}

.summary-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-header-title img {
  width: 36px;
  height: 36px;
}

.summary-body {
  /* margin-top: 16px; */
  padding: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
}

@media screen and (max-width: 380px) {
  .summary-row {
    font-size: 13px;
  }
}

.summary-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-row span>i {
  color: #888;
}

.summary-row.positive {
  color: green;
}

.summary-row.total {
  font-weight: bold;
  margin-top: 12px;
}

.info-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 4px;
  cursor: pointer;
}

.info-box {
  margin-top: 8px;
  background: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #444;
  display: none;
}

.arrow-icon {
  transition: transform 0.2s ease;
}

.arrow-icon.rotate {
  transform: rotate(180deg);
}

/* new order summary section: end */



/* Fixed Bottom */
.cart-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 12px 16px;
  text-align: center;
  box-shadow: 0px -2px 16px 0px #00000040;
  padding-top: 20px;

  font-family: 'DM Sans';

  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.cart-footer .saved {
  color: #40BB6A;
  font-size: 0.9rem;
  font-weight: bold;
}

.cart-footer .address {
  width: 100%;
  font-size: 0.85rem;
  color: #444;
  margin-top: 5px;
  margin-bottom: 10px;
  text-align: left;


  display: none;
  align-items: center;
  justify-content: space-around;
}

.cart-footer .address button {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #5A40C4;
  background: #FFFFFF;
  font-size: 12px;
  color: #5A40C4;
  font-weight: bold;
}

.cart-footer .pay-btn {
  background: #FF3F4E;
  color: #fff;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;

  font-family: 'DM Sans';
}
@media screen and (max-width: 1200px) {
    .cart-sidebar {
        width: 40%;
    }
}
@media screen and (max-width: 1000px) {
    .cart-sidebar {
        width: 60%;
    }
}
@media screen and (max-width: 480px) {
  .cart-sidebar {
    width: 100%;
  }

  /* .order-card {
    flex-direction: column;
    align-items: center;
  } */

  /* .order-details {
    text-align: center;
  } */

  .flavor-card {
    width: 100px;
  }
}


/* coupon modal: start */
.coupon-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);

  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 20;
}

.coupon-modal {
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  background: #fff;
  border-left: 1px solid #ccc;
  padding: 20px;
  border-radius: 20px;
  overflow-y: auto;
}

.coupon-modal .modal-header {
  font-size: 20px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coupon-modal .input-row {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.coupon-modal .input-row input {
  flex: 1;
  /* padding: 10px; */
  /* border: 1px solid #ccc; */
  border-radius: 8px;
}

.coupon-modal .input-row .coupon-input-box {
  width: 100%;
}

.coupon-modal .input-row .coupon-input-box input {
  width: 100%;
  min-width: 100px;
}

.coupon-modal .input-row button {
  padding: 10px 16px;
  border: 1px solid #6e3dfa;
  color: #6e3dfa;
  background: white;
  border-radius: 8px;
  cursor: pointer;
}

.coupon-modal .input-row button.remove {
  color: red;
  border-color: red;
}

.coupon-modal .error-msg {
  color: red;
  font-size: 14px;
  margin-top: 6px;
}

.coupon-card {
  background: linear-gradient(to right, #fde2ff, #e3e5ff);
  padding: 15px;
  border-radius: 16px;
  margin-top: 20px;
  position: relative;
}

.coupon-card .code {
  border: 1px dashed #FF6473;
  padding: 8px 16px;
  display: inline-block;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  color: #FF6473;
  background-color: white;
}

.coupon-card .apply-btn {
  position: absolute;
  right: 15px;
  top: 20px;
  font-size: 14px;
  color: red;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.coupon-card .title {
  font-size: 16px;
  margin-top: 10px;
  font-weight: bold;
  color: #5A40C4;
}

.coupon-card .validity-info {
  font-size: 13px;
}

.coupon-success-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* background: linear-gradient(to right, #a076f9, #d48dff); */
  background: linear-gradient(180deg, #5A40C4 0%, #8C4BAB 100%);
  color: white;
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  width: 90%;
  max-width: 300px;
  z-index: 200;
  display: none;
}

.coupon-success-overlay .close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  color: white;
  cursor: pointer;
}

.coupon-success-overlay .icon {
  width: 70px;
  height: auto;
  position: absolute;
  top: -35px;
  left: 40%;
}

/* coupon modal: end */


/* address modal: start */
.address-modal-wrapper, .address-input-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);

  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 20;
}

.address-input-modal-wrapper {
  z-index: 30;
}

.address-modal {
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  background: #fff;
  border-left: 1px solid #ccc;
  padding: 20px;
  border-radius: 20px;
  overflow-y: auto;
}

.address-modal .modal-header {
  font-size: 20px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.address-modal .modal-body {
  width: 100%;
  box-sizing: border-box;
  padding: 1em 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#addAddressButton {
  border: none;
  background-color: transparent;
  color: #5A40C4;
  font-size: 14px;
  font-weight: bold;

  margin-top: 10px;
}

.address-modal h3 {
  width: 100%;
  text-align: left;
}

.address-modal article {
  width: 100%;
  height: 200px;
  overflow-y: auto;
}


.address-card {
  background-color: #e8eaff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  max-width: 500px;
  position: relative;

  cursor: pointer;
}

.address-card .menu {
  position: absolute;
  top: 16px;
  right: 16px;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
}

.address-card .name {
  font-weight: bold;
  margin-bottom: 8px;
}

.address-card .address,
.address-card .phone {
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}

.address-card .phone {
  margin-top: 8px;
}


@media screen and (max-width: 470px) {
  .address-modal .modal-body {
    padding: 0;
  }
}

/* address modal: end */

/* address input form: start  */
/* .address-modal article {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5em;
} */

.address-form-group {
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.address-form-group label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 6px;
}

.address-form-group label span {
  color: red;
  margin-left: 2px;
}

.address-form-group input[type="text"], .address-form-group input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

.address-form-group input::placeholder {
  color: #bbb;
}

.address-input-modal-wrapper .btn-wrapper {
  /* width: 100%; */
  padding: 16px;
  background: #fff;
  position: sticky;
  bottom: 0;
}

.address-input-modal-wrapper .btn-wrapper .submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  background-color: #E0444A;
  color: white;
  border: none;
  border-radius: 24px;
}
.addressRequiredSpan{
    display:none;
    color:red;
    margin-top:5px;
    font-size:12px;
}

/*.submit-btn{*/
/*    cursor: pointer;*/
/*    background-color: #E0444A;*/
/*}*/

/* address input form: end */

/* emptyt cart content */
.empty-cart-content{
    display:none;
    width:100%;
    padding:30px 3%;
    text-align: center;
}
.empty-cart-content img{
    width:100%;
}
.empty-cart-content h3{
    margin-top:30px;
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.1px;
    color: #002863;
}
.empty-cart-content p{
    margin-top:20px;
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.002em;
    color: #717171;
}
.empty-cart-content button{
    margin-top:30px;
    border:none;
    padding: 11px 16px;
    width: 200px;
    height: 40px;
    background: #5A40C4;
    border-radius: 8px;
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.1px;
    color: #FFFFFF;
}
/* emptyt cart content */
