:root {
  --cartx-bg: #f6f8fb;
  --cartx-card: #ffffff;
  --cartx-border: #e3e6eb;
  --cartx-text: #1f252d;
  --cartx-muted: #6c7683;
  --cartx-accent: #3a6ea5;
  --cartx-accent-contrast: #ffffff;
  --cartx-danger: #c0392b;
  --cartx-gap: 18px;
  --cartx-radius: 10px;
  --cartx-radius-sm: 6px;
  --cartx-shadow: 0 6px 18px rgba(20, 34, 54, 0.04);
}

.cartx {
  font-family: -apple-system, 'Segoe UI', sans-serif;
  color: var(--cartx-text);
  background: var(--cartx-bg);
  padding: 24px 20px 32px;
}

.cartx * {
  box-sizing: border-box;
}

.cartx a {
  color: var(--cartx-accent);
  text-decoration: none;
}

.cartx a:hover {
  text-decoration: underline;
}

.cartx .woocommerce-notices-wrapper {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0 0 32px 0;
}

.cartx .woocommerce-notices-wrapper,
.cartx .woocommerce-notices-wrapper ul,
.cartx .woocommerce-notices-wrapper ol {
  list-style: none !important;
  margin: 0;
  padding-left: 0 !important;
}

.cartx .woocommerce-notices-wrapper .woocommerce-error-list,
.cartx .woocommerce-notices-wrapper .woocommerce-error,
.cartx .woocommerce-notices-wrapper .woocommerce-message,
.cartx .woocommerce-notices-wrapper .woocommerce-info,
.cartx .woocommerce-notices-wrapper .wc-notice {
  list-style: none;
  margin: 0;
  padding: 12px 14px !important;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  box-shadow: none;
  color: #8d1b1b;
  background: #fff2f2;
  border-color: #f3a7a7;
  border-left-width: 4px;
}

.cartx .woocommerce-notices-wrapper .woocommerce-error-list li,
.cartx .woocommerce-notices-wrapper .woocommerce-error li,
.cartx .woocommerce-notices-wrapper .woocommerce-message li,
.cartx .woocommerce-notices-wrapper .woocommerce-info li,
.cartx .woocommerce-notices-wrapper .wc-notice li {
  margin: 0;
  padding: 0;
}

.cartx .woocommerce-notices-wrapper a {
  color: inherit;
  text-decoration: underline;
}

.cartx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.cartx-title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cartx-text);
}

.cartx .cartx-title {
  color: var(--cartx-text) !important;
}

.cartx-link {
  font-size: 14px;
  color: var(--cartx-muted);
}

.cartx-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: stretch;
}

.cartx-items {
  background: var(--cartx-card);
  border: 1px solid var(--cartx-border);
  border-radius: var(--cartx-radius);
  box-shadow: var(--cartx-shadow);
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cartx-row {
  display: grid;
  grid-template-columns: 32px 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--cartx-border);
}

.cartx-row:last-of-type {
  border-bottom: none;
}

.cartx-remove {
  border: 1px solid var(--cartx-border);
  background: #f1f3f6;
  color: var(--cartx-muted);
  text-decoration: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.cartx-remove:hover {
  border-color: var(--cartx-danger);
  color: var(--cartx-danger);
  background: #fff1f1;
  text-decoration: none;
}

.cartx-thumb img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--cartx-radius-sm);
  border: 1px solid var(--cartx-border);
  background: #fff;
}

.cartx-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cartx-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cartx-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.cartx-meta {
  color: var(--cartx-muted);
  font-size: 14px;
  line-height: 1.4;
}

.cartx-price,
.cartx-subtotal {
  font-weight: 600;
  white-space: nowrap;
}

.cartx-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.cartx-price-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cartx-muted);
}

.cartx-line--controls {
  align-items: center;
  margin-top: 2px;
}

.cartx-qty .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--cartx-border);
  border-radius: var(--cartx-radius-sm);
  overflow: hidden;
  background: #fff;
  min-width: 110px;
}

.cartx-qty .qty {
  width: 50px;
  padding: 8px 6px;
  text-align: center;
  border: none;
  box-shadow: none;
  font-size: 15px;
  height: 44px;
  appearance: textfield;
}

.cartx-qty .qty::-webkit-outer-spin-button,
.cartx-qty .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cartx-qty .qty-inset,
.cartx-qty button,
.cartx-qty span {
  border: 0;
}
.cartx-qty .qty-inset,
.cartx-qty .qty-plus,
.cartx-qty .qty-minus {
  display: none !important;
}
.cartx-qty .qty-inset span,
.cartx-qty .qty-plus,
.cartx-qty .qty-minus {
  padding: 10px 12px;
  font-size: 16px;
}

.cartx-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--cartx-border);
  border-radius: var(--cartx-radius-sm);
  overflow: hidden;
  background: #fff;
  height: 44px;
}

.cartx-qty-btn {
  border: 0;
  background: #f1f3f6;
  color: var(--cartx-text);
  width: 32px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cartx-qty-btn:hover {
  background: #e6e9ee;
}

.cartx-qty-control .qty {
  border-left: 1px solid var(--cartx-border);
  border-right: 1px solid var(--cartx-border);
  width: 50px;
  padding: 8px 6px;
  height: 100%;
  color: var(--cartx-text) !important;
  -webkit-text-fill-color: var(--cartx-text) !important;
  background: #fff !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-indent: 0;
  text-align: center;
  outline: none;
  opacity: 1 !important;
}

.cartx-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0 0;
}

.cartx-coupon {
  display: flex;
  gap: 8px;
  flex: 1;
  flex-direction: row;
}

.cartx-coupon input {
  border: 1px solid var(--cartx-border);
  border-radius: var(--cartx-radius-sm);
  padding: 10px 12px;
  margin: 0 !important;
  font-size: 14px;
  flex: 1;
  max-width: fit-content;
  min-width: 50%;
}

.cartx .button,
.cartx .cartx-btn {
  border-radius: var(--cartx-radius-sm);
  background: var(--cartx-accent);
  color: var(--cartx-accent-contrast);

  border: 1px solid var(--cartx-accent);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.cartx .button[disabled],
.cartx .button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.cartx .button:hover {
  filter: brightness(0.95);
}

.cartx-summary {
  position: sticky;
  top: 20px;
  align-self: stretch;
  display: flex;
}

.cartx-summary-box {
  background: var(--cartx-card);
  border: 1px solid var(--cartx-border);
  border-radius: var(--cartx-radius);
  box-shadow: 0 4px 14px rgba(20, 34, 54, 0.03);
  padding: 14px;
  width: 100%;
  min-height: 100%;
}

.cartx-summary .cart_totals {
  margin: 0;
}

.cartx-shipping-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cartx-shipping-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--cartx-border);
  border-radius: var(--cartx-radius-sm);
  background: #fff;
}

.cartx-shipping-item label {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  color: var(--cartx-text);
}

.cartx-shipping-item input[type='radio'] {
  margin-top: 0;
}

.cartx-shipping-item img {
  max-height: 26px;
  width: auto;
  display: block;
}

.cartx-shipping-destination {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--cartx-muted);
}

.cartx-shipping-contents {
  font-size: 12px;
  color: var(--cartx-muted);
}

.cartx-summary .shipping-calculator-button {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--cartx-accent);
  text-decoration: underline;
}

.cartx-summary .shipping-calculator-form {
  margin-top: 8px;
}

.cartx-summary h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

.cartx-summary table {
  width: 100%;
  border-collapse: collapse;
}

.cartx-summary th,
.cartx-summary td {
  font-size: 15px;
  padding: 6px 0;
  border: none;
  color: var(--cartx-text);
}

.cartx-summary .order-total th,
.cartx-summary .order-total td {
  font-size: 17px;
  font-weight: 700;
  padding-top: 12px;
  text-align: right !important;
}

.cartx-summary .cartx-coupon-row th,
.cartx-summary .cartx-coupon-row td {
  background: #f7fff9;
  border-top: 2px solid #7bcf9f !important;
  border-bottom: 2px solid #7bcf9f !important;
  padding: 10px 12px;
  vertical-align: middle;
}

.cartx-summary .cartx-coupon-row th {
  border-left: 2px solid #7bcf9f !important;
  border-radius: 10px 0 0 10px;
  box-shadow: inset 4px 0 0 #2db06b;
}

.cartx-summary .cartx-coupon-row td {
  border-right: 2px solid #7bcf9f !important;
  border-radius: 0 10px 10px 0;
}

.cartx-summary .cartx-coupon-label-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cartx-summary .cartx-coupon-label-text {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #227a48;
}

.cartx-summary .cartx-coupon-code {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: #104f2b;
}

.cartx-summary .cartx-coupon-value {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: #0f5132;
}

.cartx-summary .cartx-coupon-value .amount,
.cartx-summary .cartx-coupon-value .woocommerce-Price-amount {
  font-weight: 700;
  color: #0f5132;
}

.cartx-summary .cartx-coupon-value .woocommerce-remove-coupon {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #dbe7ff;
  background: #f7faff;
  color: #3a6ea5 !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.cartx-summary .cartx-coupon-value .woocommerce-remove-coupon:hover {
  border-color: #b8d3f8;
  background: #edf4ff;
  text-decoration: none;
}

.cartx-summary .wc-proceed-to-checkout {
  margin-top: 12px;
}

.cartx-summary .cartx-proceed-to-checkout {
  margin-top: 12px;
}

.cartx-summary .checkout-button {
  width: 100%;
  text-align: center;
  display: inline-block;
  font-size: 15px;
  padding: 13px;
  border-radius: 10px;
}

.cartx-summary small,
.cartx-summary .includes_tax {
  color: var(--cartx-muted);
}

/* Empty cart */
.cartx .cart-empty {
  padding: 18px;
  background: var(--cartx-card);
  border: 1px solid var(--cartx-border);
  border-radius: var(--cartx-radius);
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .cartx-grid {
    grid-template-columns: 1fr;
  }

  .cartx-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .cartx {
    padding: 18px 14px;
  }

  .cartx-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .cartx-row {
    grid-template-columns: 32px 80px 1fr;
    gap: 10px;
  }

  .cartx-thumb img {
    width: 80px;
    height: 80px;
  }

  .cartx-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cartx-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cartx-coupon {
    width: 100%;
    flex-direction: column;
  }

  .cartx-coupon .button,
  .cartx .cartx-btn {
    width: 100%;
    text-align: center;
  }

  .cartx-actions .button.cartx-btn:last-child {
    margin-top: 4px;
  }

  .cartx-summary-box {
    padding: 12px;
    border-radius: 12px;
  }

  .cartx-summary .cartx-totals-title {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.1;
  }

  .cartx-summary table.cartx-totals-table,
  .cartx-summary table.cartx-totals-table tbody {
    display: block;
    width: 100%;
  }

  .cartx-totals:last-child {
    margin: 0px !important;
  }

  #ppcp-recaptcha-v2-container {
    display: none !important;
  }

  .cartx-summary .cartx-line {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
  }

  .cartx-summary .cartx-line th,
  .cartx-summary .cartx-line td {
    display: block;
    width: auto;
    padding: 0;
    border: 0 !important;
    margin: 0;
  }

  .cartx-summary .cartx-line td {
    text-align: right;
  }

  .cartx-summary .cartx-line td::before {
    content: none !important;
    display: none !important;
  }

  .cartx-summary .cartx-line--shipping-header,
  .cartx-summary .cartx-line--shipping {
    display: block;
    padding: 4px 0;
  }

  .cartx-summary .cartx-line--shipping-header th,
  .cartx-summary .cartx-line--shipping td {
    width: 100%;
  }

  .cartx-summary .cartx-coupon-row {
    display: block;
    margin: 8px 0 10px;
    padding: 10px 12px;
    border: 2px solid #7bcf9f;
    border-radius: 12px;
    background: #f7fff9;
  }

  .cartx-summary .cartx-coupon-row th,
  .cartx-summary .cartx-coupon-row td {
    background: transparent;
    border: 0 !important;
    padding: 0;
    border-radius: 0;
  }

  .cartx-summary .cartx-coupon-row th {
    box-shadow: none;
  }

  .cartx-summary .cartx-coupon-label-cell {
    gap: 2px;
  }

  .cartx-summary .cartx-coupon-code {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.01em;
  }

  .cartx-summary .cartx-coupon-value {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 18px;
  }

  .cartx-summary .cartx-coupon-value .woocommerce-remove-coupon {
    margin-left: 0;
    white-space: nowrap;
  }

  .cartx-summary .order-total td {
    white-space: nowrap;
  }

  .cartx-summary .order-total .includes_tax {
    display: block;
    margin-top: 2px;
  }

  .cartx-summary .cartx-shipping-list {
    gap: 8px;
  }

  .cartx-summary .cartx-shipping-item {
    padding: 8px 0;
  }

  .cartx-summary .cartx-shipping-label {
    gap: 8px !important;
  }

  .cartx-summary .cartx-ship-main {
    font-size: 13px;
    line-height: 1.22;
  }

  .cartx-summary .wc-proceed-to-checkout {
    margin-top: 14px;
  }
}

/* Specificity bump to override theme !important rules */
.cartx .button,
.cartx button.button,
.cartx .coupon .button,
.cartx .checkout-button,
.cartx .wc-proceed-to-checkout a.button,
.cartx .cartx-btn {
  background-color: var(--cartx-accent) !important;
  border-color: var(--cartx-accent) !important;
  color: var(--cartx-accent-contrast) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Override theme-wide button typography */
.cartx button,
.cartx input[type='submit'],
.cartx input[type='button'] {
  font-family: -apple-system, 'Segoe UI', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.025em !important;
  text-transform: uppercase !important;
}

/* Remove padding from native inputs/buttons inside cartx 
.cartx input[type='submit'],
.cartx input[type='reset'],
.cartx input[type='button'],
.cartx button[type='submit'] {
  padding: 0 !important;
}
*/

.cartx input[type='text'],
.cartx input[type='email'],
.cartx input[type='tel'],
.cartx select,
.cartx textarea {
  border: 1px solid var(--cartx-border) !important;
  border-radius: var(--cartx-radius-sm) !important;
  background: #fff !important;
  color: var(--cartx-text) !important;
  box-shadow: none !important;
}

/* Exclude the quantity input inside cartx-qty from border/border-radius reset */
div.cartx-qty > div > input {
  border: none !important;
  border-radius: 0 !important;
}

/* Remove padding from native inputs/buttons inside cartx */
.cartx button[name='remove_item'] {
  padding: 0 !important;
}

.cartx .quantity .qty {
  border: 0 !important;
  box-shadow: none !important;
}

.cartx .cart_totals table th,
.cartx .cart_totals table td {
  border: 0 !important;
}

.cartx .cart_totals .order-total th,
.cartx .cart_totals .order-total td {
  font-weight: 700 !important;
}

/* Optional: hide external "empty cart" button from other plugins */
.cartx button[name='wcb2b_cart_empty'] {
  display: none !important;
}

.cartx-qty > div > input {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* Reset legacy WC classes on checkout CTA */
.cartx .checkout-button.button.alt.wc-forward {
  all: unset;
  display: block;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  background: var(--cartx-accent);
  color: var(--cartx-accent-contrast);
  padding: 13px 14px;
  border-radius: 10px;
  font-family: -apple-system, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  border: 0;
}

.cartx .checkout-button.button.alt.wc-forward:hover {
  filter: brightness(0.95);
}

/* Custom checkout button style */
.cartx .cartx-checkout-button,
.cartx .checkout-button.cartx-checkout-button {
  display: inline-block !important;
  width: 100% !important;
  text-align: center !important;
  background: #1ab212 !important;
  border: 1px solid #1ab212 !important;
  color: #fff !important;
  padding: 13px 14px !important;
  border-radius: 10px !important;
  font-family: -apple-system, 'Segoe UI', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

.cartx .cartx-checkout-button:hover,
.cartx .checkout-button.cartx-checkout-button:hover {
  filter: brightness(0.95) !important;
}

/* Final safeguard: enforce checkout CTA style inside cart totals regardless of theme classes */
.cartx .wc-proceed-to-checkout a.checkout-button,
.cartx .cartx-summary .wc-proceed-to-checkout a.checkout-button {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  text-align: center;
  background: #1ab212 !important;
  border: 1px solid #1ab212 !important;
  color: #fff !important;
  padding: 13px 14px;
  border-radius: 10px;
  font-family: -apple-system, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none !important;
  text-decoration: none !important;
  line-height: 1.2;
}

.cartx .wc-proceed-to-checkout a.checkout-button:hover,
.cartx .cartx-summary .wc-proceed-to-checkout a.checkout-button:hover {
  filter: brightness(0.95);
}

/* Reset base table styles */
.cartx .shop_table,
.cartx .shop_table_responsive {
  border: none;
  background: transparent;
  box-shadow: none;
}

/* Shipping table styling */
.cartx .shipping table,
.cartx .shipping .shop_table,
.cartx .woocommerce-shipping-totals {
  width: 100%;
  border: none;
  background: transparent;
  box-shadow: none;
}

.cartx .shipping th,
.cartx .shipping td {
  padding: 0;
  border: none;
}

.cartx .woocommerce-shipping-methods {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cartx .woocommerce-shipping-methods li {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.cartx .custom_shipping_section {
  padding: 0;
  border: none;
  background: transparent;
}

.cartx .cartx-shipping-list {
  margin-top: 0;
}

.cartx .cartx-shipping-item {
  border: 1px solid var(--cartx-border);
  box-shadow: none;
  border-radius: var(--cartx-radius-sm);
  padding: 10px 12px;
  background: #fff;
  align-items: flex-start;
}

.cartx .cartx-shipping-item label {
  color: var(--cartx-text);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.cartx .cartx-shipping-item small,
.cartx .cartx-shipping-destination {
  color: var(--cartx-muted);
}

.cartx .cartx-shipping-item input[type='radio'] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cartx-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cartx .cartx-shipping-item input[type='radio']::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cartx-accent);
  transform: scale(0);
  transition: transform 0.2s ease;
}

.cartx .cartx-shipping-item input[type='radio']:checked {
  border-color: var(--cartx-accent);
  box-shadow: 0 0 0 4px rgba(58, 110, 165, 0.12);
}

.cartx .cartx-shipping-item input[type='radio']:checked::before {
  transform: scale(1);
}

.cartx .cartx-shipping-item label {
  position: relative;
  padding: 8px 10px;
}

.cartx .cartx-shipping-item label::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: transparent;
  transition: all 0.25s ease;
  z-index: -1;
}

.cartx .cartx-shipping-item:hover label::before {
  background: rgba(58, 110, 165, 0.05);
}

.cartx .cartx-shipping-item input[type='radio']:checked + label::before {
  border-color: rgba(58, 110, 165, 0.6);
  background: rgba(58, 110, 165, 0.08);
}

.cartx .cartx-shipping-item input[type='radio']:checked + label {
  font-weight: 700;
}

.cartx .cartx-shipping-item input[type='radio']:checked + label {
  color: var(--cartx-text);
  font-weight: 700;
}

.cartx .cartx-shipping-item input[type='radio']:checked + label::after {
  content: '';
}

.cartx .cartx-shipping-item input[type='radio']:checked {
  accent-color: var(--cartx-accent);
}

.cartx .cartx-shipping-item:hover {
  border-color: var(--cartx-accent);
}

/* Shipping UI compact */
.cartx .cartx-shipping-label {
  position: static !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 2px 0 !important;
  margin: 0 !important;
  width: 100%;
}

.cartx .cartx-shipping-label::before,
.cartx .cartx-shipping-label::after {
  content: none !important;
  display: none !important;
}

.cartx .cartx-ship-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: #4a5d75;
  border: 1px solid #d9e1ea;
}

.cartx .cartx-ship-icon svg {
  width: 16px;
  height: 16px;
}

.cartx .cartx-shipping-item--courier .cartx-ship-icon {
  background: #e8f2ff;
  border-color: #c7dcfd;
  color: #2e6ab3;
}

.cartx .cartx-shipping-item--locker .cartx-ship-icon {
  background: #fff8e8;
  border-color: #fde2ac;
  color: #b97809;
}

.cartx .cartx-shipping-item--pickup .cartx-ship-icon {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #16803d;
}

.cartx .cartx-ship-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  line-height: 1.25;
}

.cartx .cartx-ship-main .woocommerce-Price-amount,
.cartx .cartx-ship-main .amount {
  font-weight: 700;
}

.cartx .cartx-shipping-extra {
  display: none !important;
  margin: 6px 0 0 30px;
}

.cartx .cartx-shipping-extra:empty {
  display: none !important;
}

.cartx .custom_shipping_section .easypack_italy_geowidget {
  display: none !important;
}

.cartx .cartx-shipping-extra .easypack-shipping-method-logo,
.cartx .cartx-shipping-extra .easypack-custom-shipping-method-logo,
.cartx .cartx-shipping-extra #defined_inpost_italy_courier_description {
  display: none !important;
}

.cartx .cartx-shipping-extra .easypack_italy_geowidget {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 4px 0 0 !important;
  min-height: 34px;
  max-width: none !important;
  padding: 8px 10px !important;
  border-radius: 8px;
  border: 1px solid #e4b300 !important;
  background: #fcc905 !important;
  color: #1f252d !important;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.15;
  box-shadow: none !important;
}

.cartx .cartx-shipping-extra #easypack_selected_point_data {
  margin: 8px 0 0 !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  border: 1px solid #bbf7d0 !important;
  background: #f0fdf4 !important;
  font-size: 12px;
}

.cartx .cartx-shipping-extra #selected-parcel-machine-id {
  font-weight: 700;
}
