/* PROMinsight WooCommerce Checkout + Thank You Page UI (Premium pass) */

:root {
  --psb-ui-bg: #eef3f9;
  --psb-ui-bg-alt: #f7faff;
  --psb-ui-card-bg: #ffffff;
  --psb-ui-card-border: #d8e3ef;
  --psb-ui-card-border-strong: #c7d8e8;
  --psb-ui-text: #1b2d40;
  --psb-ui-muted: #5f7185;
  --psb-ui-accent: #0f6c9c;
  --psb-ui-accent-2: #2f9ad0;
  --psb-ui-accent-soft: #eaf5fd;
  --psb-ui-success: #12805f;
  --psb-ui-shadow-sm: 0 8px 18px rgba(17, 45, 70, 0.08);
  --psb-ui-shadow-md: 0 18px 40px rgba(17, 45, 70, 0.11);
  --psb-ui-shadow-lg: 0 28px 60px rgba(17, 45, 70, 0.14);
  --psb-ui-radius-lg: 22px;
  --psb-ui-radius-md: 16px;
  --psb-ui-radius-sm: 12px;
}

body.woocommerce-checkout {
  background:
    radial-gradient(920px 420px at 12% -160px, rgba(47, 154, 208, 0.22), rgba(47, 154, 208, 0)),
    radial-gradient(860px 380px at 88% -180px, rgba(15, 108, 156, 0.18), rgba(15, 108, 156, 0)),
    linear-gradient(180deg, var(--psb-ui-bg-alt) 0%, var(--psb-ui-bg) 100%);
}

body.woocommerce-checkout .gt3-page-title_wrapper {
  margin-bottom: 24px;
}

body.woocommerce-checkout #main_content > .woocommerce,
body.woocommerce-cart #main_content > .wp-block-woocommerce-cart {
  position: relative;
  isolation: isolate;
  margin: 22px auto 80px;
  padding: 0;
  box-sizing: border-box;
}

body.woocommerce-checkout #main_content > .woocommerce::before,
body.woocommerce-checkout #main_content > .woocommerce::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  pointer-events: none;
}

body.woocommerce-checkout #main_content > .woocommerce::before {
  top: 210px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(47, 154, 208, 0.18), rgba(47, 154, 208, 0));
}

body.woocommerce-checkout #main_content > .woocommerce::after {
  bottom: 120px;
  left: -120px;
  background: radial-gradient(circle at 50% 50%, rgba(15, 108, 156, 0.12), rgba(15, 108, 156, 0));
}

/* Common message cards */
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-error,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  position: relative;
  border: 1px solid var(--psb-ui-card-border-strong);
  border-radius: var(--psb-ui-radius-sm);
  box-shadow: var(--psb-ui-shadow-sm);
  background: var(--psb-ui-card-bg);
  color: var(--psb-ui-text);
  line-height: 1.5;
  list-style: none;
  padding: 14px 18px;
  margin: 0;
}

body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-error,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  border-left-width: 4px;
}

body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-error {
  border-left-color: #d84f57;
  background: linear-gradient(90deg, rgba(216, 79, 87, 0.08), rgba(216, 79, 87, 0) 58%), #fff;
}

body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  border-left-color: var(--psb-ui-accent);
  background: linear-gradient(90deg, rgba(15, 108, 156, 0.07), rgba(15, 108, 156, 0) 58%), #fff;
}

body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message {
  border-left: 4px solid var(--psb-ui-accent);
  background: linear-gradient(90deg, rgba(15, 108, 156, 0.08), rgba(15, 108, 156, 0) 58%), #fff;
}

body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-error::before,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message::before,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-error li::before,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message li::before,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-info li::before {
  content: none !important;
  display: none !important;
}

body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-error li,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message li,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-info li {
  margin: 0;
  padding: 0;
}

body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-error a,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message a,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-info a,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a {
  color: inherit;
  text-underline-offset: 0.12em;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info .showcoupon {
  font-weight: 700;
}

body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message .button {
  border-radius: 9px;
  border: 0;
  min-height: 36px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #12385a, #2e5a80);
}

body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message .button:hover {
  filter: brightness(1.05);
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle {
  margin-bottom: 18px;
}

body.woocommerce-checkout .checkout_coupon.woocommerce-form-coupon {
  border: 1px solid var(--psb-ui-card-border);
  border-radius: var(--psb-ui-radius-md);
  box-shadow: var(--psb-ui-shadow-sm);
  background: var(--psb-ui-card-bg);
  padding: 18px 18px 10px;
  margin: 0 0 24px;
}

body.woocommerce-checkout .checkout_coupon .form-row-first,
body.woocommerce-checkout .checkout_coupon .form-row-last {
  margin-bottom: 10px;
}

/* Checkout page only */
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout {
  background: transparent;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce .col2-set {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce .col2-set .col-1,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce .col2-set .col-2 {
  width: auto;
  float: none !important;
  clear: none !important;
  display: block;
  margin: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details > .col-1 {
  grid-column: 1;
  grid-row: 1;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details > .col-2 {
  grid-column: 2;
  grid-row: 1;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-additional-fields {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--psb-ui-card-border);
  border-radius: var(--psb-ui-radius-lg);
  box-shadow: var(--psb-ui-shadow-md);
  padding: 24px 22px 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields::before,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-additional-fields::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--psb-ui-accent), var(--psb-ui-accent-2));
  display: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields:hover,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-additional-fields:hover {
  transform: translateY(-2px);
  border-color: #c8dced;
  box-shadow: var(--psb-ui-shadow-lg);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields h3,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-additional-fields h3,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading {
  margin: 0 0 16px;
  color: var(--psb-ui-text);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields h3,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-additional-fields h3 {
  position: relative;
  padding-bottom: 8px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields h3::after,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-additional-fields h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--psb-ui-accent), var(--psb-ui-accent-2));
}

body.woocommerce-checkout:not(.woocommerce-order-received) .form-row {
  margin-bottom: 14px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .form-row label {
  color: #32475d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .form-row .input-text,
body.woocommerce-checkout:not(.woocommerce-order-received) .form-row textarea,
body.woocommerce-checkout:not(.woocommerce-order-received) .form-row select,
body.woocommerce-checkout:not(.woocommerce-order-received) .select2-container .select2-selection--single {
  border: 1px solid #c9d8e7;
  border-radius: var(--psb-ui-radius-sm);
  min-height: 48px;
  background: #fbfdff;
  box-shadow: inset 0 1px 2px rgba(20, 39, 58, 0.03);
  color: var(--psb-ui-text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .form-row textarea {
  min-height: 120px;
  padding-top: 12px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .form-row .input-text:focus,
body.woocommerce-checkout:not(.woocommerce-order-received) .form-row textarea:focus,
body.woocommerce-checkout:not(.woocommerce-order-received) .form-row select:focus,
body.woocommerce-checkout:not(.woocommerce-order-received) .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #7fb7d7;
  box-shadow: 0 0 0 3px rgba(15, 108, 156, 0.17);
  background: #fff;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #wc-stripe-express-checkout-element {
  margin-top: 0 !important;
  margin-bottom: 16px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #wc-stripe-express-checkout-button-separator {
  margin: 12px 0 22px !important;
  color: var(--psb-ui-muted);
  font-weight: 700;
  letter-spacing: 0.11em;
  font-size: 12px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading {
  margin-top: 8px;
  margin-bottom: 14px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--psb-ui-card-border);
  border-radius: var(--psb-ui-radius-lg);
  box-shadow: var(--psb-ui-shadow-md);
  padding: 22px 22px 18px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table {
  border-radius: 12px;
  overflow: hidden;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table th,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table td {
  border-color: #e4edf5;
  color: var(--psb-ui-text);
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table th,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table td {
  padding: 16px 18px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table .product-name,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table tfoot th {
  padding-left: 18px !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table .product-total,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table tfoot td {
  padding-right: 18px !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table thead th {
  color: #37506a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #f4f9ff;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review tbody tr:hover td {
  background: rgba(15, 108, 156, 0.03);
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment {
  margin-top: 16px;
  border: 1px solid #dbe8f4;
  border-radius: var(--psb-ui-radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment .payment_box {
  background: #f4fbff;
  border-top: 1px solid #d6e8f4;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment .payment_box::before {
  border-bottom-color: #f4fbff;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment .wc_payment_methods > li > label {
  font-weight: 700;
  color: #23425d;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-privacy-policy-text,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-privacy-policy-text p {
  color: var(--psb-ui-muted);
  font-size: 12px;
  line-height: 1.55;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #place_order {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
  border: 0;
  min-height: 52px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #0f6c9c, #2e8fbd);
  box-shadow: 0 12px 26px rgba(15, 108, 156, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #place_order::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  transform: skewX(-24deg);
  transition: left 0.5s ease;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #place_order:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(15, 108, 156, 0.36);
}

body.woocommerce-checkout:not(.woocommerce-order-received) #place_order:hover::after {
  left: 130%;
}

/* Thank you page */
body.woocommerce-order-received .woocommerce-order {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--psb-ui-card-border);
  border-radius: var(--psb-ui-radius-lg);
  box-shadow: var(--psb-ui-shadow-lg);
  padding: 28px;
}

body.woocommerce-order-received .woocommerce-verify-email {
  margin-top: 18px;
  border: 1px solid #dbe8f2;
  border-radius: var(--psb-ui-radius-md);
  background: #ffffff;
  padding: 22px;
}

body.woocommerce-order-received .woocommerce-verify-email > p:first-of-type {
  margin-top: 0;
  color: #4d6176;
  font-size: 15px;
}

body.woocommerce-order-received .woocommerce-verify-email .form-row {
  margin-bottom: 14px;
}

body.woocommerce-order-received .woocommerce-verify-email label {
  color: #2f465d;
  font-size: 14px;
  font-weight: 700;
}

body.woocommerce-order-received .woocommerce-verify-email .input-text {
  border: 1px solid #c9d8e7;
  border-radius: var(--psb-ui-radius-sm);
  min-height: 48px;
  background: #fbfdff;
}

body.woocommerce-order-received .woocommerce-verify-email .button {
  border-radius: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #0f6c9c, #2e8fbd);
}

body.woocommerce-order-received .woocommerce-thankyou-order-received {
  position: relative;
  background: linear-gradient(135deg, #eaf7ff, #f4fbff);
  border: 1px solid #c6e3f4;
  border-left: 5px solid var(--psb-ui-accent);
  border-radius: var(--psb-ui-radius-sm);
  padding: 16px 18px 16px 60px;
  color: #133b5d;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 800;
}

body.woocommerce-order-received .woocommerce-thankyou-order-received::before {
  content: "\2713";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--psb-ui-accent);
  color: #fff;
  text-align: center;
  line-height: 28px;
  font-size: 16px;
}

/* WooCommerce core still applies float/clear styles on .order_details li.
 * Override those with higher specificity so all summary cards share one grid. */
body.woocommerce-order-received .woocommerce .woocommerce-order-overview,
body.woocommerce-order-received .woocommerce ul.order_details {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "order date total method";
  gap: 12px;
}

body.woocommerce-order-received .woocommerce .woocommerce-order-overview > li,
body.woocommerce-order-received .woocommerce ul.order_details > li {
  margin: 0 !important;
  padding: 13px 14px 12px !important;
  border: 1px solid #dbe8f2 !important;
  border-radius: var(--psb-ui-radius-sm);
  background: linear-gradient(180deg, #fafdff 0%, #f4faff 100%);
  color: #607283;
  font-size: 11px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  float: none !important;
  width: auto !important;
  clear: none !important;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body.woocommerce-order-received .woocommerce-order-overview__order,
body.woocommerce-order-received .woocommerce ul.order_details > li.order {
  grid-area: order;
}

body.woocommerce-order-received .woocommerce-order-overview__date,
body.woocommerce-order-received .woocommerce ul.order_details > li.date {
  grid-area: date;
}

body.woocommerce-order-received .woocommerce-order-overview__total,
body.woocommerce-order-received .woocommerce ul.order_details > li.total {
  grid-area: total;
}

body.woocommerce-order-received .woocommerce-order-overview__payment-method,
body.woocommerce-order-received .woocommerce ul.order_details > li.method {
  grid-area: method;
  margin: 0 !important;
  clear: none !important;
  float: none !important;
  width: auto !important;
}

body.woocommerce-order-received .woocommerce .woocommerce-order-overview strong,
body.woocommerce-order-received .woocommerce ul.order_details strong {
  display: block;
  margin-top: 6px;
  color: #14334f;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: normal;
  text-transform: none;
}

body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details {
  margin-top: 22px;
  border: 1px solid #dbe8f2;
  border-radius: var(--psb-ui-radius-md);
  background: #fff;
  padding: 20px 20px 8px;
}

body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-column__title {
  margin: 0 0 14px;
  color: #1d3247;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body.woocommerce-order-received .woocommerce-order table.shop_table {
  border-radius: 12px;
  overflow: hidden;
}

body.woocommerce-order-received .woocommerce-order table.shop_table th,
body.woocommerce-order-received .woocommerce-order table.shop_table td {
  border-color: #e4edf5;
  color: #253c52;
}

body.woocommerce-order-received .woocommerce-order table.shop_table thead th {
  color: #3d556d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #f4f9ff;
}

body.woocommerce-order-received .woocommerce-customer-details address {
  margin: 0;
  border: 1px solid #e1ecf5;
  border-radius: var(--psb-ui-radius-sm);
  background: #fbfdff;
  padding: 16px;
  color: #324a61;
  line-height: 1.65;
}

body.woocommerce-order-received .woocommerce-customer-details address p {
  margin: 9px 0 0;
}

/* Empty cart page */
body.woocommerce-cart {
  background:
    radial-gradient(900px 420px at 10% -180px, rgba(47, 154, 208, 0.2), rgba(47, 154, 208, 0)),
    radial-gradient(860px 380px at 90% -170px, rgba(15, 108, 156, 0.16), rgba(15, 108, 156, 0)),
    linear-gradient(180deg, var(--psb-ui-bg-alt) 0%, var(--psb-ui-bg) 100%);
}

body.woocommerce-cart .wp-block-woocommerce-cart.alignwide {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wc-block-cart__empty-cart__title {
  position: relative;
  margin: 0 auto 14px;
  max-width: 760px;
  border: 1px solid var(--psb-ui-card-border-strong);
  border-left: 5px solid var(--psb-ui-accent);
  border-radius: var(--psb-ui-radius-md);
  background: linear-gradient(135deg, #eaf7ff, #f7fcff);
  box-shadow: var(--psb-ui-shadow-md);
  color: #163a59;
  text-align: center;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  padding: 30px 24px 28px;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
  content: "\1F6D2";
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #0f6c9c, #2f9ad0);
  box-shadow: 0 12px 24px rgba(15, 108, 156, 0.3);
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-separator.is-style-dots {
  max-width: 120px;
  margin: 20px auto 22px;
  opacity: 0.7;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-heading.has-text-align-center:not(.wc-block-cart__empty-cart__title) {
  margin: 6px 0 18px;
  color: #1c3045;
  text-align: center;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
  margin: 0;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  border: 1px solid #d8e3ef;
  border-radius: var(--psb-ui-radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow: var(--psb-ui-shadow-md);
  padding: 18px 18px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product:hover {
  transform: translateY(-4px);
  border-color: #c2d6e7;
  box-shadow: var(--psb-ui-shadow-lg);
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link {
  text-decoration: none;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image {
  width: 100% !important;
  margin-bottom: 12px;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img {
  width: min(100%, 250px);
  max-width: 250px !important;
  height: auto !important;
  margin: 0 auto 12px;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
  color: #21384f;
  font-size: 15px;
  line-height: 1.45;
  min-height: 3.1em;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price {
  margin-top: 6px;
  margin-bottom: 12px;
  color: #3e5f7b;
  font-size: 18px;
  font-weight: 800;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart {
  margin-top: auto;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link {
  border-radius: 999px;
  border: 0;
  min-height: 42px;
  padding: 0 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #0f6c9c, #2f9ad0);
  box-shadow: 0 10px 22px rgba(15, 108, 156, 0.24);
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
  filter: brightness(1.04);
}

/* Filled cart page */
body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 24px;
  align-items: start;
}

body.woocommerce-cart .wc-block-cart__main {
  min-width: 0;
  width: auto !important;
  flex: none !important;
  border: 1px solid var(--psb-ui-card-border);
  border-radius: var(--psb-ui-radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #fafdff 100%);
  box-shadow: var(--psb-ui-shadow-md);
  overflow: hidden;
}

body.woocommerce-cart .wc-block-cart-items {
  width: 100%;
  margin: 0;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}

body.woocommerce-cart .wc-block-cart-items__header th {
  padding: 18px 20px;
  border: 0;
  background: #f3f9ff;
  color: #3d556d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

body.woocommerce-cart .wc-block-cart-items__header-image,
body.woocommerce-cart .wc-block-cart-item__image {
  width: 124px;
}

body.woocommerce-cart .wc-block-cart-items__header-total,
body.woocommerce-cart .wc-block-cart-item__total {
  width: 150px;
}

body.woocommerce-cart .wc-block-cart-items__row {
  background: #fff;
}

body.woocommerce-cart .wc-block-cart-items__row td {
  border: 0;
  border-top: 1px solid #e4edf5;
  padding: 20px;
  vertical-align: top;
}

body.woocommerce-cart .wc-block-cart-item__image a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border: 1px solid #dbe8f2;
  border-radius: 14px;
  background: #f9fcff;
}

body.woocommerce-cart .wc-block-cart-item__image img {
  max-width: 88px;
  height: auto;
}

body.woocommerce-cart .wc-block-components-product-name {
  color: #203a53;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.woocommerce-cart .wc-block-cart-item__prices .wc-block-components-product-price__value {
  color: #365a78;
  font-size: 20px;
  font-weight: 800;
}

body.woocommerce-cart .wc-block-components-product-metadata__description {
  color: #5a6f84;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
  border: 0;
  padding: 0;
  color: #0f6c9c;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
  color: #0a567d;
}

body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price__value {
  color: #1f3a52;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

body.woocommerce-cart .wc-block-cart__sidebar {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  min-width: 0;
  position: sticky;
  top: 24px;
  border: 1px solid var(--psb-ui-card-border);
  border-radius: var(--psb-ui-radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #fafdff 100%);
  box-shadow: var(--psb-ui-shadow-md);
  padding: 24px 22px 22px;
}

body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block,
body.woocommerce-cart .wp-block-woocommerce-cart-express-payment-block,
body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block {
  margin: 0;
}

body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dbe6f0;
}

body.woocommerce-cart .wc-block-cart__totals-title {
  margin: 0 0 16px;
  color: #1c3045;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: none;
}

body.woocommerce-cart .wc-block-components-totals-wrapper {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

body.woocommerce-cart .wc-block-components-totals-coupon.wc-block-components-panel {
  margin-bottom: 8px;
  border: 1px solid #deebf5;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

body.woocommerce-cart .wc-block-components-panel__button[aria-expanded="true"] {
  margin-bottom: 0;
}

body.woocommerce-cart .wc-block-components-panel__button {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 50px 14px 18px;
  color: #2a4259;
  font-size: 14px;
  font-weight: 700;
}

body.woocommerce-cart .wc-block-components-panel__button > .wc-block-components-panel__button-icon {
  right: 20px;
}

body.woocommerce-cart .wc-block-components-panel__content {
  border-top: 1px solid #eef4f9;
  padding: 14px 18px 18px;
}

body.woocommerce-cart .wc-block-components-totals-coupon__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-text-input.wc-block-components-totals-coupon__input {
  margin: 0;
}

body.woocommerce-cart .wc-block-components-totals-coupon__input input[type="text"],
body.woocommerce-cart .wc-block-components-totals-coupon__input .wc-block-components-text-input__input {
  border: 1px solid #cfddec;
  border-radius: 12px;
  min-height: 48px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(20, 39, 58, 0.03);
}

body.woocommerce-cart .wc-block-components-totals-coupon__button.wc-block-components-button {
  border: 0;
  border-radius: 12px;
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #113f62, #2d6a93);
  box-shadow: 0 10px 24px rgba(17, 45, 70, 0.16);
}

body.woocommerce-cart .wc-block-components-totals-coupon__button .wc-block-components-button__text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.woocommerce-cart .wc-block-components-totals-footer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-height: 0;
  padding: 14px 18px;
  border: 1px solid #deebf5;
  border-radius: 16px;
  background: #fff;
}

body.woocommerce-cart .wc-block-components-totals-item__label {
  color: #324a61;
  font-size: 15px;
  font-weight: 700;
}

body.woocommerce-cart .wc-block-components-totals-item__value {
  color: #18344e;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

body.woocommerce-cart .wc-block-components-totals-item__description {
  flex-basis: 100%;
  margin: 0;
}

body.woocommerce-cart .wc-block-components-totals-item__description:empty {
  display: none;
}

body.woocommerce-cart .wc-block-cart__payment-options {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body.woocommerce-cart .wp-block-woocommerce-cart-express-payment-block {
  margin-bottom: 18px;
  padding: 22px 0 0;
}

body.woocommerce-cart .wp-block-woocommerce-cart-express-payment-block:empty,
body.woocommerce-cart .wp-block-woocommerce-cart-accepted-payment-methods-block:empty {
  display: none;
}

body.woocommerce-cart .wp-block-woocommerce-cart-express-payment-block:not(:empty),
body.woocommerce-cart .wp-block-woocommerce-cart-accepted-payment-methods-block:not(:empty) {
  padding-top: 18px;
  border-top: 1px solid #dbe6f0;
}

body.woocommerce-cart .wc-block-components-express-payment--cart {
  margin: 0;
}

body.woocommerce-cart .wc-block-components-express-payment .wc-block-components-express-payment__event-buttons {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.woocommerce-cart .wc-block-components-express-payment .wc-block-components-express-payment__event-buttons > li {
  display: block;
  list-style: none;
  min-width: 0;
  padding-bottom: 0;
}

body.woocommerce-cart .wc-block-components-express-payment .wc-block-components-express-payment__event-buttons > li::marker {
  content: "";
}

body.woocommerce-cart .wc-block-components-express-payment .wc-block-components-express-payment__event-buttons > li > *,
body.woocommerce-cart #wc-stripe-express-checkout-element > div {
  width: 100%;
}

body.woocommerce-cart #wc-stripe-express-checkout-element {
  margin: 0;
  gap: 14px;
}

body.woocommerce-cart #wc-stripe-express-checkout-element > div {
  min-width: 0;
}

body.woocommerce-cart .wc-block-components-express-payment-continue-rule {
  margin: 18px 0 0;
  color: #607285;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.woocommerce-cart .wc-block-components-express-payment-continue-rule::before,
body.woocommerce-cart .wc-block-components-express-payment-continue-rule::after {
  border-bottom-color: #d3e1ec;
}

body.woocommerce-cart .wc-block-cart__submit {
  margin-top: 18px;
}

body.woocommerce-cart .wc-block-cart__submit-button.wc-block-components-button {
  border: 0;
  border-radius: 999px;
  min-height: 50px;
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, #113f62, #2d5c84);
  box-shadow: 0 14px 30px rgba(17, 45, 70, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.woocommerce-cart .wc-block-cart__submit-button.wc-block-components-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 18px 34px rgba(17, 45, 70, 0.32);
}

body.woocommerce-cart .wc-block-cart__submit-button .wc-block-components-button__text {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

body.woocommerce-cart .wc-block-cart-item__product {
  min-width: 0;
}

body.woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name,
body.woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-metadata {
  max-width: 100%;
}

body.woocommerce-cart .wc-block-components-notices {
  margin-bottom: 14px;
}

body.woocommerce-cart .wc-block-components-notices .wc-block-components-notice-banner {
  border: 1px solid #c7d8e8;
  border-left: 4px solid var(--psb-ui-accent);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--psb-ui-shadow-sm);
}

/* Responsive */
@media (max-width: 1024px) {
  body.woocommerce-checkout #main_content > .woocommerce::before,
  body.woocommerce-checkout #main_content > .woocommerce::after {
    display: none;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce .col2-set {
    grid-template-columns: 1fr;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details > .col-2 {
    grid-column: 1;
    grid-row: 2;
  }

  body.woocommerce-order-received .woocommerce .woocommerce-order-overview,
  body.woocommerce-order-received .woocommerce ul.order_details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "order date"
      "total method";
  }

  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-heading.has-text-align-center:not(.wc-block-cart__empty-cart__title) {
    font-size: 38px;
  }

  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.woocommerce-checkout #main_content > .woocommerce,
  body.woocommerce-cart #main_content > .wp-block-woocommerce-cart {
    margin-top: 14px;
    padding: 0;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields,
  body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-additional-fields,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
    border-radius: 14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table th,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table td {
    padding: 12px 14px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields h3,
  body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-additional-fields h3,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading {
    font-size: 25px;
  }

  body.woocommerce-order-received .woocommerce-order {
    padding: 16px;
    border-radius: 14px;
  }

  body.woocommerce-order-received .woocommerce-thankyou-order-received {
    padding: 13px 14px 13px 50px;
    font-size: 18px;
  }

  body.woocommerce-order-received .woocommerce .woocommerce-order-overview,
  body.woocommerce-order-received .woocommerce ul.order_details {
    grid-template-columns: 1fr;
    grid-template-areas:
      "order"
      "date"
      "total"
      "method";
  }

  body.woocommerce-order-received .woocommerce .woocommerce-order-overview strong,
  body.woocommerce-order-received .woocommerce ul.order_details strong {
    font-size: 17px;
  }

  body.woocommerce-order-received .woocommerce-order-details__title,
  body.woocommerce-order-received .woocommerce-column__title {
    font-size: 24px;
  }

  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wc-block-cart__empty-cart__title {
    font-size: 26px;
    padding: 20px 16px 18px;
  }

  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
    width: 54px;
    height: 54px;
    margin-bottom: 12px;
    font-size: 24px;
  }

  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-heading.has-text-align-center:not(.wc-block-cart__empty-cart__title) {
    font-size: 30px;
  }

  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.woocommerce-cart .wc-block-cart__main,
  body.woocommerce-cart .wc-block-cart__sidebar {
    border-radius: 14px;
  }

  body.woocommerce-cart .wc-block-cart__sidebar {
    position: static;
    padding: 18px 14px 14px;
  }

  body.woocommerce-cart .wc-block-cart__totals-title {
    margin-bottom: 14px;
    font-size: 22px;
  }

  body.woocommerce-cart .wc-block-cart-items__header th,
  body.woocommerce-cart .wc-block-cart-items__row td {
    padding: 14px;
  }

  body.woocommerce-cart .wc-block-cart-item__image a {
    width: 88px;
    height: 88px;
  }

  body.woocommerce-cart .wc-block-cart-item__image img {
    max-width: 68px;
  }

  body.woocommerce-cart .wc-block-components-product-name {
    font-size: 16px;
  }

  body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price__value {
    font-size: 20px;
  }

  body.woocommerce-cart .wc-block-cart-items {
    display: block;
  }

  body.woocommerce-cart .wc-block-cart-items thead {
    display: none;
  }

  body.woocommerce-cart .wc-block-cart-items tbody {
    display: block;
  }

  body.woocommerce-cart .wc-block-cart-items__row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
  }

  body.woocommerce-cart .wc-block-cart-items__row td {
    border-top: 0;
    padding: 10px 8px;
  }

  body.woocommerce-cart .wc-block-cart-item__image {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: auto;
    padding-top: 4px;
  }

  body.woocommerce-cart .wc-block-cart-item__product {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    min-width: 0;
  }

  body.woocommerce-cart .wc-block-cart-item__total {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    text-align: right;
    padding-top: 8px;
  }

  body.woocommerce-cart .wc-block-cart-item__image a {
    width: 62px;
    height: 62px;
    border-radius: 10px;
  }

  body.woocommerce-cart .wc-block-cart-item__image img {
    max-width: 48px;
  }

  body.woocommerce-cart .wc-block-cart-item__prices .wc-block-components-product-price__value {
    font-size: 16px;
  }

  body.woocommerce-cart .wc-block-components-panel__button {
    min-height: 50px;
    padding: 12px 42px 12px 14px;
    font-size: 14px;
  }

  body.woocommerce-cart .wc-block-components-panel__content {
    padding: 12px 14px 14px;
  }

  body.woocommerce-cart .wc-block-components-totals-coupon__form {
    grid-template-columns: 1fr;
  }

  body.woocommerce-cart .wc-block-components-totals-footer-item {
    padding: 14px;
  }

  body.woocommerce-cart .wc-block-components-totals-item__value {
    font-size: 28px;
  }

  body.woocommerce-cart .wc-block-components-express-payment .wc-block-components-express-payment__event-buttons {
    gap: 12px;
  }

  body.woocommerce-cart .wc-block-components-express-payment-continue-rule {
    margin-top: 16px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }
}
