/* Guidance Suite 1.0.19 — cart UI rebuilt to match the reference cart-line.
   Scoped deliberately: no WooCommerce checkout, site header or footer rules. */
.gds-cart-page{
  --gds-cart-blue:#34539e;--gds-cart-ink:#192f58;--gds-cart-line:#e2eaf5;
  background:#f7f9fd;color:var(--gds-cart-ink);font-family:Tajawal,'Segoe UI',Arial,sans-serif;
  min-height:65vh;padding-bottom:78px;font-size:15px;line-height:1.65;
}
.gds-cart-page,.gds-cart-page *,.gds-cart-page *::before,.gds-cart-page *::after{box-sizing:border-box}
.gds-cart-container{max-width:1160px;width:calc(100% - 36px);margin-inline:auto}
.gds-cart-banner{background:linear-gradient(115deg,#213b76,#4365aa);color:#fff;padding:48px 0 42px}
.gds-cart-banner h1{color:#fff;font-size:clamp(27px,3.7vw,42px);font-weight:900;line-height:1.3;margin:10px 0}
.gds-cart-banner p{color:#e8edfc;font-size:14px;line-height:1.85;margin:0}
.gds-cart-kicker{display:inline-block;border:1px solid #ffffff66;border-radius:24px;padding:5px 13px;font-size:12px}
.gds-cart-body{padding-top:34px}
.gds-cart-page .gds-cart-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:24px;align-items:start;min-width:0}
.gds-cart-page .gds-cart-panel,.gds-cart-page .gds-cart-summary,.gds-cart-page .gds-cart-empty{
  min-width:0;background:#fff;border:1px solid #dfe8f5;border-radius:20px;
  box-shadow:0 12px 36px rgba(29,57,105,.05);overflow:hidden;
}
.gds-cart-page .gds-cart-panel{padding:25px;container-type:inline-size}
.gds-cart-page .gds-cart-panel h2{margin:0 0 15px;color:var(--gds-cart-ink);font-size:22px;line-height:1.35;font-weight:900}
.gds-cart-page .gds-cart-panel h2 small{color:#7184a5;font-size:14px;font-weight:700}
.gds-cart-page form.woocommerce-cart-form{display:block!important;float:none!important;width:100%!important;max-width:none!important;min-width:0!important;padding:0!important;margin:0!important;clear:both}
/* Three independent columns: course information | quantity | price & remove. */
html body .gds-cart-page form.woocommerce-cart-form .gds-cart-line{
  display:grid!important;grid-template-columns:minmax(0,1fr) 100px 147px!important;
  align-items:center!important;justify-items:stretch;gap:16px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:20px 0!important;float:none!important;clear:both!important;
  border:0!important;border-bottom:1px solid var(--gds-cart-line)!important;
  background:transparent!important;
}
.gds-cart-page .gds-cart-line-info{min-width:0!important;width:auto!important;float:none!important;align-self:center}
.gds-cart-page .gds-cart-line-info h3{
  margin:0 0 7px!important;font:900 15px/1.65 Tajawal,'Segoe UI',Arial,sans-serif!important;
  overflow-wrap:break-word;word-break:normal;max-width:100%;
}
.gds-cart-page .gds-cart-line-info h3 a{color:#1e386c!important;text-decoration:none!important}
.gds-cart-page .gds-cart-line-info h3 a:hover{text-decoration:underline!important}
.gds-cart-page .gds-cart-course-kind{font-size:12px;line-height:1.6;color:#7a8ca8;margin:0!important}
.gds-cart-page .gds-cart-line-controls{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:8px!important;min-width:0!important;width:100%!important;float:none!important;margin:0!important;padding:0!important;
}
.gds-cart-page .gds-cart-line-controls label{
  color:#647b9d!important;font:700 12px/1.5 Tajawal,'Segoe UI',Arial,sans-serif!important;
  text-align:center!important;margin:0!important;padding:0!important;
}
.gds-cart-page .gds-cart-line-controls .quantity{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;max-width:100px!important;float:none!important;margin:0!important;padding:0!important;
}
.gds-cart-page .gds-cart-line-controls .quantity input,
.gds-cart-page .gds-cart-line-controls .qty{
  display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;
  max-width:100%!important;height:46px!important;min-height:46px!important;
  background:#fff!important;color:#1d335c!important;border:1px solid #d7e1ef!important;
  border-radius:10px!important;padding:8px 7px!important;float:none!important;
  font:800 16px/1.4 Tajawal,'Segoe UI',Arial,sans-serif!important;text-align:center!important;
  direction:ltr;box-shadow:none!important;
}
.gds-cart-page .gds-cart-line-price{
  min-width:0!important;display:flex!important;flex-direction:column!important;gap:8px!important;
  align-items:flex-start!important;justify-content:center!important;float:none!important;text-align:start!important;
}
.gds-cart-page .gds-cart-line-price-label{
  font-size:12px;line-height:1.5;color:#647b9d;font-weight:700;
}
.gds-cart-page .gds-cart-line-amount{
  color:#1d3869!important;font:900 15px/1.4 Tajawal,'Segoe UI',Arial,sans-serif!important;
  display:block!important;max-width:100%!important;direction:ltr;unicode-bidi:isolate;white-space:nowrap!important;
  text-align:start;letter-spacing:0;
}
.gds-cart-page .gds-cart-line-amount .woocommerce-Price-amount,
.gds-cart-page .gds-cart-line-amount .woocommerce-Price-currencySymbol{white-space:nowrap!important;display:inline!important;font:inherit!important}
.gds-cart-page .gds-cart-remove{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  width:auto!important;max-width:100%!important;min-height:40px!important;margin:3px 0 0!important;
  padding:8px 11px!important;border:1px solid #edbfc4!important;border-radius:9px!important;
  background:#fff4f5!important;color:#ad3948!important;opacity:1!important;visibility:visible!important;
  font:800 13px/1.45 Tajawal,'Segoe UI',Arial,sans-serif!important;
  text-decoration:none!important;box-shadow:none!important;white-space:nowrap!important;cursor:pointer;
}
.gds-cart-page .gds-cart-remove:hover,.gds-cart-page .gds-cart-remove:focus-visible{
  background:#ffe7e9!important;border-color:#ce8c93!important;color:#8d2635!important;
}
.gds-cart-page .gds-cart-remove:focus-visible{outline:2px solid #9ab4e2;outline-offset:2px}
.gds-cart-page .gds-cart-remove-icon{display:block!important;flex:0 0 16px;width:16px!important;height:16px!important;fill:none!important;stroke:currentColor!important}
.gds-cart-page .gds-cart-remove span{display:inline!important;color:inherit!important;font:inherit!important}
.gds-cart-page .gds-cart-actions{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:12px;margin-top:20px!important;
}
.gds-cart-page .gds-cart-actions>a{font-weight:800;color:var(--gds-cart-blue)!important;text-decoration:none}
.gds-cart-page .gds-cart-update{
  border:1px solid #cbdbf3!important;border-radius:10px!important;background:#f1f5ff!important;color:var(--gds-cart-blue)!important;
  min-height:44px;padding:10px 16px!important;font-weight:900!important;cursor:pointer;
}
.gds-cart-page .gds-cart-summary-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:19px 23px;background:#eaf0fb;color:#17335f;font-size:21px;font-weight:900}
.gds-cart-page .gds-cart-summary-body{padding:22px}
.gds-cart-page .gds-cart-summary-note{background:#f0f4fc;color:#526a91;border-radius:12px;padding:16px;margin:0 0 12px;font-size:13px;line-height:1.9}
.gds-cart-page .gds-cart-total-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #e8eef8;font-size:14px}
.gds-cart-page .gds-cart-total-row strong{white-space:nowrap;font-weight:900;color:#183967}
.gds-cart-page .gds-cart-grand{font-size:18px;font-weight:900}
.gds-cart-page .gds-cart-btn{
  display:flex!important;align-items:center;justify-content:center;gap:12px;min-height:52px;
  margin-top:24px;padding:12px 16px!important;background:#34539e!important;color:#fff!important;
  border:0!important;border-radius:10px!important;font-size:15px;font-weight:900;text-align:center;text-decoration:none!important;
}
.gds-cart-page .gds-cart-btn:hover{background:#263f82!important}
.gds-cart-page .gds-cart-summary-body>small{display:block;color:#7b8eaa;font-size:12px;text-align:center;line-height:1.8;margin-top:13px}
.gds-cart-page .gds-cart-empty{padding:50px 24px;text-align:center;max-width:640px;margin-inline:auto}
.gds-cart-page .gds-cart-empty-icon{font-size:44px}
.gds-cart-page .gds-cart-empty h2{color:var(--gds-cart-ink);font-size:24px}
.gds-cart-page .gds-cart-empty p{color:#7186a4}
.gds-cart-page .gds-cart-empty .gds-cart-btn{max-width:220px;margin-inline:auto}
/* Respond to the actual card width; desktop two-column layout can still have a narrow cart card. */
@container (max-width: 520px){
  html body .gds-cart-page form.woocommerce-cart-form .gds-cart-line{
    grid-template-columns:minmax(0,1fr) minmax(105px,.7fr)!important;
    gap:13px!important;
  }
  .gds-cart-page .gds-cart-line-info{grid-column:1/-1}
  .gds-cart-page .gds-cart-line-controls{grid-column:1;grid-row:2;align-items:flex-start!important}
  .gds-cart-page .gds-cart-line-controls .quantity{max-width:105px!important}
  .gds-cart-page .gds-cart-line-price{grid-column:2;grid-row:2;align-items:flex-end!important;text-align:end!important}
  .gds-cart-page .gds-cart-remove{min-height:44px!important}
}
@media(max-width:900px){.gds-cart-page .gds-cart-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){
 .gds-cart-container{width:calc(100% - 26px)}
 .gds-cart-banner{padding:32px 0}
 .gds-cart-page .gds-cart-panel{padding:17px}
 .gds-cart-page .gds-cart-summary-body{padding:17px}
 .gds-cart-page .gds-cart-panel h2{font-size:19px}
 .gds-cart-page .gds-cart-total-row strong{white-space:normal;overflow-wrap:anywhere}
 .gds-cart-page .gds-cart-actions{gap:12px}
 .gds-cart-page .gds-cart-actions>a{font-size:13px}
}

/* v1.0.60: do not break totals or individual Woo currency spans on RTL or mobile. */
.gds-cart-page .woocommerce-Price-amount,
.gds-cart-page .woocommerce-Price-amount bdi,
.gds-cart-page .woocommerce-Price-currencySymbol,
.gds-cart-page .gds-cart-total-row strong{white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important;unicode-bidi:isolate;}
.gds-cart-page .gds-cart-total-row strong{flex-shrink:0;direction:ltr;text-align:end;font-variant-numeric:tabular-nums;}
.gds-cart-page .gds-cart-line-amount{white-space:nowrap!important;}
@media(max-width:600px){.gds-cart-page .gds-cart-total-row strong{white-space:nowrap!important;overflow-wrap:normal!important}}

.gds-cart-page[dir="rtl"] .gds-cart-line-amount,
.gds-cart-page[dir="rtl"] .gds-cart-total-row strong,
.gds-cart-page[dir="rtl"] .woocommerce-Price-amount bdi{direction:rtl!important;unicode-bidi:isolate!important}
.gds-cart-page[dir="ltr"] .gds-cart-line-amount,
.gds-cart-page[dir="ltr"] .gds-cart-total-row strong{direction:ltr!important}

/* v1.0.61: do not leave a trailing divider after the final total row. */
.gds-cart-page .gds-cart-summary-body .gds-cart-total-row:last-of-type{border-bottom:0!important}


/* v1.0.63: keep the line-item Total label and its actual amount on ONE row.
   The remove action stays on its own row. Scoped to the Guidance cart only. */
.gds-cart-page .gds-cart-line-price {
  display:grid!important;
  grid-template-columns:max-content max-content!important;
  grid-template-rows:auto auto!important;
  column-gap:8px!important;
  row-gap:9px!important;
  align-items:center!important;
  justify-items:start!important;
  justify-content:start!important;
  align-content:center!important;
  flex-direction:unset!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}
.gds-cart-page .gds-cart-line-price .gds-cart-line-price-label {
  grid-column:1!important;grid-row:1!important;
  display:inline-block!important;white-space:nowrap!important;
  margin:0!important;line-height:1.5!important;
}
.gds-cart-page .gds-cart-line-price .gds-cart-line-amount {
  grid-column:2!important;grid-row:1!important;
  display:inline-block!important;white-space:nowrap!important;
  margin:0!important;max-width:none!important;min-width:max-content;
  text-align:start!important;line-height:1.5!important;
}
.gds-cart-page .gds-cart-line-price > .gds-cart-remove {
  grid-column:1/-1!important;grid-row:2!important;
  justify-self:start!important;margin:0!important;
}
/* The narrow cart card needs room for the amount and the label together. */
@container (max-width:520px) {
  html body .gds-cart-page form.woocommerce-cart-form .gds-cart-line {
    grid-template-columns:minmax(75px,85px) minmax(0,1fr)!important;
    gap:12px!important;
  }
  .gds-cart-page .gds-cart-line-controls {
    grid-column:1!important;grid-row:2!important;
    align-items:flex-start!important;
  }
  .gds-cart-page .gds-cart-line-price {
    grid-column:2!important;grid-row:2!important;
    align-items:center!important;justify-items:start!important;
  }
  .gds-cart-page .gds-cart-line-controls .quantity {max-width:85px!important}
  .gds-cart-page .gds-cart-line-price .gds-cart-line-amount {font-size:14px!important}
}
@media (max-width:350px) {
  @container (max-width:520px) {
    .gds-cart-page .gds-cart-line-controls {
      grid-column:1/-1!important;grid-row:2!important;
      flex-direction:row!important;align-items:center!important;
      justify-content:flex-start!important;
    }
    .gds-cart-page .gds-cart-line-price {
      grid-column:1/-1!important;grid-row:3!important;
      grid-template-columns:max-content max-content!important;
    }
  }
}
