.tdg-cart-template {
}
/*Conset Box*/
#tdg_cart_consent span {
    font-size: 14px;
    line-height: 1.2em;
    padding-bottom: 5px;
    display: inline-block;
}


/* Mix & Match Pack Display Styles */
.tdg-cart-template-mnm-children {
  margin-top: 15px;
  padding: 12px;
  background-color: #f9f9f9;

  border-left: 4px solid var(--blue-gray);
}

.tdg-cart-template-mnm-label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.tdg-cart-template-mnm-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

.tdg-cart-template-mnm-child:last-child {
  border-bottom: none;
}

.tdg-cart-template-child-name {
  flex: 1;
  font-weight: 500;
  font-size: 16px;
  color: var(--blue-gray);
}

.tdg-cart-template-child-size {
  color: #888;
  margin: 0 8px;
  font-size: 13px;
}

.tdg-cart-template-child-qty {
  font-weight: bold;
  color: var(--blue-gray);
  font-size: 13px;
}

.tdg-cart-container {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

.tdg-cart-left {
  flex: 0 0 calc(60% - 24px);
  min-width: 300px;
}

.tdg-cart-items-wrapper {
}

.tdg-cart-template-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tdg-cart-template-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #22354226;
  padding-bottom: 20px;
}

.tdg-cart-template-item-image {
  flex-shrink: 0;
  width: 100px;
  /* height: 80px; */
}

.tdg-cart-template-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  max-height: 170px;
}

.tdg-cart-template-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tdg-cart-template-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  line-height: 1;
  gap: 30px;
}

.tdg-cart-template-item-name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  padding-bottom: 0 !important;
}

.tdg-cart-template-item-name a {
  color: var(--blue-gray);
  text-decoration: none;
}

.tdg-cart-template-item-name a:hover {
}

.tdg-cart-template-item-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-gray);
  text-align: right;
}

.tdg-cart-template-item-acf-quantity {
  font-size: 14px;
  color: var(--blue-gray);
  margin-bottom: 5px;
  line-height: 1;
  text-transform: uppercase;
}

.tdg-cart-template-item-quantity {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
  margin-top: 15px;
  background: #f4f4f4;
  max-width: max-content;
  border-radius: 12px;
  overflow: hidden;
}

.tdg-cart-template-quantity-btn {
  width: 35px;
  height: 60px;
  background: #f4f4f4;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tdg-cart-template-quantity-btn:hover {
  background: #f0f0f0;
  border-color: #999;
}

.tdg-cart-template-quantity-input {
  width: 60px;
  height: 30px;
  text-align: center;
  border: 0;
  border-radius: 4px;
  font-size: 14px;
  background: #f4f4f4;
  font-weight: 600;
}

.tdg-cart-template-remove-item {
  background: none;
  border: none;
  color: var(--blue-gray);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  align-self: center;
}

.tdg-cart-template-remove-item:hover {
  color: var(--blue-gray);
}

.tdg-empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.tdg-empty-cart p {
  font-size: 18px;
  margin: 0;
}

.tdg-cart-right {
  flex: 0 0 calc(40% - 36px);
  min-width: 280px;
}

.tdg-order-summary {
  background: #f4f4f4;
  border-radius: 42px;
  padding: 40px;
  position: sticky;
  top: 70px;
}

.tdg-order-summary h3 {
  margin: 0 0 20px 0;
  font-size: 28px;
  font-weight: 600;
  color: #333;
}

.tdg-coupon-section {
  margin-bottom: 20px;
}

.tdg-coupon-form {
  display: flex;
  gap: 10px;
}

.tdg-coupon-form .tdg-coupon-input {
  flex: 1;
  padding: 20px 20px;
  border: 1px solid var(--blue-gray);
  border-radius: 12px;
  font-size: 14px;
  background: transparent;
  /* max-width: 200px; */
}

.tdg-coupon-input::placeholder {
  color: #999;
}

.tdg-apply-coupon-btn {
  background: var(--blue-gray);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.tdg-apply-coupon-btn:hover {
  background: var(--accent-green);
  color: var(--blue-gray);
}

.tdg-summary-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 20px 0;
  margin-top: 30px;
}

.tdg-cart-template-summary {
  margin-bottom: 20px;
}

.tdg-cart-template-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 14px;
}

.tdg-cart-template-summary-line span:first-child {
  color: var(--blue-gray);
}

.tdg-cart-template-summary-line span:last-child {
  /* font-weight: 600; */
  color: var(--blue-gray);
}

.tdg-cart-template-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-gray);
  padding-top: 18px;
  border-top: 1px solid #e0e0e0;
}

.tdg-checkout-btn {
  display: block;
  width: 100%;
  background: var(--accent-green);
  color: var(--blue-gray);
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 50px;
  margin-top: 40px;
  transition: background 0.3s ease;
}

.tdg-checkout-btn:hover {
  background: var(--blue-gray);
  color: white;
}

.tdg-payment-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
  justify-content: center;
}

.payment-icon {
  height: 20px;
}

.tdg-shipping-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--blue-gray);
  text-align: center;
  justify-content: center;
  line-height: 1.2em;
}

.discreet-icon {
  height: 16px;
}
.tdg-cart-template.loading {
  opacity: 0.6;
  pointer-events: none;
}

.tdg-cart-template.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--blue-gray);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.tdg-cart-container > h1 {
  font-size: 52px;
  font-weight: 600;
  margin-bottom: 30px;
}

.tdg-cart-template-item:last-of-type {
  border: 0;
}

.tdg-cart-template-quantity-btn:hover {
  background: #e9e9e9;
}

.tdg-cart-template-quantity-wrapper {
  display: flex;
  justify-content: space-between;
}
a.edit_container_in_cart_text.edit_in_cart_text.tdg-cart-template-edit-selection-btn {
  display: block;
  color: var(--blue-gray);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  max-width: max-content;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: 10px;
}
.tdg-cart-template-item[data-product-id="1127"]
  .tdg-cart-template-item-quantity {
  display: none;
}
.tdg-cart-template-item[data-product-id="1127"] a {
  pointer-events: none;
}
@media (max-width: 1024px) {
  .tdg-cart-container {
    flex-direction: column;
    gap: 20px;
  }

  .tdg-cart-left,
  .tdg-cart-right {
    flex: 1;
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 980px) {
  .tdg-cart-template-item {
    gap: 10px;
    padding: 0;
    padding-bottom: 15px;
  }
  .tdg-cart-container > h1 {
    font-size: 32px;
  }
  .tdg-coupon-form,
  .tdg-payment-section {
    flex-direction: column;
  }
  .tdg-cart-template-item-image {
    width: 80px;
    height: 80px;
    align-self: flex-start;
  }
  h4.tdg-cart-template-item-name {
    text-align: left;
  }

  .tdg-cart-template-item-name a {
    width: 100%;
    display: block;
    font-size: 16px;
  }
  .tdg-cart-template-item-price {
    font-size: 16px;
  }
  .tdg-cart-template-quantity-btn {
    height: 45px;
  }
  body.woocommerce-cart .et_pb_row.et_pb_row_0 {
    width: 90%;
  }
  .tdg-cart-template-mnm-child {
    padding: 0;
  }

  .tdg-cart-template-item-quantity {
    margin: 0;
  }

  span.tdg-cart-template-child-name {
    font-size: 14px;
  }
  .tdg-cart-template-item-top {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .tdg-cart-template-item-quantity {
    justify-content: center;
  }

  .tdg-order-summary {
    position: static;
    padding: 30px 30px;
  }
}
