/* ============================================================
   Cart Page Styles
   concrete-uniform theme — cart module
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --cu-cart-primary: #e16f37;
  --cu-cart-primary-dark: #c0612a;
  --cu-cart-text: #232221;
  --cu-cart-text-muted: #777675;
  --cu-cart-border: #e2e1e0;
  --cu-cart-bg: #f5f5f5;
  --cu-cart-white: #ffffff;
  --cu-cart-radius: 12px;
  --cu-cart-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  --cu-cart-remove: #d93025;
}

.cu-cart-info-card--delivery {
  display: none;
}

.woocommerce-cart {
  background: #f7f5f4;
}

/* ── Override WooCommerce blocktheme max-width constraint ── */
.woocommerce-cart .wp-block-post-title,
.woocommerce-cart main .woocommerce {
  max-width: 100% !important;
}

/* ── Layout ──────────────────────────────────────────────── */
.cu-2col-layout {
  display: grid;
  grid-template-columns: 1fr 433px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .cu-cart-item__actions {
    flex-basis: 100%;
    flex-direction: row-reverse !important;
    align-items: center !important;
    gap: 53px;
  }

  .cu-cart-info-card__subtitle {
    font-size: 14px !important;
    line-height: 20px !important;
  }

  .cu-cart-info-card__title {
    font-size: 18px !important;
    line-height: 28px !important;
  }

  .cu-checkout-btn {
    padding: 10px 14px !important;
    font-size: 14px !important;
    line-height: 20px !important;
  }

  .cu-coupon-btn {
    padding: 10px 8px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    text-align: center !important;
    width: 90px !important;
  }

  .cu-coupon-input {
    font-size: 14px !important;
    line-height: 20px !important;
  }

  .cu-coupon-input-icon-wrap {
    gap: 2px !important;
    width: calc(100% - 102px) !important;
    font-size: 14px !important;
    padding: 0 10px !important;
  }

  .cu-cart-item__qty {
    padding: 2px 13px !important;
  }

  .cu-cart-item__qty .qty {
    font-size: 12px !important;
    line-height: 18px !important;
  }

  .cu-2col-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cu-cart-item {
    flex-wrap: wrap !important;
    gap: 16px;
  }

  .cu-order-summary,
  .cu-cart-info-card {
    margin-bottom: 12px;
  }
}

@media (max-width: 900px) {
  .cu-2col-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cu-cart-item {
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .cu-cart-item:after {
    bottom: -16px;
  }

  .cu-2col-items-layout {
    order: 1;
  }

  .cu-2col-summary-col {
    order: 2;
  }
}

/* ── Page title ──────────────────────────────────────────── */
.cu-cart-title {
  margin: 0;
  color: #232221;
  font-weight: 700;
  font-size: 30px;
  line-height: 38px;
  letter-spacing: 0%;
  vertical-align: middle;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.cu-cart-title__count {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #777675;
}

/* ── Grade group ─────────────────────────────────────────── */
.cu-2col-items-layout {
  background: var(--cu-cart-white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e1e0;
}

.cu-cart-group {
  padding: 1.5rem 1rem;
  position: relative;
}

/* .cu-cart-group--ungrouped {
    padding-top: 0;
}
.cu-cart-group--ungrouped .cu-cart-group__items:first-child {
    border-top: 1.5px solid #e2e1e0;
    padding-top: 24px;
} */
.woocommerce a.remove {
  width: 18px;
  height: 18px;
  line-height: normal !important;
  font-size: 0px !important;
}

.woocommerce a.remove svg {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.cu-cart-info-card--payment .cu-cart-info-card__icon {
  color: #00be00;
  width: 24px !important;
  height: auto;
}

.cu-cart-info-card__title {
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0%;
  vertical-align: middle;
  margin: 0;
  color: #232221;
}

.cu-cart-group__header {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: capitalize;
  margin-inline-start: 11px;
  margin-bottom: 1.5rem;
}

.cu-cart-group__indicator {
  position: absolute;
  inset-inline-start: 0;
  background: #e16f37;
  width: 11px;
  height: 39px;
  top: 1.5rem;
}

.cu-2col-items-layout {
  position: relative;
}

.cu-cart-group__title {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #232221;
  margin: 0;
}

.cu-cart-group__count {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #777675;
}

/* ── Cart item ───────────────────────────────────────────── */
.cu-cart-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.cu-cart-item:after {
  content: "";
  width: 100%;
  height: 1px;
  display: block;
  margin: 24px 0;
  background: #e2e1e0;
  position: absolute;
  bottom: -24px;
}

.cu-cart-item:last-child::after {
  content: none !important;
}

.cu-cart-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.cu-cart-item__actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

/* thumbnail */
.cu-cart-item__image {
  flex-shrink: 0;
  width: 124px;
  height: 124px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e1e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cu-cart-item__image img {
  width: 94px;
  height: 98px;
  object-fit: contain;
}

/* details */
.cu-cart-item__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cu-cart-item__meta {
  flex: 1;
}

.cu-cart-item__name {
  margin: 0 !important;
}

.cu-cart-item__name a {
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  vertical-align: middle;
  color: #232221;
  text-transform: capitalize;
}

.cu-cart-item__name a:hover {
  color: var(--cu-cart-primary);
}

.cu-cart-item__variation {
  font-size: 0.82rem;
  color: var(--cu-cart-text-muted);
  margin: 0 0 2px;
}

.cu-cart-item__variation-label {
  font-weight: 600;
  color: var(--cu-cart-text);
}

/* price */
.cu-cart-item__price {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #232221;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  justify-content: start;
}

.cu-cart-item__price del {
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #777675;
}

/* bottom row: price (left) + qty (right) */
.cu-cart-item__bottom {
  display: flex;
  align-items: start;
  justify-content: start;
  gap: 12px;
  margin-top: auto;
}

ins {
  background: transparent !important;
}

.cu-cart-item__qty button,
.cu-cart-item__qty input {
  padding: 0 !important;
  border: 0 !important;
  width: 20px;
  height: 20px;
}

.cu-cart-item__qty button:hover svg path,
.cu-cart-item__qty button:hover svg rect {
  fill: #e16f37 !important;
}

/* qty */
.cu-cart-item__qty {
  display: flex;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e2e1e0;
  padding: 9px 23px;
  font-family: "Roboto", sans-serif;
}

.cu-qty__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--cu-cart-text);
  transition: background 0.15s;
}

.cu-qty__btn:hover {
  background: var(--cu-cart-bg);
}

.cu-cart-item__qty .qty {
  border: none !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 100% !important;
  -moz-appearance: textfield;
}

.woocommerce-notices-wrapper {
  outline: none;
}

.cu-cart-item__qty .qty:focus {
  outline: none !important;
  box-shadow: none !important;
}

.cu-cart-item__qty .qty::-webkit-inner-spin-button,
.cu-cart-item__qty .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* remove */
.cu-remove-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--cu-cart-remove);
  border-radius: 6px;
  transition:
    background 0.15s,
    color 0.15s;
  text-decoration: none;
}

.cu-cart-item__remove a {
  transition: all 0.15s;
}

.cu-cart-item__remove a:hover {
  background: transparent !important;
  transform: scale(1.1);
}

.cu-remove-item:hover {
  background: #fde8e8;
}
.school-most-selling-section.alignfull {
  background: #fafafa;
  padding: 64px 0;
  margin-bottom: 0;
  margin-top: 52px;
}
.entry-content:has(.school-most-selling-section.alignfull) {
  margin-bottom: 0 !important;
}
/* ── Order Summary ───────────────────────────────────────── */
.cu-order-summary,
.cu-cart-info-card {
  background: var(--cu-cart-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--cu-cart-shadow);
  margin-bottom: 24px;
  border: 1px solid #e2e1e0;
}

.cu-order-summary__value {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #232221;
}

.cu-order-summary__title,
.cu-cart-info-card--payment .cu-cart-info-card__title {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0%;
  vertical-align: middle;
  margin: 0 0 24px 0;
  color: #232221;
}

.cu-order-summary__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cu-order-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cu-order-summary__label,
.woocommerce-shipping-methods label,
.cu-order-summary__rows {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #777675;
}

.cu-order-summary__row--total {
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #232221;
  border-top: 1px solid #e2e1e0;
  padding: 15px 0 19px 0;
}

.woocommerce-form-coupon {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.cu-order-summary__row--total .cu-order-summary__label {
  color: #232221;
  font-size: 20px;
  line-height: 30px;
}

.cu-order-summary__value--discount {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.cu-order-summary__value--discount .woocommerce-remove-coupon {
  font-size: 0;
  line-height: normal;
  margin: 0;
}
.cu-order-summary__value--discount .woocommerce-remove-coupon:before {
  content: "";
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M16 6V5.2C16 4.0799 16 3.51984 15.782 3.09202C15.5903 2.71569 15.2843 2.40973 14.908 2.21799C14.4802 2 13.9201 2 12.8 2H11.2C10.0799 2 9.51984 2 9.09202 2.21799C8.71569 2.40973 8.40973 2.71569 8.21799 3.09202C8 3.51984 8 4.0799 8 5.2V6M10 11.5V16.5M14 11.5V16.5M3 6H21M19 6V17.2C19 18.8802 19 19.7202 18.673 20.362C18.3854 20.9265 17.9265 21.3854 17.362 21.673C16.7202 22 15.8802 22 14.2 22H9.8C8.11984 22 7.27976 22 6.63803 21.673C6.07354 21.3854 5.6146 20.9265 5.32698 20.362C5 19.7202 5 18.8802 5 17.2V6" stroke="%23EE3400" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
  background-size: contain;
  width: 18px;
  height: 18px;
  display: block;
  margin-inline-start: 5px;
}
/* coupon */
.cu-coupon-input-wrap {
  display: flex;
  overflow: hidden;
  margin-bottom: 24px;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cu-coupon-icon {
  flex-shrink: 0;
  color: var(--cu-cart-text-muted);
}

.cu-coupon-input-icon-wrap {
  border: 1px solid #e2e1e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  width: calc(100% - 131px);
}

.cu-coupon-input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  padding: 0 !important;
  background: transparent;
}

.cu-coupon-btn {
  color: #fff !important;
  border: none !important;
  border-radius: 8px;
  padding: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
  background: #232221;
  min-height: auto !important;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  width: 119px;
}

.cu-coupon-btn:hover {
  background: var(--cu-cart-primary) !important;
}

/* checkout button */
.cu-checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--cu-cart-primary) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 16px 14px;
  font-weight: 600 !important;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cu-checkout-btn:hover {
  background-color: #f2824a !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(225, 111, 55, 0.3);
  color: #fff !important;
}

/* ── Info cards ──────────────────────────────────────────── */

.cu-cart-info-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cu-cart-info-card__icon {
  color: var(--cu-cart-primary);
  flex-shrink: 0;
}

.cu-cart-info-card__subtitle {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #777675;
}

/* payment methods */
.cu-payment-methods {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(0, 120px));
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.cu-cart-info-card--payment .cu-cart-info-card__title {
  margin-bottom: 0;
}

.cu-cart-info-card--payment .cu-cart-info-card__header {
  margin-bottom: 8px;
  gap: 8px;
}

.cu-payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--cu-cart-text-muted);
  border-radius: 8px;
  padding: 9px 12px;
  border: 1px solid #e2e1e0;
}

.cu-payment-method svg {
  width: 28px !important;
  height: auto;
}

.cu-payment-method span {
  font-weight: 500 !important;
  text-align: center;
  vertical-align: middle;
  font-size: 12px;
  line-height: 18px;
  color: #232221;
}

/* ── Empty cart ──────────────────────────────────────────── */
.cu-cart-empty {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.cu-cart-empty__title {
  font-size: 24px;
  font-weight: 600;
  color: #636261;
  line-height: 32px;
  margin: 0;
}

.cu-cart-empty__subtitle {
  font-size: 16px;
  color: #777675;
  max-width: 300px;
  margin: 0;
  line-height: 24px;
  font-weight: 400;
  text-align: center !important;
}
body:has(.cu-cart-empty) .entry-header-custom {
  background-image: none !important;
  background-color: transparent;
  height: auto !important;
  margin: 0;
}
body:has(.cu-cart-empty) .entry-header-custom .breadcrumbs,
body:has(.cu-cart-empty) .entry-header-custom .overlay {
  display: none !important;
}
body:has(.cu-cart-empty) .entry-header-custom .entry-title {
  text-transform: capitalize;
  font-weight: 700;
  font-size: 30px !important;
  line-height: 38px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #232221 !important;
  text-align: start;
  padding: 40px 0 0px 0;
  margin: 0;
}
.cu-cart-empty__cta {
  background: var(--cu-cart-primary) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 12px 32px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rtl .wc-block-cart__empty-cart__title {
  background: var(--cu-cart-white);
  border: 1px solid var(--cu-cart-border);
  border-radius: var(--cu-cart-radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--cu-cart-shadow);
}

.cu-cart-empty__cta:hover {
  background-color: #f2824a !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(225, 111, 55, 0.3);
  color: #fff !important;
}

.wc-block-cart__empty-cart__title.with-empty-cart-icon:before {
  height: 50px !important;
  margin: 0 auto !important;
  mask-size: 50px !important;
  width: 50px !important;
  background-color: #f2824a !important;
  margin-bottom: 10px !important;
}

.wp-block-woocommerce-empty-cart-block
  h2:not(.wc-block-cart__empty-cart__title) {
  display: block;
  margin-bottom: 24px;
  text-align: start;
  font-weight: 600;
  font-size: 36px;
  line-height: 44px;
  color: #232221;
}

.wp-block-woocommerce-cart {
  padding: 0 !important;
}

/* WooCommerce empty cart message styling */
/* .wc-empty-cart-message {
  background: var(--cu-cart-white);
  border: 1px solid var(--cu-cart-border);
  border-radius: var(--cu-cart-radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--cu-cart-shadow);
}

.wc-block-components-notice-banner.is-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.wc-block-components-notice-banner.is-info svg {
  background-color: var(--cu-cart-primary) !important;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.wc-block-components-notice-banner__content {
  font-size: 1rem;
  color: var(--cu-cart-text);
  font-weight: 500;
  margin: 0;
  flex-basis: auto !important;
} */
/* //return  */
.cu-cart-item__return-qty {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
/* ── Responsive Design ───────────────────────────────────── */
@media (max-width: 768px) {
  .wp-block-woocommerce-empty-cart-block
    h2:not(.wc-block-cart__empty-cart__title) {
    margin-bottom: 16px;
    font-size: 25px;
    line-height: 35px;
  }
  .school-most-selling-section.alignfull {
    padding: 32px 0;
    margin-top: 26px;
  }

  .cu-order-summary,
  .cu-cart-info-card {
    margin-bottom: 12px;
  }

  .cu-order-summary__row--total .cu-order-summary__label {
    font-size: 16px;
    line-height: 20px;
  }

  .cu-order-summary__value {
    font-size: 14px;
    line-height: 18px;
  }

  .cu-order-summary__label,
  .woocommerce-shipping-methods label,
  .cu-order-summary__rows {
    font-size: 14px;
    line-height: 20px;
  }

  .cu-order-summary__row--total {
    font-size: 16px;
    line-height: 24px;
    padding: 20px 0 16px 0;
  }

  .cu-cart-item__actions {
    gap: 20px;
  }

  .cu-cart-item__name a {
    font-size: 16px;
    line-height: 24px;
  }

  .cu-cart-group__header {
    margin-bottom: 24px;
  }

  .cu-cart-group__indicator {
    inset-inline-start: 0;
    height: 26px;
    top: 24px;
  }

  .cu-cart-group__title {
    font-size: 18px;
    line-height: 28px;
  }

  .cu-cart-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    margin-top: 7px;
    margin-bottom: 21px;
  }

  .cu-cart-group {
    padding: 24px;
  }

  .cu-cart-title__count {
    font-size: 14px;
    line-height: 20px;
  }

  .cu-cart-group__count {
    font-size: 14px;
    line-height: 20px;
  }

  .cu-cart-item__image {
    width: 116px;
    height: 110px;
    border: 0.94px solid #e2e1e0;
  }

  .cu-cart-item__image img {
    width: 88.6;
    height: 91.6;
  }

  .cu-cart-item__price {
    font-size: 14px;
    line-height: 18px;
  }

  .cu-cart-item__price del {
    font-size: 12px;
    line-height: 18px;
  }

  del .woocommerce-Price-amount.amount {
    font-size: 12px;
    line-height: 16px;
  }

  .cu-qty__btn {
    width: 28px;
    height: 28px;
  }

  .cu-qty__btn svg {
    width: 10px;
    height: 10px;
  }

  .cu-remove-item {
    width: 30px;
    height: 30px;
  }

  .cu-remove-item svg {
    width: 19px;
    height: 19px;
  }

  .cu-order-summary__title,
  .cu-cart-info-card--payment .cu-cart-info-card__title {
    font-size: 18px;
    line-height: 28px;
    margin: 0 0 16px 0;
  }

  .wc-empty-cart-message {
    padding: 20px 16px;
  }

  .wc-block-components-notice-banner.is-info {
    gap: 8px;
  }

  .wc-block-components-notice-banner__content {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .cu-cart-item__details {
    width: 100%;
  }

  .cu-cart-item__bottom {
    flex-direction: column;
    gap: 8px;
  }

  .cu-cart-item__qty {
    order: 1;
  }

  .cu-coupon-input-wrap {
    margin-bottom: 16px;
  }

  .cu-payment-method {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .cu-cart-empty__title {
    font-size: 20px;
    line-height: 28px;
  }

  .cu-cart-empty__subtitle {
    font-size: 14px;
    line-height: 20px;
  }

  .cu-cart-empty__cta {
    padding: 10px 24px !important;
    font-size: 0.9rem !important;
  }

  .wc-empty-cart-message {
    padding: 16px 12px;
  }

  .wc-block-components-notice-banner.is-info svg {
    width: 20px;
    height: 20px;
  }

  .wc-block-components-notice-banner__content {
    font-size: 0.9rem;
  }
}
