/* Checkout UI belongs to Core, so each active ChiPak theme gets the same controls. */
:is(.wp-block-woocommerce-checkout,.wp-block-woocommerce-cart) {
  --cp-checkout-ink: var(--brand,#102235);
  --cp-checkout-line: #dbe3eb;
  font-family: var(--font-body,Tahoma,Arial,sans-serif);
  color: var(--ink,#182433);
  line-height: 1.8;
  direction: rtl;
  letter-spacing: normal;
  word-spacing: normal;
}
:is(.wp-block-woocommerce-checkout,.wp-block-woocommerce-cart) :is(button,input,select,textarea,label) {
  font-family: inherit;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
}
:is(.wp-block-woocommerce-checkout,.wp-block-woocommerce-cart) .wc-block-components-radio-control__label::after {
  font-family: var(--font-body,Tahoma,Arial,sans-serif);
  letter-spacing: normal;
  word-spacing: normal;
  font-feature-settings: normal;
}
.wp-block-woocommerce-checkout :is(.wc-block-components-address-card,.wc-block-components-radio-control,.wc-block-components-radio-control-accordion-option,.wc-block-checkout__sidebar,.wc-block-components-text-input input,.wc-block-components-combobox-control input) {
  border-radius: 16px;
}
.wp-block-woocommerce-checkout .wc-block-components-address-card {padding:16px;border-color:var(--cp-checkout-line)}
.wp-block-woocommerce-checkout .wc-block-components-address-card__edit {white-space:nowrap;flex:0 0 auto;min-width:62px;word-break:normal;overflow-wrap:normal}
.wp-block-woocommerce-checkout .wc-block-components-radio-control {overflow:hidden;border-color:var(--cp-checkout-line)}
.wp-block-woocommerce-checkout .wc-block-components-radio-control__option {border-radius:14px;min-height:58px}
.wp-block-woocommerce-checkout .wc-block-components-radio-control__option-checked {background:#f1f6fb;box-shadow:inset 0 0 0 2px #315b7d}
.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-content {border-radius:0 0 16px 16px}
.wp-block-woocommerce-checkout .chipak-manual-bank-panel {padding:14px;margin-top:12px;border-radius:16px;background:#f6f8fa;border-color:var(--cp-checkout-line)}
.wp-block-woocommerce-checkout .chipak-manual-bank-row {border-radius:12px;padding:12px;min-height:0;grid-template-columns:minmax(0,1fr) auto}
.wp-block-woocommerce-checkout .chipak-manual-bank-label {grid-column:1 / -1}
.wp-block-woocommerce-checkout .chipak-manual-bank-row code {font-size:15px;letter-spacing:normal;overflow-wrap:anywhere}
.wp-block-woocommerce-checkout .chipak-manual-copy {min-height:44px;min-width:52px;padding:8px 12px;border-radius:10px;background:var(--cp-checkout-ink);color:#fff}
.wp-block-woocommerce-checkout .chipak-manual-bank-label {font-size:12px}
.wp-block-woocommerce-checkout .chipak-manual-tracking-field input {border-radius:12px;min-height:46px}
/* The bank plugin prints the full cart amount; the linked control prints actual payable. */
.wp-block-woocommerce-checkout:has(.chipak-checkout-payment) .chipak-manual-amount-row {display:none}
.chipak-checkout-payment,.wp-block-woocommerce-checkout .chipak-official-invoice {box-sizing:border-box;background:#fff;border:1px solid #dbe3eb;border-radius:18px;padding:18px;margin-block:16px;color:#182433}
.chipak-checkout-payment h3 {font-size:16px;margin:0 0 12px;font-weight:700}
.chipak-checkout-payment__choices {border:0;padding:0;margin:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;min-width:0}
.chipak-checkout-payment__choice {display:grid;grid-template-columns:22px 1fr;gap:6px 8px;padding:13px;border:1px solid #dbe3eb;border-radius:13px;cursor:pointer;font-size:14px}
.chipak-checkout-payment__choice:has(input:checked) {border-color:#315b7d;box-shadow:inset 0 0 0 1px #315b7d;background:#f1f6fb}
.chipak-checkout-payment__choice input {margin:4px 0 0;accent-color:#315b7d;width:18px;height:18px}
.chipak-checkout-payment__choice strong {grid-column:2;font-size:14px;white-space:nowrap}
.chipak-checkout-payment__amounts {border-top:1px solid #e5ebf0;margin-top:14px;padding-top:12px}
.chipak-checkout-payment__amounts p {display:flex;justify-content:space-between;gap:12px;margin:4px 0;font-size:14px}
.chipak-checkout-payment__amounts p:first-child strong {color:#173f60}
.chipak-checkout-payment__help {font-size:12px;color:#536371;margin:8px 0 0}
.chipak-checkout-payment__status:empty,.wp-block-woocommerce-checkout .chipak-official-invoice__status:empty {display:none}
.chipak-checkout-payment__status {font-size:12px;color:#845209;margin:6px 0 0}
.wp-block-woocommerce-checkout .chipak-official-invoice__toggle {align-items:center;font-size:14px}
.wp-block-woocommerce-checkout .chipak-official-invoice__help {font-size:12px}
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {border-radius:14px;min-height:52px;background:var(--cp-checkout-ink);color:#fff}
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button :is(span,svg) {color:inherit}
.wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__content {border-radius:18px;background:#f8fafc;border:1px solid var(--cp-checkout-line);padding:16px}
:is(.wp-block-woocommerce-checkout,.wp-block-woocommerce-cart) .woocommerce-Price-amount {display:inline-flex;align-items:baseline;gap:.25em;white-space:nowrap}
@media(max-width:900px) {
  .chipak-checkout-payment,.wp-block-woocommerce-checkout .chipak-official-invoice {padding:14px}
  .chipak-checkout-payment__choices {grid-template-columns:1fr}
  .chipak-checkout-payment__choice {grid-template-columns:22px 1fr auto;align-items:center;padding:12px}
  .chipak-checkout-payment__choice strong {grid-column:3;font-size:13px}
  .wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__content {padding:12px}
  .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description {overflow-wrap:break-word;font-size:12px}
}

/* ChiPak checkout refresh 2026-10-03. Scoped above theme overrides. */
body.woocommerce-checkout #main {background:#f0f5fa;}
body.woocommerce-checkout #main > .site-shell {max-width:1200px;padding:32px 24px 48px;}
body.woocommerce-checkout #main article > h1 {font-family:"Vazir FD",Tahoma,Arial,sans-serif;font-size:28px;font-weight:800;color:#102b46;margin:0 0 24px;letter-spacing:normal;}
body.woocommerce-checkout .wp-block-woocommerce-checkout {
  --cp-checkout-font:"Vazir FD",Tahoma,Arial,sans-serif;
  --cp-checkout-ink:#123b5b;--cp-checkout-line:#cddbe7;
  font-family:var(--cp-checkout-font)!important;font-size:16px;line-height:1.85;color:#172e43;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout :is(h2,h3,h4,p,span,strong,small,label,button,input,select,textarea,legend,address,dl,dt,dd) {
  font-family:var(--cp-checkout-font)!important;letter-spacing:normal!important;word-spacing:normal;text-transform:none;font-feature-settings:normal;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout :is(.wc-block-components-radio-control__label,.wc-block-components-radio-control__secondary-label,.wc-block-components-radio-control__description,.wc-block-components-totals-item__value)::after {
  font-family:var(--cp-checkout-font)!important;letter-spacing:normal!important;word-spacing:normal;font-feature-settings:normal;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout {align-items:flex-start;gap:28px;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__main {padding:0;flex:1 1 0%;min-width:0;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar {width:34%;margin:0;padding:0;min-width:0;border:0;border-radius:22px;background:#fff;box-shadow:0 8px 28px #102b460a;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step {
  padding:22px;margin:0 0 18px;border:1px solid #dce6ee;border-radius:22px;background:#fff;box-shadow:0 4px 18px #102b4605;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading {margin:0 0 16px;padding:0;}
body.woocommerce-checkout .wp-block-woocommerce-checkout :is(.wc-block-components-checkout-step__title,.wc-block-components-title) {font-size:19px;font-weight:800;color:#102b46;line-height:1.65;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__container {padding:0;}
body.woocommerce-checkout .wp-block-woocommerce-checkout :is(.wc-block-components-text-input input,.wc-block-components-combobox-control input,.wc-block-components-textarea) {border:1px solid #b8cad9;border-radius:13px!important;background:#fff;font-size:16px;min-height:54px;box-shadow:none;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-card {border:1px solid #d3e0eb;border-radius:16px!important;background:#f7fafc;padding:18px;color:#2b4256;font-size:15px;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-card__edit {color:#174e77;font-size:14px;font-weight:700;min-height:44px;white-space:nowrap;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkbox__label {font-size:14px;line-height:1.8;color:#324b61;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control {border:0!important;border-radius:0!important;overflow:visible;box-shadow:none!important;}
body.woocommerce-checkout .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__option {
  border:1px solid #cad9e6!important;border-radius:15px!important;background:#fff;min-height:64px;margin:0;padding-block:16px;padding-inline:48px 14px;box-shadow:none;transition:background .15s,border-color .15s;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__option::after {border:0!important;box-shadow:none!important;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__option:has(input:checked) {border:2px solid #28648d!important;background:#eaf3fa;box-shadow:none;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__input {inset-inline-start:16px;inset-inline-end:auto;width:20px;height:20px;margin:0;accent-color:#195b86;}
body.woocommerce-checkout .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control__label::after {font-size:16px;line-height:1.8;font-weight:700;color:#172e43;}
body.woocommerce-checkout .wp-block-woocommerce-checkout #shipping-option :is(.wc-block-components-radio-control__secondary-label,.wc-block-components-radio-control__description)::after {font-size:12px;color:#536c7d;font-weight:500;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__label-group {align-items:center;}
body.woocommerce-checkout .wp-block-woocommerce-checkout #payment-method .wc-block-components-radio-control__label {font-size:16px;font-weight:700;line-height:1.8;}
body.woocommerce-checkout .wp-block-woocommerce-checkout #payment-method .wc-block-components-radio-control-accordion-option {border:0!important;border-radius:16px!important;box-shadow:none!important;margin:0 0 12px;overflow:hidden;}
body.woocommerce-checkout .wp-block-woocommerce-checkout #payment-method .wc-block-components-radio-control-accordion-option--checked-option-highlighted {border:0!important;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-content {border:0!important;background:#f6f9fc;border-radius:0 0 16px 16px;padding:14px 16px;font-size:14px;line-height:1.9;color:#36516a;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-official-invoice {background:#f7fafc;border:1px solid #d5e1eb;border-radius:16px;padding:16px;margin:0 0 18px;box-shadow:none;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-official-invoice h3 {font-size:16px;color:#18354d;letter-spacing:normal;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment {border:2px solid #aac6dc;border-radius:20px;background:#f2f7fc;padding:22px;margin:22px 0 0;box-shadow:0 6px 20px #163b5b08;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment h3 {font-size:21px;font-weight:800;line-height:1.7;color:#123b5b;margin:0 0 16px;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__choices {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__choice {display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px 10px;align-items:center;padding:18px 14px;min-height:106px;border:1px solid #b9cfdf;border-radius:16px;background:#fff;color:#1b3c56;font-size:16px;line-height:1.65;box-shadow:none;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__choice input {width:20px;height:20px;margin:0;accent-color:#123b5b;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__choice strong {grid-column:2;font-size:17px;white-space:normal;overflow-wrap:normal;line-height:1.8;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__choice:has(input:checked) {background:#123b5b;border-color:#123b5b;color:#fff;box-shadow:0 5px 12px #123b5b1a;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__choice:has(input:checked) :is(span,strong) {color:#fff!important;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__choice:has(input:checked) input {accent-color:#fff;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__choice:focus-within {outline:3px solid #ba8f36;outline-offset:3px;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__choices:disabled {opacity:.65;cursor:wait;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__amounts {margin:18px 0 0;padding:14px 0 0;border-top:1px solid #cbdce9;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__amounts p {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;font-size:14px;color:#446078;margin:8px 0;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__amounts p:first-child {color:#102f49;font-size:16px;font-weight:700;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__amounts p:first-child strong {color:#123b5b;font-size:23px;font-weight:800;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__help {font-size:13px;color:#435f75;line-height:1.85;margin:12px 0 0;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {width:100%;min-height:60px;border:0;border-radius:17px!important;background:#123b5b!important;color:#fff!important;font-size:18px;font-weight:800;box-shadow:0 6px 16px #123b5b24;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button span {color:#fff!important;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__content {background:#fff;border:1px solid #d5e2ed;border-radius:22px;padding:20px;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description {font-size:14px;line-height:1.85;min-width:0;overflow-wrap:break-word;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__individual-prices {font-size:15px;font-weight:700;}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item {padding:18px 0 0;color:#102f49;font-size:18px;}
@media (max-width:1024px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout {display:flex;flex-direction:column;gap:20px;}
  body.woocommerce-checkout .wp-block-woocommerce-checkout :is(.wc-block-checkout__main,.wc-block-checkout__sidebar) {width:100%;flex:auto;margin:0;position:static;}
}
@media (max-width:600px) {
  body.woocommerce-checkout #main > .site-shell {padding:22px 12px 36px;}
  body.woocommerce-checkout #main article > h1 {font-size:24px;margin-bottom:20px;}
  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step {padding:16px;border-radius:18px;}
  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__title {font-size:18px;}
  body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment {padding:16px;margin-top:18px;border-radius:18px;}
  body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment h3 {font-size:20px;}
  body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__choices {grid-template-columns:1fr;gap:10px;}
  body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__choice {min-height:88px;padding:14px 16px;grid-template-columns:22px minmax(0,1fr);gap:4px 10px;}
  body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__choice strong {grid-column:2;font-size:17px;}
  body.woocommerce-checkout .wp-block-woocommerce-checkout .chipak-checkout-payment__amounts p:first-child strong {font-size:21px;}
  body.woocommerce-checkout .wp-block-woocommerce-checkout #shipping-option .wc-block-components-radio-control {grid-template-columns:1fr;gap:9px;}
}
/* End ChiPak checkout refresh. */

/* WooCommerce repeats the mobile summary above the form and before Place Order.
 * Keep the complete review beside the submit action. Match Woo's container
 * breakpoint and retain the sidebar if that second summary is unavailable. */
@container (max-width:699px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout:has(.checkout-order-summary-block-fill-wrapper) > .wc-block-checkout__sidebar {display:none;}
}
