/*
 * WooCommerce block checkout / cart / account in the site's style (loaded only there – includes/credits.php).
 * Two white cards (form + order summary), 12px inputs, one flat blue button – the same scale as the job card v2.
 */
.wc-block-checkout, .wc-block-cart { --aj-shop-line: #e6e6ec; --aj-shop-muted: #8a8a96; --aj-shop-blue: #2a6bff; font-family: var(--aj-font-body, Inter, system-ui, sans-serif); color: #0b0b12; }
.bde-section:has(.wc-block-checkout, .wc-block-cart) > .section-container { padding-top: 40px; padding-bottom: 72px; }

/* Cards */
.wc-block-checkout .wc-block-checkout__main,
.wc-block-checkout .wc-block-checkout__sidebar .wc-block-components-totals-wrapper:first-child,
.wc-block-checkout .wc-block-checkout__sidebar { box-sizing: border-box; }
.wc-block-checkout .wc-block-checkout__main { background: #fff; border: 1px solid #ececf1; border-radius: 22px; padding: 28px 28px 24px; }
.wc-block-checkout .wc-block-checkout__sidebar { background: #fff; border: 1px solid #ececf1; border-radius: 22px; padding: 8px 4px; align-self: flex-start; }
.wc-block-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary,
.wc-block-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block { border: 0 !important; border-radius: 0 !important; }
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block { border: 0; }

/* Headings */
.wc-block-checkout .wc-block-components-title,
.wc-block-checkout .wc-block-components-checkout-step__title,
.wc-block-checkout .wc-block-components-checkout-order-summary__title-text { font-family: var(--aj-font-head, inherit); font-size: 19px !important; font-weight: 500 !important; letter-spacing: -0.01em; color: #0b0b12; }
.wc-block-checkout .wc-block-components-checkout-step { margin-bottom: 28px; }
.wc-block-checkout .wc-block-components-checkout-step__description { color: var(--aj-shop-muted); font-size: 14px; }
.wc-block-checkout .wc-block-components-checkout-step__heading-content a { color: var(--aj-shop-blue); font-size: 14px; font-weight: 500; text-decoration: none; }

/* Inputs */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-checkout .wc-block-components-combobox .wc-block-components-combobox-control input { border: 1px solid #e2e2e7 !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; transition: border-color .15s ease, box-shadow .15s ease; }
.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus { border-color: var(--aj-shop-blue) !important; box-shadow: 0 0 0 3px rgba(42, 107, 255, .15) !important; outline: none; }
.wc-block-checkout .wc-blocks-components-select .wc-blocks-components-select__container { border-radius: 12px; background: #fff; }
.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-blocks-components-select__label { color: var(--aj-shop-muted) !important; }
.wc-block-checkout .wc-block-components-text-input.has-error input { border-color: #e11d48 !important; }
.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { border-radius: 6px; border-color: #d4d4dc; }
.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--aj-shop-blue); border-color: var(--aj-shop-blue); }
.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff; }

/* Payment methods (Stripe) */
.wc-block-checkout .wc-block-components-radio-control-accordion-option,
.wc-block-checkout .wc-block-components-radio-control__option { border-radius: 12px; }
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option { border: 1px solid #e2e2e7; box-shadow: none !important; }
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option--checked-option-highlighted { border-color: var(--aj-shop-blue); box-shadow: 0 0 0 3px rgba(42, 107, 255, .12) !important; }

/* Notices */
.wc-block-checkout .wc-block-components-notice-banner { border-radius: 12px; font-size: 14px; }

/* Terms + button */
.wc-block-checkout .wc-block-checkout__terms { border-top: 1px dashed #e6e6ec; padding-top: 18px; margin-top: 8px; font-size: 13px; color: var(--aj-shop-muted); }
.wc-block-checkout .wc-block-checkout__terms a { color: #0b0b12; }
.wc-block-checkout .wc-block-checkout__actions_row { gap: 12px; }
/* "Apmokėti": the site's signature AI button (black, rainbow edge, sparkle – same as "Analizuoti CV") */
.wc-block-checkout .wc-block-components-checkout-place-order-button,
.wc-block-cart .wc-block-cart__submit-button { --aj-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M11.017%202.814a1%201%200%200%201%201.966%200l1.051%205.558a2%202%200%200%200%201.594%201.594l5.558%201.051a1%201%200%200%201%200%201.966l-5.558%201.051a2%202%200%200%200-1.594%201.594l-1.051%205.558a1%201%200%200%201-1.966%200l-1.051-5.558a2%202%200%200%200-1.594-1.594l-5.558-1.051a1%201%200%200%201%200-1.966l5.558-1.051a2%202%200%200%200%201.594-1.594z%22%2F%3E%3Cpath%20d%3D%22M20%202v4%22%2F%3E%3Cpath%20d%3D%22M22%204h-4%22%2F%3E%3Ccircle%20cx%3D%224%22%20cy%3D%2220%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E"); width: 100%; min-height: 52px; border: 1.5px solid transparent !important; border-radius: 14px !important; color: #fff !important; font-size: 16px !important; font-weight: 500 !important; box-shadow: none !important;
  background: linear-gradient(#0b0b12, #0b0b12) padding-box, linear-gradient(110deg, #f43f5e, #f59e0b 20%, #22c55e 40%, #06b6d4 60%, #6366f1 80%, #d946ef) border-box !important; transition: background .15s ease; }
.wc-block-checkout .wc-block-components-checkout-place-order-button:hover,
.wc-block-cart .wc-block-cart__submit-button:hover { background: linear-gradient(#1c1c26, #1c1c26) padding-box, linear-gradient(110deg, #f43f5e, #f59e0b 20%, #22c55e 40%, #06b6d4 60%, #6366f1 80%, #d946ef) border-box !important; }
.wc-block-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button__text,
.wc-block-cart .wc-block-cart__submit-button .wc-block-components-button__text { display: inline-flex; align-items: center; gap: 8px; }
.wc-block-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button__text::before,
.wc-block-cart .wc-block-cart__submit-button .wc-block-components-button__text::before { content: ""; width: 17px; height: 17px; flex: none; background-color: currentColor; -webkit-mask: var(--aj-ico) center / contain no-repeat; mask: var(--aj-ico) center / contain no-repeat; }
.wc-block-checkout .wc-block-components-checkout-place-order-button:disabled { opacity: .55; }
.wc-block-checkout .wc-block-components-checkout-return-to-cart-button { display: none; }

/* Order summary: no product photo (digital plans), quiet description, big total */
.wc-block-components-order-summary-item__image { display: none !important; }
.wc-block-components-order-summary-item { padding-left: 0 !important; }
.wc-block-components-order-summary-item__description { padding-left: 0 !important; }
.wc-block-components-order-summary-item__description .wc-block-components-product-name { font-weight: 600; font-size: 15px; color: #0b0b12; }
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata { color: var(--aj-shop-muted); font-size: 13px; line-height: 1.45; }
.wc-block-components-order-summary-item__individual-prices { display: none; }
.wc-block-checkout .wc-block-components-totals-item__value,
.wc-block-checkout .wc-block-components-order-summary-item__total-price { font-family: var(--aj-font-num, 'Mona Sans', inherit); font-variant-numeric: tabular-nums; }
.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-family: var(--aj-font-head, inherit); font-weight: 500; }
.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.wc-block-checkout .wc-block-components-totals-wrapper { border-color: #f0f0f3 !important; }
.wc-block-components-totals-coupon a, .wc-block-components-panel__button { color: var(--aj-shop-blue) !important; font-size: 14px; }

/* Wide screens: a gap between the two cards, and the terms + "Apmokėti" moved under the order summary inside the
   right card (shop.js measures the summary and positions them – the block checkout keeps them in the form) */
.wc-block-checkout.is-large .wc-block-checkout__main { width: calc(65% - 24px) !important; margin-right: 24px; padding-right: 28px !important; }
.wc-block-checkout.is-large .wc-block-checkout__sidebar { width: 35% !important; padding-left: 4px !important; padding-right: 4px !important; }
.wp-block-woocommerce-checkout.aj-co-split .wc-block-components-sidebar-layout { position: relative; }
.wp-block-woocommerce-checkout.aj-co-split .wc-block-checkout__sidebar { position: relative !important; top: auto !important; }
.wp-block-woocommerce-checkout.aj-co-split .wc-block-checkout__terms,
.wp-block-woocommerce-checkout.aj-co-split .wc-block-checkout__actions { position: absolute; z-index: 2; box-sizing: border-box; margin: 0 !important; }
.wp-block-woocommerce-checkout.aj-co-split .wc-block-checkout__terms { border-top: 1px dashed #e6e6ec; padding-top: 14px; }
.wp-block-woocommerce-checkout.aj-co-split .wc-block-checkout__actions { padding: 0 !important; }
.wp-block-woocommerce-checkout.aj-co-split .wc-block-checkout__actions_row { display: block; }

@media (max-width: 767px) {
  .bde-section:has(.wc-block-checkout, .wc-block-cart) > .section-container { padding-top: 20px; padding-bottom: 48px; }
  .wc-block-checkout .wc-block-checkout__main { padding: 20px 16px 18px; border-radius: 18px; }
  .wc-block-checkout .wc-block-checkout__sidebar { border-radius: 18px; margin-bottom: 16px; }
}
