/*
Theme Name:   Hello Elementor Child
Template:     hello-elementor
Version:      1.0.0
*/

/* Responsiveness: show desktop, hide mobile */
.tom-desktop {
  display: block;
}

.tom-mobile {
  display: none;
}

.tom-black-text {
  color: #000;
}

/* HEADER */
#tom-header-cart-icon {
  visibility: hidden;
  width: 12px;
}

/* PAGES */
h1.entry-title {
  text-align: center;
}

/* Preview Book Shot-Code */
.floating-preview-button {
  position: fixed;
  bottom: 0;
  z-index: 999;
  /* margin-top: -80px; */
  text-align: center;
  right: 0;
  left: 0;
  padding: 20px;
  background: #fff;
  color: white;
  /* transition: transform 0.3s ease, opacity 0.3s ease; */
}

.cta-float-btn {
  background: #ef8429;
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  transition: background 0.3s;
  font-family: "Inter";
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -1%;
  border: solid 1px #ef8429;
  box-shadow: 0px 1px 2px 0px #c05800;
  text-transform: inherit;
  text-decoration: none !important;
  width: 300px;
  display: block;
  margin: 0 auto;
}

.cta-float-btn:hover {
  background-color: #e04b50;
}

/* === Container === */
.woocommerce-cart .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  background-color: transparent;
  font-family: "Poppins", sans-serif;
}
.woocommerce-cart .woocommerce table,
.woocommerce-cart .woocommerce tbody,
.woocommerce-cart .woocommerce tr,
.woocommerce-cart .woocommerce th,
.woocommerce-cart .woocommerce td {
  background-color: transparent;
  border-top: none;
  border: none !important;
}

/* === Cart Table Reset === */
.woocommerce-cart .shop_table {
  width: 100%;
  border-collapse: collapse;
  background: transparent !important;
  box-shadow: none;
  border: none;
}

/* === Table Head Styling === */
.woocommerce-cart .shop_table thead th {
  font-size: 14px;
  text-transform: uppercase;
  color: #999;
  background: none;
  border: none;
  padding: 10px 20px;
}

/* === Table Cell Styling === */
.woocommerce-cart td {
  border: none;
  background: transparent;
  vertical-align: top;
  padding: 20px;
}

/* === Product Layout === */
.product-flex {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.product-img {
  width: 400px !important;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.product-child-name {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.product-book-theme {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.product-tags .tag,
.variation .tag,
.product-name dd {
  display: inline-block;
  background: #ffd36f;
  color: #222;
  padding: 4px 10px;
  margin: 4px 6px 0 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* === Delivery & Guarantee Boxes === */
.delivery_box,
.guarantee_box {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  margin: 0;
  border-radius: 14px;
  /*  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);*/
}

/* Delivery box style 
.delivery_box {
  background-color: #fff9e0;
  border-left: 5px solid #e0a800;
}
*/
/* Guarantee box style 
.guarantee_box {
  background-color: #e5f8eb;
  border-left: 5px solid #32b768;
}
*/
/* Icons */
.d_icon,
.g_icon {
  font-size: 20px;
  color: #555;
  margin-top: 2px;
}

/* Text content */
.delivery_text h4,
.guarantee_text h4 {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  margin: 0 0 4px;
}

.delivery_text p,
.guarantee_text p {
  font-size: 17px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* === Quantity + Remove Styling === */
.quantity-flex {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.woocommerce .quantity .qty {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 60px;
  text-align: center;
}

.woocommerce-cart a.remove {
  font-size: 22px;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}
.woocommerce-cart a.remove:hover {
  color: #ff5252;
}

/* ===  coupon + update section === */
.woocommerce-cart .actions {
  text-align: right;
  padding-top: 20px;
}

/* Float and separate the coupon block */
.woocommerce-cart .actions .coupon {
  display: inline-block;
  float: right !important;
  margin-right: 12px;
  margin-top: 8px;
}

/* Float the update button cleanly */
.woocommerce-cart .actions .button[name="update_cart"] {
  float: right !important;
  margin-top: 8px;
}
.woocommerce-cart table.cart td.actions .coupon .input-text {
  float: none !important;
  width: 135px;
}

/* Set fixed width for the Apply Coupon button */
.woocommerce-cart .actions .coupon .button[name="apply_coupon"] {
  width: 135px;
  text-align: center;
}

/* === Cart Totals Box === */
.woocommerce-cart .cart_totals {
  background: transparent !important;
  padding: 25px 0 0 0;
  border-radius: 0;
  box-shadow: none;
  max-width: 480px;
  margin-left: auto;
  margin-right: 0;
}

.woocommerce-cart .cart_totals h2 {
  font-size: 22px;
  font-weight: bold;
  color: #655685;
}

/* === Price Total === */
.product-subtotal {
  font-weight: bold;
  font-size: 16px;
  text-align: right;
  padding-right: 20px;
}

.quantity-header {
  display: none !important;
}

/* === Responsive === */
@media (max-width: 768px) {
  .tom-desktop {
    display: none;
  }

  .tom-mobile {
    display: block;
  }

  .product-flex {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .tom.woocommerce-page table.cart .product-thumbnail {
    display: block;
  }

  .tom .woocommerce table.shop_table_responsive tr td::before {
    content: attr(data-title); /* no colon */
  }

  .product-child-name {
    margin-bottom: 0;
  }

  .product-img {
    width: 100% !important;
  }

  .book-frame-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .book-preview-frame {
    width: 100%;
    border: none;
    display: block;
    /* height: 300px; */
  }

  .woocommerce-cart td {
    padding: 15px 10px;
  }

  .woocommerce .quantity .qty {
    width: 50px;
  }

  /* .quantity-flex {
    flex-direction: column;
  } */

  .product-subtotal {
    text-align: center;
  }

  .woocommerce-cart .cart_totals {
    margin: 0 auto;
    padding: 20px;
  }

  /* .tom .woocommerce table.shop_table_responsive tr td{
    text-align: center !important;
  } */

  .tom .woocommerce table.shop_table_responsive tr td .tom-cart-badges {
    text-align: left !important;
  }
}

/* checkout */
.checkout-selected-img {
  max-width: 60px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Order page */
.woocommerce-order .wc-item-meta {
  display: none;
}

/* Eugene Checkout */
.checkout.woocommerce-checkout {
  text-align: left;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
  height: 40px;
  border-radius: 8px;
  padding-top: 8px;
  padding-right: 12px;
  padding-bottom: 8px;
  padding-left: 12px;
  border: 1px solid #e2e8f0 !important;
}

.select2-container .select2-selection {
  border-radius: 8px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding-top: 8px;
  padding-right: 12px;
  padding-bottom: 8px;
  padding-left: 12px;
  border: 1px solid #e2e8f0 !important;
  display: flex;
  align-items: center;
  height: 40px;
}
.select2-container .select2-dropdown {
  border-radius: 8px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding-top: 8px;
  padding-right: 12px;
  padding-bottom: 8px;
  padding-left: 12px;
  border: 1px solid #e2e8f0 !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0;
}

.woocommerce form .form-row {
  margin: 0 0 12px;
}

#select2-billing_country-container {
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #000;
}

.woocommerce form input::placeholder,
.select2-container .select2-selection--single .select2-selection__placeholder {
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #64748b;
}

/* #billing_country_field .select2-selection.select2-selection--single {
  pointer-events: none !important;
} */

.checkout_title {
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #100424;
  display: block ruby;
  margin-bottom: 16px;
}

.checkout_title::before {
  font-family: Inter;
  color: #100424;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  text-align: center;
  background: #d2c2e9;
  width: 23px;
  height: 23px;
  border-radius: 70px;
  margin-right: 10px;
}

.woocommerce form .form-row::after,
.woocommerce form .form-row::before,
.woocommerce-page form .form-row::after,
.woocommerce-page form .form-row::before {
}

.checkout_title.one::before {
  content: "1" !important;
  display: inline-block !important;
}

.checkout_title.two::before {
  content: "2" !important;
  display: inline-block !important;
}

.checkout_title.three::before {
  content: "3" !important;
  display: inline-block !important;
}

.custom-order-summary {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  border-bottom: 1px solid #e1ddec;
}

.order-summary-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.order-summary-title {
  font-size: 18px;
  font-weight: 600;
}

.order-summary-count {
  font-size: 14px;
  color: #777;
}

.order-summary-items {
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e1ddec;
  padding-bottom: 20px;
}

.order-item-image img {
  width: 64px;
  height: auto;
  border-radius: 6px;
}

.order-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.order-item-name {
  font-weight: 500;
  margin-bottom: 4px;
}

.order-item-meta {
  font-size: 13px;
  color: #555;
  display: flex;
  gap: 10px;
}

.order-footer-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.order-footer-row.total span {
  font-weight: 600;
  font-size: 16px;
  color: #1b1b1b;
}

.shop_table.woocommerce-checkout-review-order-table {
  display: none;
}

.tom .wc_payment_methods.payment_methods.methods {
  /* background: #fff;
  padding: 0 !important; */
}

.payment_box.payment_method_ppcp {
  background-color: #fff !important;
}

.payment_box.payment_method_ppcp::before,
label[for="payment_method_ppcp"] {
  display: none !important;
}

.order-summary-title {
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
}

.order-summary-subtotal bdi {
  font-weight: 600;
}

.order-item-name {
  font-weight: 600;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
}

.order-item-meta {
  display: flex;
  flex-direction: column;
}

.order-item-meta {
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #636363;
}

.checkout.woocommerce-checkout {
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding-top: 20px;
  margin-top: 20px;
}

.order-summary-footer h3 {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  text-transform: uppercase;
}

.order-footer-row {
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #636363;
}

.order-footer-row span {
  font-weight: 400;
}

.order-summary-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-footer-row.total {
  border-top: 1px dashed #636363;
  border-bottom: 1px dashed #636363;
  padding: 20px 0;
}

.checkout-info {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-radius: 12px;
}

.checkout-info-item {
  text-align: center;
  flex: 1;
  padding: 0 10px;
}
.checkout-info-item:first-of-type {
  padding-left: 0;
}
.checkout-info-item:last-of-type {
  /* padding-right: 0; */
}

.checkout-info-item img {
  width: 20x;
  height: 26px;
  margin-bottom: 8px;
}

.checkout-info-item p {
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  text-align: center;
  color: #100424;
}

.checkout-info-item sup {
  font-size: 10px;
  vertical-align: super;
}

#wizard-card-checkout .ai-form-container {
  padding-left: 0;
  padding-right: 0;
}

.custom-order-summary,
#customer_details,
#order_review_heading,
#order_review {
  padding-left: 20px;
  padding-right: 20px;
}

#wizard-card-checkout .ai-form-container {
  background: #fff;
}

#customer_details {
  background: #fdfbf6;
  padding-top: 30px;
}

#ship-to-different-address label span {
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0%;
}

.checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #b4c6de;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  margin-bottom: -3px;
}

.checkbox input[type="checkbox"]:checked {
  background-color: #5c3a92;
  border-color: #5c3a92;
}

.checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.payment-ovelay {
  background: #fdfbf6;
  padding-top: 10px;
  padding-bottom: 40px;
}

.payment-method-section {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 12px 20px;
  margin: 0 20px;
  background: #fff;
  box-shadow: 0px 2px 4px 0px #0000000d;
}

.payment-method-section h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #333;
}

.payment-method-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.method-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
}

.method-option:hover {
  background: #d2c2e9;
}

.method-option img {
  height: 24px;
  margin-right: 8px;
}

.method-option .arrow {
  margin-left: auto;
  font-size: 21px;
  color: #100424;
}

.secure-payment {
  text-align: center;
}

.secure-payment p {
  font-size: 14px;
  margin-bottom: 12px;
  color: #444;
}

.secure-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.secure-icons img {
  height: 32px;
}

.method-option.paypal img {
  height: 16px;
  width: auto;
}

.method-option.cards img {
  height: 21px;
  width: auto;
}

.secure-icons img {
  height: 40px;
  width: auto;
}

.secure-payment p {
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0%;
  text-align: center;
}

#order_comments_field label {
  color: #100424;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0%;
}

.order-summary-subtotal {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.order-section-footer {
  overflow: hidden;
  height: auto;
  transition: height 0.6s ease;
}

.order-section-footer.open {
  height: auto;
}

.order-summary-subtotal img,
.order-footer-row.fk-coupon img {
  transform: rotate(0deg); /* arrow down by default */
  transition: transform 0.6s ease;
  width: 10px;
  cursor: pointer;
}

.order-summary-subtotal img.rotated {
  transform: rotate(180deg); /* arrow down */
}

.contsct-field-group,
.woocommerce-shipping-fields__field-wrapper {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 16px 6px 16px;
  background: #fff;
  box-shadow: 0px 2px 4px 0px #0000000d;
  margin-bottom: 14px;
  overflow: auto;
}

.promo-form-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.promo-input {
  border: none;
  flex: 1;
  background: transparent;
  outline: none;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #64748b;
  padding: 8px;
}

.promo-input::placeholder {
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #64748b;
}

.promo-apply-button {
  background-color: #6f40a0;
  color: #fff;
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  align-items: center;
  justify-content: center;
}

.promo-apply-button:hover {
  background-color: #5d3688;
}

.promo-input,
.promo-apply-button {
  height: 40px;
  line-height: 1;
}

.promo-input {
  margin-top: 2px !important;
  margin-bottom: 2px !important;
}

.promo-form-wrapper {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height 0.6s ease, opacity 0.6s ease;
}

.promo-form-wrapper.open {
  opacity: 1;
  height: auto;
}

.fk-coupon img {
  transition: transform 0.6s ease;
}

.fk-coupon img.rotated {
  transform: rotate(180deg);
}

#ship-to-different-address {
  padding-left: 6px;
}

.notes label {
  padding-left: 4px;
}

#payment_method_ppcp {
  /* display: none; */
}

/* TEMP */

.woocommerce-checkout .cover-preview-wrapper {
  display: none;
}
