.woocommerce-form__label {
  display: flex !important;
  align-items: center !important;
}

.col2-set,
.cs-thankyou .cs-thankyou__grid {
  width: 100% !important;
  display: flex !important;
  gap: 4rem;
}

.col-1,
.cs-thankyou__left {
  width: 100% !important;
}

.col-2,
.cs-thankyou__right {
  width: 30%;
  min-width: 450px;
}

@media (max-width: 768px) {
  .col-1,
  .cs-thankyou__left {
    width: 100% !important;
  }

  .col-2,
  .cs-thankyou__right {
    width: 100% !important;
    min-width: auto;
  }

  .col2-set,
  .cs-thankyou .cs-thankyou__grid {
    flex-direction: column;
  }
}

#order_review {
  width: 100% !important;
}

#order_review_heading {
  width: 100% !important;
}

.woocommerce-billing-fields__field-wrapper {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  padding-bottom: 16px;
}

.wp-block-woocommerce-cart-order-summary-coupon-form-block {
  margin-bottom: 0 !important;
  padding-top: 24px !important;
  border-top: solid 1px var(--black--03) !important;
}

/* Domyślnie: wszystkie pola po 50% */
.woocommerce-billing-fields__field-wrapper > p.form-row {
  flex: 0 0 calc(50% - 8px);
  max-width: calc(50% - 8px);
  margin: 0 !important;
}

#billing_email_field {
  order: -100;
  flex: 0 0 100%;
  width: 100% !important;
  max-width: 100% !important;
}

#billing_phone_field {
  flex: 0 0 100%;
  width: 100% !important;
  max-width: 100% !important;
}

#b2bking_js_based_invalid_field {
  display: none !important;
}

#shipping-above-payment th {
  display: none;
}
#shipping-above-payment td {
  padding-left: 0;
}

.woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-billing-fields__field-wrapper .form-row-last {
  float: none !important;
}

.woocommerce-shipping-methods li,
.woocommerce-checkout-payment li {
  padding: 16px 8px !important;
  background: transparent !important;
  border-radius: var(--b--xsm);
  border: solid 1px var(--black--03);
  display: flex;
  align-items: center;
  margin-bottom: 8px !important;
  gap: 6px;
}

.woocommerce-shipping-methods label,
.woocommerce-checkout-payment label,
#privacy_consent_field label,
#cs_deferred_consent_field label {
  font-size: var(--font-size-13) !important;
  line-height: var(--line-height-13) !important;
  font-weight: var(--font-weight-300) !important;
}

.cs-newaddr__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.woocommerce-shipping-methods li:has(input:checked),
.woocommerce-checkout-payment li:has(input:checked) {
  border-color: var(--main--stroke--light);
  background: var(--main--bg--light) !important;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  margin: 0 !important;
}

.woocommerce-shipping-totals {
  display: grid !important;
}

.woocommerce-shipping-methods {
  width: 100% !important;
}

.woocommerce-shipping-methods label {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.payment_box {
  display: none !important;
}

#payment .payment_methods > .woocommerce-PaymentMethod > label,
#payment .payment_methods > .wc_payment_method > label {
  padding: 0 !important;
}

.shipping-heading,
.moved-payment__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-700);
  line-height: var(--line-height-h4);
  color: var(--main--03);
  padding: 24px 0 !important;
  margin: 0 !important;
}

#order_review_heading,
.cs-thankyou .cs-thankyou__summary-title,
.woocommerce-billing-fields h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-700);
  line-height: var(--line-height-h3);
  color: var(--main--03);
  padding-bottom: 32px;
}

/* .shop_table th,
td {
  padding: 0 !important;
  font-size: var(--font-size-13);
  line-height: var(--line-height-13);
  font-weight: var(--font-weight-300);
  background: transparent !important;
} */
.product-details,
.woocommerce-checkout .shop_table th,
.woocommerce-checkout .shop_table td {
  padding: 0 !important;
  font-size: var(--font-size-13);
  line-height: var(--line-height-13);
  font-weight: var(--font-weight-300);
  background: transparent !important;
}

.product-thumbnail img,
.cs-flycart__thumb img {
  min-width: 80px !important;
  height: 80px !important;
  border-radius: var(--b--sm);
  object-fit: cover;
  border: solid 1px var(--black--03);
  object-fit: contain;
  padding: 8px;
  max-width: 80px;
}

.cs-flycart__name {
  font-size: var(--font-size-13);
  line-height: var(--line-height-13);
  font-weight: var(--font-weight-300);
  color: var(--black);
  margin: 4px 0;
}

.product-categories,
.cs-flycart__cats,
.current,
.regular,
.cs-flycart__qty,
.cs-flycart__price {
  font-size: var(--font-size-13);
  line-height: var(--line-height-13);
  font-weight: var(--font-weight-300);
  color: var(--black--05);
  margin-right: 4px;
  text-decoration: none !important;
}

.regular .woocommerce-Price-amount {
  color: var(--black--05) !important;
}

.woocommerce-Price-amount,
.cs-flycart__price {
  color: var(--black);
}

.cart_item {
  display: flex;
  gap: 16px;
  border-bottom: solid 1px var(--black--03);
  width: 100%;
  padding-bottom: 16px;
}

.product-qty-prices {
  margin-top: 4px;
}

.shop_table,
.shop_table tbody {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 !important;
}

.shop_table tfoot tr {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin: 8px 0;
}

.shop_table tfoot {
  margin-bottom: 32px;
}

#place-order-right {
  display: inline-block;
}

#place_order {
  margin-top: 16px;
}

.cs-cart-heart,
.cs-cart-heart:hover {
  background: transparent !important;
  padding: 8px 16px !important;
}

button.cs-cart-heart.is-active {
  background: transparent !important;
}

.wc-block-cart-item__quantity {
  display: flex !important;
  flex-direction: row-reverse !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

#account_password-description {
  font-size: var(--font-size-10);
  line-height: var(--line-height-10);
}

#account_password_field {
  margin: 16px 0 !important;
  padding: 24px 12px !important;
  border-radius: var(--b--xsm) !important;

  flex: 0 0 100%;
  width: 100% !important;
  max-width: 100% !important;

  font-size: var(--font-size-13);
  line-height: var(--line-height-13);
  font-weight: var(--font-weight-300);
  background: var(--bg--fafafa);
}

#account_password_field:before {
  content: "Dodaj hasło aby uzyskać dostęp do swojego zamówienia i zaoszczędzić czas podczas kolejnych zakupów.";
  font-size: var(--font-size-13);
  line-height: var(--line-height-13);
  display: block;
  margin-bottom: 4px;
}

#cs_is_company_field,
.cs_vat_id_field,
#cs_invoice_different_field {
  max-width: 100% !important;
  flex: auto;
  width: 100%;
}
#cs_is_company_field label,
#cs_invoice_different_field label {
  font-size: var(--font-size-13) !important;
  line-height: var(--line-height-13) !important;
  font-weight: var(--font-weight-300) !important;
  display: flex !important;
  gap: 6px;
  align-items: center;
}

#cs_is_company_field {
  margin-top: 16px !important;
}

.show-password-input:after {
  content: url("/wp-content/uploads/eye-closed.svg") !important;
}

div#password_strength {
  display: none !important;
}

.show-password-input,
.display-password:after {
  content: url("/wp-content/uploads/eye-open.svg") !important;
}

.show-password-input {
  position: absolute;
  right: 12px !important;
  top: 26px !important;
  transform: translateY(-50%) !important;
  border: 0 !important;
  line-height: 0 !important;
  cursor: pointer !important;
  padding: 0 !important;
  background: transparent !important;
}

.cs-billing-summary {
  background: var(--bg--fafafa);
  border-radius: var(--b--xsm);
  padding: 20px 16px;
}

.cs-billing-summary__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cs-billing-summary__body,
.cs-address-card__body {
  padding: 24px 0;
  border-top: solid 1px var(--black--03);
  border-bottom: solid 1px var(--black--03);
  margin: 16px 0;
  font-family: var(--font-family-body-basic);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-300);
  color: var(--black);
}

.cs-billing-summary__header,
.cs-address-card__header {
  font-size: var(--font-size-14);
  line-height: var(--line-height-14);
  font-weight: var(--font-weight-500);
  color: var(--black);
}

.cs-billing-summary__change,
.cs-billing-summary__edit {
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-300);
  font-family: var(--font-family-body-basic);
  color: var(--black);
  background: transparent !important;
  padding: 0;
  display: flex;
  gap: 6px;
}

.cs-billing-summary__edit {
  text-decoration: underline;
}

.cs-billing-summary__change:hover,
.cs-billing-summary__edit:hover {
  opacity: 75%;
  transition: 0.3s;
}

.cs-address-card {
  background: var(--bg--fafafa);
  border-radius: var(--b--xsm);
  padding: 20px 16px;
}

.cs-address-card button {
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-300);
  font-family: var(--font-family-body-basic);
}

.cs-modal__list,
.cs-modal__view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px !important;
}

.modal__radio_check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0 0 !important;
  font-size: var(--font-size-13) !important;
  line-height: var(--line-height-13) !important;
  font-weight: var(--font-weight-300) !important;
}

.cs-modal__dialog {
  border-radius: var(--b--md);
  position: relative;
  max-width: 760px;
  width: min(92vw, 760px);
  margin: 7vh auto;
  background: var(--white);
  padding: 48px 24px;
}

.modal__save_address {
  margin-top: 16px;
}

/* ===== Thank you (order received) layout ===== */
.cs-thankyou .cs-thankyou__left {
  background: var(--main--bg--light);
  border: 1px solid var(--main--stroke--light);
  border-radius: var(--b--md);
  padding: 32px;
  gap: 24px;
  display: flex;
  flex-direction: column;
  font-size: var(--font-size-13);
  line-height: var(--line-height-13);
  color: var(--black);
  font-weight: var(--font-weight-300);
}

/* message */
.cs-thankyou .woocommerce-thankyou-order-received {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  font-weight: 700;
  color: var(--main--03);
}

/* meta */
.cs-thankyou__meta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--main--stroke--light);
  display: grid;
  gap: 18px;
}

.cs-thankyou__meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 680px) {
  .cs-thankyou__meta-row {
    grid-template-columns: 1fr;
  }
}

.cs-thankyou__meta-label {
  display: block;
  font-size: var(--font-size-13);
  line-height: var(--line-height-13);
  color: var(--black--06);
  margin-bottom: 6px;
}

.cs-thankyou__meta-value {
  font-size: var(--font-size-16);
  line-height: var(--line-height-16);
  color: var(--black);
}

/* Thankyou: prawa kolumna – na razie chowamy adresy i część nagłówków */
.cs-thankyou .cs-thankyou__right .woocommerce-customer-details,
.cs-thankyou .cs-thankyou__right .woocommerce-column--billing-address,
.cs-thankyou .cs-thankyou__right .woocommerce-column--shipping-address {
  display: none !important;
}

.cs-thankyou .cs-thankyou__right h2.woocommerce-order-details__title {
  margin: 0 0 12px 0;
  font-family: var(--font-family-heading);
  font-size: var(--font-size-h-18);
  line-height: var(--line-height-h-18);
  font-weight: 700;
}

.cs-thankyou__headline {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-500);
  line-height: var(--line-height-h2);
  color: var(--main--03);
}
.cs-thankyou__triple {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 768px) {
  .cs-thankyou__triple {
    flex-direction: column;
  }
}
.cs-thankyou__label {
  font-weight: var(--font-weight-500);
  padding-bottom: 4px !important;
}

.cs-thankyou__lead {
  border-bottom: solid 1px var(--main--01);
  padding-bottom: 24px !important;
}
.cs-thankyou .cs-thankyou__left {
  height: fit-content;
}

/* .woocommerce-NoticeGroup-checkout ul.woocommerce-error {
  display: none;
} */

/* 2) Zostawiamy tylko pierwszy li jako “nagłówek”, jeśli Woo go wygeneruje (czasem nie) */
.woocommerce-NoticeGroup-checkout ul.woocommerce-error li:first-child {
  display: block;
}

.cs-deferred-payment-note {
  font-family: var(--font-family-body-basic);
  font-size: var(--font-size-10);
  line-height: var(--line-height-10);
  font-weight: var(--font-weight-300);
}

.payment_box.payment_method_b2bking-invoice-gateway {
  display: none !important;
}

.cs-deferred-payment-note[hidden],
.cs-deferred-consent-row[hidden] {
  display: none !important;
}

.cs-deferred-payment-note {
  margin-top: 16px;
}

.cs-deferred-consent-row {
  margin-bottom: 16px;
}

.payment_method_b2bking-invoice-gateway label::after {
  content: "1";
  font-size: 10px;
  position: relative;
  top: -0.3em;
  margin-left: 2px;
}
