/* Checkout WooCommerce Blocks */

body.woocommerce-checkout #content,
body.page-id-512 #content {
  width: min(1280px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: 38px 0 72px;
}

body.woocommerce-checkout #content .page-header,
body.page-id-512 #content .page-header {
  margin: 0 0 12px;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.woocommerce-checkout #content .entry-title,
body.page-id-512 #content .entry-title {
  margin: 0;
  padding-right: 0 !important;
  padding-left: 0 !important;
  color: var(--sb-color-text, #101010);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.page-id-512 .wp-block-woocommerce-checkout {
  margin: 0;
  padding-top: 0 !important;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.page-id-512 .wc-block-components-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 30px;
  align-items: start;
  margin: 0 !important;
}

body.woocommerce-checkout .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-sidebar,
body.page-id-512 .wc-block-components-main,
body.page-id-512 .wc-block-components-sidebar {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* Lewa kolumna */

body.woocommerce-checkout .wc-block-checkout__form,
body.page-id-512 .wc-block-checkout__form {
  display: grid;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout .wc-block-checkout__form > .wc-block-checkout__contact-fields,
body.page-id-512 .wc-block-checkout__form > .wc-block-checkout__contact-fields {
  margin-top: 0 !important;
}

body.woocommerce-checkout .wc-block-components-checkout-step,
body.woocommerce-checkout .wc-block-checkout__order-notes,
body.woocommerce-checkout .wc-block-checkout__terms,
body.page-id-512 .wc-block-components-checkout-step,
body.page-id-512 .wc-block-checkout__order-notes,
body.page-id-512 .wc-block-checkout__terms {
  margin: 0 !important;
  padding: 20px 22px;
  border: 1px solid var(--sb-color-border, #e5e5e5);
  border-radius: 14px;
  background: #fff;
}

body.woocommerce-checkout .wc-block-components-checkout-step__heading-container,
body.page-id-512 .wc-block-components-checkout-step__heading-container {
  margin: 0 0 14px;
  padding: 0;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.page-id-512 .wc-block-components-title,
body.page-id-512 .wc-block-components-checkout-step__title {
  margin: 0;
  color: var(--sb-color-text, #101010);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

body.woocommerce-checkout .wc-block-components-checkout-step__content,
body.page-id-512 .wc-block-components-checkout-step__content {
  padding: 0;
}

/* Pola formularza */

body.woocommerce-checkout .wc-block-components-address-form,
body.page-id-512 .wc-block-components-address-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

body.woocommerce-checkout .wc-block-components-address-form > *,
body.page-id-512 .wc-block-components-address-form > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.woocommerce-checkout .wc-block-components-address-form__first_name,
body.woocommerce-checkout .wc-block-components-address-form__last_name,
body.woocommerce-checkout .wc-block-components-address-form__postcode,
body.woocommerce-checkout .wc-block-components-address-form__city,
body.page-id-512 .wc-block-components-address-form__first_name,
body.page-id-512 .wc-block-components-address-form__last_name,
body.page-id-512 .wc-block-components-address-form__postcode,
body.page-id-512 .wc-block-components-address-form__city {
  width: auto;
}

body.woocommerce-checkout .wc-block-components-address-form__first_name,
body.page-id-512 .wc-block-components-address-form__first_name {
  grid-column: 1;
}

body.woocommerce-checkout .wc-block-components-address-form__last_name,
body.page-id-512 .wc-block-components-address-form__last_name {
  grid-column: 2;
}

body.woocommerce-checkout .wc-block-components-address-form__postcode,
body.page-id-512 .wc-block-components-address-form__postcode {
  grid-column: 1;
}

body.woocommerce-checkout .wc-block-components-address-form__city,
body.page-id-512 .wc-block-components-address-form__city {
  grid-column: 2;
}

body.woocommerce-checkout .wc-block-components-address-form__country,
body.woocommerce-checkout .wc-block-components-address-form__address_1,
body.woocommerce-checkout .wc-block-components-address-form__phone,
body.woocommerce-checkout .wc-block-components-address-form__email,
body.page-id-512 .wc-block-components-address-form__country,
body.page-id-512 .wc-block-components-address-form__address_1,
body.page-id-512 .wc-block-components-address-form__phone,
body.page-id-512 .wc-block-components-address-form__email {
  grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout textarea,
body.page-id-512 .wc-block-components-text-input input,
body.page-id-512 .wc-blocks-components-select__select,
body.page-id-512 textarea {
  min-height: 48px;
  border: 1px solid #dfe2e6 !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--sb-color-text, #101010) !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-blocks-components-select__label,
body.page-id-512 .wc-block-components-text-input label,
body.page-id-512 .wc-blocks-components-select__label {
  color: var(--sb-color-muted, #686868);
  font-size: 12px;
  font-weight: 400;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus-visible,
body.woocommerce-checkout .wc-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus-visible,
body.woocommerce-checkout textarea:focus,
body.woocommerce-checkout textarea:focus-visible,
body.page-id-512 .wc-block-components-text-input input:focus,
body.page-id-512 .wc-block-components-text-input input:focus-visible,
body.page-id-512 .wc-blocks-components-select__select:focus,
body.page-id-512 .wc-blocks-components-select__select:focus-visible,
body.page-id-512 textarea:focus,
body.page-id-512 textarea:focus-visible {
  border-color: #007c30 !important;
  outline: 0 !important;
  box-shadow: 0 0 0 1px #007c30 !important;
}

body.woocommerce-checkout .wc-block-components-address-form__address_2-toggle,
body.page-id-512 .wc-block-components-address-form__address_2-toggle {
  grid-column: 1 / -1;
  color: #007c30;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

/* Metody dostawy i płatności */

body.woocommerce-checkout .wc-block-checkout__shipping-method-container,
body.page-id-512 .wc-block-checkout__shipping-method-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.woocommerce-checkout .wc-block-checkout__shipping-method-container::before,
body.woocommerce-checkout .wc-block-checkout__shipping-method-container::after,
body.page-id-512 .wc-block-checkout__shipping-method-container::before,
body.page-id-512 .wc-block-checkout__shipping-method-container::after {
  display: none;
}

body.woocommerce-checkout .wc-block-checkout__shipping-method-option,
body.page-id-512 .wc-block-checkout__shipping-method-option {
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid #dfe2e6;
  border-radius: 12px;
  background: #fff;
  color: var(--sb-color-text, #101010);
  box-shadow: none;
}

body.woocommerce-checkout .wc-block-checkout__shipping-method-option--selected,
body.page-id-512 .wc-block-checkout__shipping-method-option--selected {
  border-color: #007c30;
  background: #f5fbf7;
  box-shadow: inset 0 0 0 1px #007c30;
}

body.woocommerce-checkout .wc-block-checkout__shipping-method-option-icon,
body.page-id-512 .wc-block-checkout__shipping-method-option-icon {
  fill: #007c30;
}

body.woocommerce-checkout .wc-block-checkout__shipping-method-option-title,
body.page-id-512 .wc-block-checkout__shipping-method-option-title {
  font-size: 15px;
  font-weight: 500;
}

body.woocommerce-checkout .wc-block-components-radio-control,
body.page-id-512 .wc-block-components-radio-control {
  border: 0;
}

body.woocommerce-checkout .wc-block-components-radio-control__option,
body.page-id-512 .wc-block-components-radio-control__option {
  margin: 0;
  padding: 14px 16px 14px 48px;
  border: 1px solid #dfe2e6;
  border-radius: 12px;
  background: #fff;
}

body.woocommerce-checkout .wc-block-components-radio-control__option-checked,
body.page-id-512 .wc-block-components-radio-control__option-checked {
  border-color: #007c30;
  background: #f5fbf7;
  box-shadow: inset 0 0 0 1px #007c30;
}

body.woocommerce-checkout
  .wc-block-components-radio-control--highlight-checked
  .wc-block-components-radio-control__option--checked-option-highlighted,
body.page-id-512
  .wc-block-components-radio-control--highlight-checked
  .wc-block-components-radio-control__option--checked-option-highlighted {
  border-color: #007c30;
  border-radius: 12px;
  background: #f5fbf7;
  box-shadow: inset 0 0 0 1px #007c30;
}

body.woocommerce-checkout .wc-block-components-radio-control__option::after,
body.page-id-512 .wc-block-components-radio-control__option::after {
  display: none;
}

body.woocommerce-checkout .wc-block-components-radio-control__input:checked,
body.page-id-512 .wc-block-components-radio-control__input:checked {
  border-color: #007c30;
}

body.woocommerce-checkout .wc-block-components-radio-control__input:checked::before,
body.page-id-512 .wc-block-components-radio-control__input:checked::before {
  background: #007c30;
}

body.woocommerce-checkout .wc-block-components-radio-control__label,
body.page-id-512 .wc-block-components-radio-control__label {
  color: var(--sb-color-text, #101010);
  font-size: 15px;
  font-weight: 500;
}

body.woocommerce-checkout .wc-block-components-radio-control__secondary-label,
body.page-id-512 .wc-block-components-radio-control__secondary-label {
  color: var(--sb-color-text, #101010);
  font-size: 14px;
  font-weight: 600;
}

/* Opcje dostawy InPost */

body.woocommerce-checkout #shipping-option,
body.page-id-512 #shipping-option {
  padding: 20px 22px;
}

body.woocommerce-checkout #shipping-option .wc-block-components-checkout-step__heading-container,
body.page-id-512 #shipping-option .wc-block-components-checkout-step__heading-container {
  margin: 0 0 12px;
  padding: 0;
}

body.woocommerce-checkout #shipping-option .wc-block-components-radio-control,
body.page-id-512 #shipping-option .wc-block-components-radio-control {
  display: grid;
  gap: 10px;
  border: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-checkout #shipping-option .wc-block-components-shipping-rates-control,
body.woocommerce-checkout #shipping-option .wc-block-components-shipping-rates-control__package,
body.page-id-512 #shipping-option .wc-block-components-shipping-rates-control,
body.page-id-512 #shipping-option .wc-block-components-shipping-rates-control__package {
  margin: 0;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent;
  box-shadow: none !important;
}

body.woocommerce-checkout #shipping-option .wc-block-components-shipping-rates-control::before,
body.woocommerce-checkout #shipping-option .wc-block-components-shipping-rates-control::after,
body.woocommerce-checkout #shipping-option .wc-block-components-shipping-rates-control__package::before,
body.woocommerce-checkout #shipping-option .wc-block-components-shipping-rates-control__package::after,
body.page-id-512 #shipping-option .wc-block-components-shipping-rates-control::before,
body.page-id-512 #shipping-option .wc-block-components-shipping-rates-control::after,
body.page-id-512 #shipping-option .wc-block-components-shipping-rates-control__package::before,
body.page-id-512 #shipping-option .wc-block-components-shipping-rates-control__package::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
}

body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__option,
body.page-id-512 #shipping-option .wc-block-components-radio-control__option {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 8px 14px 8px 42px;
  border: 1px solid #dfe2e6 !important;
  border-radius: 10px;
  box-shadow: none !important;
}

body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__option:has(input:checked),
body.page-id-512 #shipping-option .wc-block-components-radio-control__option:has(input:checked) {
  border-color: #007c30 !important;
  background: #f5fbf7;
}

body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__option:has(input:focus-visible),
body.page-id-512 #shipping-option .wc-block-components-radio-control__option:has(input:focus-visible) {
  outline: 2px solid #007c30;
  outline-offset: 2px;
}

body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__input,
body.page-id-512 #shipping-option .wc-block-components-radio-control__input {
  left: 12px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  border: 1px solid #8a8f95;
  box-shadow: none !important;
}

body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__option-layout,
body.page-id-512 #shipping-option .wc-block-components-radio-control__option-layout {
  width: 100%;
  min-width: 0;
}

body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__label-group,
body.page-id-512 #shipping-option .wc-block-components-radio-control__label-group {
  display: flex !important;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__label,
body.page-id-512 #shipping-option .wc-block-components-radio-control__label {
  display: flex;
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}

body.woocommerce-checkout #shipping-option .inpost_pl-block-shipping-method-meta-wrap,
body.page-id-512 #shipping-option .inpost_pl-block-shipping-method-meta-wrap,
body.woocommerce-checkout #shipping-option .inpost_pl_block_shipping_meta,
body.page-id-512 #shipping-option .inpost_pl_block_shipping_meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
}

body.woocommerce-checkout #shipping-option img.inpost_icon,
body.page-id-512 #shipping-option img.inpost_icon {
  display: block !important;
  width: auto !important;
  height: 32px !important;
  margin: 0 !important;
}

body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__secondary-label,
body.page-id-512 #shipping-option .wc-block-components-radio-control__secondary-label {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 12px;
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

body.woocommerce-checkout #shipping-option .easypack_show_geowidget,
body.page-id-512 #shipping-option .easypack_show_geowidget {
  display: inline-flex !important;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin: 12px 0 0 !important;
  padding: 0 18px !important;
  border: 1px solid #007c30 !important;
  border-radius: 9px;
  background: #007c30 !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
}

body.woocommerce-checkout #shipping-option .easypack_show_geowidget:hover,
body.page-id-512 #shipping-option .easypack_show_geowidget:hover {
  border-color: #066326 !important;
  background: #066326 !important;
}

body.woocommerce-checkout #shipping-option .easypack_show_geowidget:focus-visible,
body.page-id-512 #shipping-option .easypack_show_geowidget:focus-visible {
  outline: 2px solid #007c30;
  outline-offset: 3px;
}

/* Modal mapy InPost. Plugin domyślnie ustawia wysokość viewportu pomniejszoną tylko o 80 px. */

.jBox-wrapper.jBox-Modal:has(inpost-geowidget) {
  top: max(24px, calc((100dvh - 680px) / 2)) !important;
  width: min(800px, calc(100vw - 48px)) !important;
  height: min(680px, calc(100dvh - 48px)) !important;
  max-height: calc(100dvh - 48px) !important;
}

.jBox-wrapper.jBox-Modal:has(inpost-geowidget) .jBox-container {
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.jBox-wrapper.jBox-Modal:has(inpost-geowidget) .jBox-title {
  min-height: 44px;
  padding: 12px 48px 12px 16px;
  border-bottom: 1px solid var(--sb-color-border, #e5e5e5);
  background: #fff;
  color: var(--sb-color-text, #101010);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.jBox-wrapper.jBox-Modal:has(inpost-geowidget) .jBox-content {
  height: calc(100% - 44px) !important;
  padding: 12px !important;
  overflow: hidden;
}

.jBox-wrapper.jBox-Modal:has(inpost-geowidget) inpost-geowidget {
  display: block;
  width: 100%;
  height: 100%;
}

/* Metody płatności */

body.woocommerce-checkout #payment-method .wc-block-components-checkout-step__heading-container,
body.page-id-512 #payment-method .wc-block-components-checkout-step__heading-container,
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-checkout-step__heading-container,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-checkout-step__heading-container {
  margin: 0 0 12px;
  padding: 0;
}

body.woocommerce-checkout #payment-method .wc-block-components-checkout-step__content,
body.page-id-512 #payment-method .wc-block-components-checkout-step__content,
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-checkout-step__content,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-checkout-step__content {
  margin: 0;
  padding: 0;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control {
  display: grid;
  gap: 10px;
  overflow: visible;
  border: 0 !important;
  outline: 0 !important;
  background: transparent;
  box-shadow: none !important;
}

/* WooCommerce rysuje wspólną ramkę grupy na pseudoelementcie ::after. */
body.woocommerce-checkout #shipping-option .wc-block-components-radio-control--highlight-checked::after,
body.page-id-512 #shipping-option .wc-block-components-radio-control--highlight-checked::after,
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control--highlight-checked::after,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control--highlight-checked::after {
  content: none !important;
  display: none !important;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion {
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion::before,
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion::after,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion::before,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
  position: relative;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid #dfe2e6 !important;
  border-radius: 10px;
  outline: 0 !important;
  background: #fff;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:has(.wc-block-components-radio-control__input:checked),
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:has(.wc-block-components-radio-control__input:checked) {
  border-color: #007c30 !important;
  background: #f5fbf7;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:has(.wc-block-components-radio-control__input:focus-visible),
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:has(.wc-block-components-radio-control__input:focus-visible) {
  outline: 2px solid #007c30 !important;
  outline-offset: 2px !important;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option::before,
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option::after,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option::before,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__option,
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option-checked,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__option-checked,
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option--checked-option-highlighted,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__option--checked-option-highlighted {
  display: flex !important;
  min-height: 52px;
  align-items: center !important;
  margin: 0 !important;
  padding: 8px 14px 8px 42px;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option::before,
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option::after,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__option::before,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__option::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__input,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__input {
  left: 12px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  border: 1px solid #8a8f95;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option-layout,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__option-layout {
  display: flex !important;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  align-items: center !important;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__label-group,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__label-group {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  align-items: center !important;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__label-group,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__label-group {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__label,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__label {
  display: flex;
  min-width: 0;
  min-height: 32px;
  flex: 1 1 auto;
  align-items: center;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__secondary-label,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__secondary-label,
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-payment-method-icons,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-payment-method-icons {
  display: inline-flex;
  min-width: 64px;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__secondary-label img,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__secondary-label img,
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-payment-method-icons img,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-payment-method-icons img {
  display: block;
  width: auto;
  max-width: 88px;
  height: auto;
  max-height: 32px;
  margin: 0;
  object-fit: contain;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content {
  margin: 0 !important;
  padding: 0 14px 10px 42px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--sb-color-text, #101010);
  font-size: 14px;
  line-height: 1.4;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content::before,
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content::after,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content::before,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content > :first-child,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content > :first-child {
  margin-top: 0;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content > :last-child,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content > :last-child {
  margin-bottom: 0;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content > p,
body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content > p {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

body.woocommerce-checkout #radio-control-wc-payment-method-options-spgw_blik__content,
body.page-id-512 #radio-control-wc-payment-method-options-spgw_blik__content {
  display: none !important;
}

/* Checkboxy i komunikaty */

body.woocommerce-checkout .wc-block-components-checkbox label,
body.page-id-512 .wc-block-components-checkbox label {
  align-items: center;
  gap: 10px;
  color: var(--sb-color-text, #101010);
  font-size: 14px;
  line-height: 1.45;
}

body.woocommerce-checkout .wc-block-components-checkbox__input,
body.page-id-512 .wc-block-components-checkbox__input {
  border-color: #dfe2e6 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-checkbox__input:checked,
body.page-id-512 .wc-block-components-checkbox__input:checked {
  border-color: #007c30 !important;
  background: #007c30 !important;
}

body.woocommerce-checkout .wc-block-components-checkbox__input:checked + .wc-block-components-checkbox__mark,
body.page-id-512 .wc-block-components-checkbox__input:checked + .wc-block-components-checkbox__mark,
body.woocommerce-checkout .wc-block-components-checkbox__input:checked + svg,
body.page-id-512 .wc-block-components-checkbox__input:checked + svg {
  color: #fff !important;
  fill: #fff !important;
  stroke: #fff !important;
}

body.woocommerce-checkout .wc-block-components-checkbox__input:checked + .wc-block-components-checkbox__mark path,
body.page-id-512 .wc-block-components-checkbox__input:checked + .wc-block-components-checkbox__mark path,
body.woocommerce-checkout .wc-block-components-checkbox__input:checked + svg path,
body.page-id-512 .wc-block-components-checkbox__input:checked + svg path {
  fill: #fff !important;
  stroke: #fff !important;
}

/* Obowiązkowa zgoda na warunki zamówienia. */
body.woocommerce-checkout .wc-block-components-checkout-step:has([data-sb-terms-acceptance]),
body.page-id-512 .wc-block-components-checkout-step:has([data-sb-terms-acceptance]) {
  order: 20;
  border-color: var(--sb-color-border, #e5e5e5);
}

body.woocommerce-checkout
  .wc-block-components-checkout-step:has([data-sb-terms-acceptance])
  .wc-block-components-checkout-step__heading-container,
body.page-id-512
  .wc-block-components-checkout-step:has([data-sb-terms-acceptance])
  .wc-block-components-checkout-step__heading-container,
body.woocommerce-checkout
  .wc-block-components-checkout-step:has([data-sb-terms-acceptance])
  .wc-block-components-checkout-step__heading,
body.page-id-512
  .wc-block-components-checkout-step:has([data-sb-terms-acceptance])
  .wc-block-components-checkout-step__heading {
  display: none !important;
}

body.woocommerce-checkout .wc-block-checkout__form:has([data-sb-terms-acceptance]) > .wc-block-checkout__order-notes,
body.page-id-512 .wc-block-checkout__form:has([data-sb-terms-acceptance]) > .wc-block-checkout__order-notes {
  order: 10;
}

body.woocommerce-checkout .wc-block-checkout__form:has([data-sb-terms-acceptance]) > .wc-block-checkout__terms,
body.page-id-512 .wc-block-checkout__form:has([data-sb-terms-acceptance]) > .wc-block-checkout__terms {
  display: none !important;
}

body.woocommerce-checkout
  .wc-block-checkout__form:has([data-sb-terms-acceptance])
  > .checkout-order-summary-block-fill-wrapper,
body.page-id-512
  .wc-block-checkout__form:has([data-sb-terms-acceptance])
  > .checkout-order-summary-block-fill-wrapper {
  order: 30;
}

body.woocommerce-checkout
  .wc-block-checkout__form:has([data-sb-terms-acceptance])
  > .wp-block-woocommerce-checkout-actions-block,
body.page-id-512
  .wc-block-checkout__form:has([data-sb-terms-acceptance])
  > .wp-block-woocommerce-checkout-actions-block,
body.woocommerce-checkout .wc-block-checkout__form:has([data-sb-terms-acceptance]) > .wc-block-checkout__actions,
body.page-id-512 .wc-block-checkout__form:has([data-sb-terms-acceptance]) > .wc-block-checkout__actions {
  order: 40;
}

body.woocommerce-checkout [data-sb-terms-acceptance],
body.page-id-512 [data-sb-terms-acceptance] {
  flex: 0 0 auto;
}

body.woocommerce-checkout .sb-terms-acceptance__link,
body.page-id-512 .sb-terms-acceptance__link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

body.woocommerce-checkout .sb-terms-acceptance__link:hover,
body.page-id-512 .sb-terms-acceptance__link:hover {
  color: var(--sb-color-primary, #ce1720);
}

body.woocommerce-checkout .sb-terms-acceptance__link:focus-visible,
body.page-id-512 .sb-terms-acceptance__link:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--sb-color-primary, #ce1720);
  outline-offset: 2px;
}

body.woocommerce-checkout [data-sb-terms-acceptance][aria-invalid="true"],
body.page-id-512 [data-sb-terms-acceptance][aria-invalid="true"] {
  border-color: var(--sb-color-primary, #ce1720) !important;
  box-shadow: 0 0 0 1px var(--sb-color-primary, #ce1720) !important;
}

body.woocommerce-checkout
  .wc-block-components-checkout-step:has([data-sb-terms-acceptance][aria-invalid="true"]),
body.page-id-512
  .wc-block-components-checkout-step:has([data-sb-terms-acceptance][aria-invalid="true"]) {
  border-color: #f2c7c9;
  background: #fffafa;
}

body.woocommerce-checkout
  .wc-block-components-checkout-step:has([data-sb-terms-acceptance])
  .wc-block-components-validation-error,
body.page-id-512
  .wc-block-components-checkout-step:has([data-sb-terms-acceptance])
  .wc-block-components-validation-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #f2c7c9;
  border-radius: 9px;
  background: #fff3f3;
  color: #b4232a;
  font-size: 13px;
  line-height: 1.4;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
body.page-id-512 .wc-block-components-notice-banner {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.45;
}

body.woocommerce-checkout .wc-block-components-notice-banner.is-error,
body.page-id-512 .wc-block-components-notice-banner.is-error {
  border-color: #f2c7c9;
  background: #fff7f7;
  color: #101010;
}

body.woocommerce-checkout .wc-block-checkout__terms,
body.page-id-512 .wc-block-checkout__terms {
  color: var(--sb-color-muted, #686868);
  font-size: 13px;
  line-height: 1.5;
}

/* Prawa kolumna */

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.page-id-512 .wc-block-checkout__sidebar {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--sb-color-border, #e5e5e5);
  border-radius: 14px;
  background: #fff;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
body.page-id-512 .wp-block-woocommerce-checkout-order-summary-block {
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__content,
body.page-id-512 .wc-block-components-checkout-order-summary__content {
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title,
body.page-id-512 .wc-block-components-checkout-order-summary__title {
  display: flex;
  min-height: 0;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px !important;
  padding: 0 0 18px !important;
  border-bottom: 1px solid var(--sb-color-border, #e5e5e5);
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text,
body.page-id-512 .wc-block-components-checkout-order-summary__title-text {
  margin: 0 !important;
  color: var(--sb-color-text, #101010);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-price,
body.page-id-512 .wc-block-components-checkout-order-summary__title-price {
  margin-left: auto;
  color: var(--sb-color-text, #101010);
  font-size: 16px;
  font-weight: 600;
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-icon,
body.page-id-512 .wc-block-components-checkout-order-summary__title-icon {
  display: none;
}

body.woocommerce-checkout .wc-block-components-totals-wrapper,
body.page-id-512 .wc-block-components-totals-wrapper {
  margin: 0;
  padding: 0;
  border: 0;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary,
body.page-id-512 .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary {
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout .wc-block-components-order-summary__content,
body.page-id-512 .wc-block-components-order-summary__content {
  display: grid;
  gap: 12px;
  margin: 0 !important;
  padding: 0 0 18px !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item,
body.page-id-512 .wc-block-components-order-summary-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image,
body.page-id-512 .wc-block-components-order-summary-item__image {
  position: relative;
  width: 58px;
  height: 58px;
  padding: 5px;
  border: 1px solid #eceef0;
  border-radius: 10px;
  background: #fff;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image img,
body.page-id-512 .wc-block-components-order-summary-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__quantity,
body.page-id-512 .wc-block-components-order-summary-item__quantity {
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #007c30;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description,
body.page-id-512 .wc-block-components-order-summary-item__description {
  min-width: 0;
  padding: 0;
}

body.woocommerce-checkout .wc-block-components-order-summary-item .wc-block-components-product-name,
body.page-id-512 .wc-block-components-order-summary-item .wc-block-components-product-name {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--sb-color-text, #101010);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__individual-prices,
body.page-id-512 .wc-block-components-order-summary-item__individual-prices {
  color: var(--sb-color-muted, #686868);
  font-size: 12px;
  font-weight: 400;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__total-price,
body.page-id-512 .wc-block-components-order-summary-item__total-price {
  color: var(--sb-color-text, #101010);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

body.woocommerce-checkout .wc-block-components-product-metadata,
body.page-id-512 .wc-block-components-product-metadata {
  display: none;
}

/* Kupon */

body.woocommerce-checkout .wc-block-components-totals-coupon,
body.page-id-512 .wc-block-components-totals-coupon {
  margin: 0 0 12px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--sb-color-border, #e5e5e5);
}

body.woocommerce-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button,
body.page-id-512 .wc-block-components-totals-coupon .wc-block-components-panel__button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  color: var(--sb-color-text, #101010);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  box-shadow: none;
  box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button[aria-expanded="true"],
body.page-id-512 .wc-block-components-totals-coupon .wc-block-components-panel__button[aria-expanded="true"] {
  border-bottom-color: transparent;
  border-radius: 9px 9px 0 0;
}

body.woocommerce-checkout .wc-block-components-totals-coupon .wc-block-components-panel__content,
body.page-id-512 .wc-block-components-totals-coupon .wc-block-components-panel__content {
  margin: 0;
  padding: 12px !important;
  border: 1px solid #e5e7eb;
  border-top: 0;
  border-radius: 0 0 9px 9px;
  background: #fff;
  box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-totals-coupon__form,
body.page-id-512 .wc-block-components-totals-coupon__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
  align-items: stretch;
  margin: 0;
}

body.woocommerce-checkout .wc-block-components-totals-coupon__input,
body.page-id-512 .wc-block-components-totals-coupon__input {
  position: relative;
  margin: 0;
}

body.woocommerce-checkout .wc-block-components-totals-coupon__input input,
body.page-id-512 .wc-block-components-totals-coupon__input input {
  width: 100%;
  height: 44px;
  min-height: 44px !important;
  margin: 0;
  padding: 0 12px !important;
  border: 1px solid #dfe2e6 !important;
  border-radius: 8px !important;
  background: #fff;
  box-shadow: none !important;
  color: var(--sb-color-text, #101010);
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.2;
  outline: 0 !important;
}

body.woocommerce-checkout .wc-block-components-totals-coupon__input.is-active input,
body.page-id-512 .wc-block-components-totals-coupon__input.is-active input {
  padding: 14px 12px 3px !important;
  border-color: #007c30 !important;
}

body.woocommerce-checkout .wc-block-components-totals-coupon__input input:focus,
body.woocommerce-checkout .wc-block-components-totals-coupon__input input:focus-visible,
body.page-id-512 .wc-block-components-totals-coupon__input input:focus,
body.page-id-512 .wc-block-components-totals-coupon__input input:focus-visible {
  border-color: #007c30 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-totals-coupon__input label,
body.page-id-512 .wc-block-components-totals-coupon__input label {
  top: 50% !important;
  left: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--sb-color-muted, #686868) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
  transform-origin: left top !important;
  pointer-events: none;
}

body.woocommerce-checkout .wc-block-components-totals-coupon__input.is-active label,
body.page-id-512 .wc-block-components-totals-coupon__input.is-active label {
  top: 7px !important;
  font-size: 10px !important;
  transform: none !important;
}

body.woocommerce-checkout .wc-block-components-totals-coupon__button,
body.page-id-512 .wc-block-components-totals-coupon__button {
  display: inline-flex;
  width: 104px;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #007c30;
  border-radius: 8px;
  background: #007c30;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
}

body.woocommerce-checkout .wc-block-components-totals-coupon__button:hover:not(:disabled),
body.page-id-512 .wc-block-components-totals-coupon__button:hover:not(:disabled) {
  border-color: #066326;
  background: #066326;
  color: #fff;
}

body.woocommerce-checkout .wc-block-components-totals-coupon__button:disabled,
body.page-id-512 .wc-block-components-totals-coupon__button:disabled {
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed !important;
  opacity: 1;
}

body.woocommerce-checkout .wc-block-components-panel__button-icon,
body.page-id-512 .wc-block-components-panel__button-icon {
  order: 2;
  width: 18px;
  height: 18px;
  margin-left: auto;
  margin-right: 6px;
  fill: currentColor;
}

/* Sumy i CTA */

body.woocommerce-checkout .wc-block-components-totals-item,
body.page-id-512 .wc-block-components-totals-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: start;
  padding: 9px 0;
  color: var(--sb-color-text, #101010);
  font-size: 14px;
  line-height: 1.35;
}

body.woocommerce-checkout .wc-block-components-totals-item__label,
body.page-id-512 .wc-block-components-totals-item__label {
  font-weight: 400;
}

body.woocommerce-checkout .wc-block-components-totals-item__value,
body.page-id-512 .wc-block-components-totals-item__value {
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

body.woocommerce-checkout .wc-block-components-totals-item__description,
body.page-id-512 .wc-block-components-totals-item__description {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--sb-color-muted, #686868);
  font-size: 12px;
}

body.woocommerce-checkout .wc-block-components-totals-footer-item,
body.page-id-512 .wc-block-components-totals-footer-item {
  align-items: center;
  margin-top: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--sb-color-border, #e5e5e5);
}

body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.page-id-512 .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 18px;
  font-weight: 600;
}

body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.page-id-512 .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.woocommerce-checkout .wc-block-checkout__actions,
body.page-id-512 .wc-block-checkout__actions {
  margin: 0;
  padding: 0;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.page-id-512 .wc-block-components-checkout-place-order-button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #007c30 !important;
  border-radius: 9px !important;
  background: #007c30 !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  box-shadow: none !important;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.page-id-512 .wc-block-components-checkout-place-order-button:hover {
  border-color: #066326 !important;
  background: #066326 !important;
  color: #fff !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible,
body.page-id-512 .wc-block-components-checkout-place-order-button:focus-visible {
  outline: 2px solid #101010 !important;
  outline-offset: 2px;
}

/* Mobile */

@media (max-width: 900px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout,
  body.page-id-512 .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr;
  }

  body.woocommerce-checkout .wc-block-checkout__sidebar,
  body.page-id-512 .wc-block-checkout__sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 767px) {
  body.woocommerce-checkout .wc-block-checkout__sidebar,
  body.page-id-512 .wc-block-checkout__sidebar {
    display: none !important;
  }

  /* Mobilne podsumowanie ma własną strukturę niezależną od panelu desktopowego. */
  body.woocommerce-checkout .checkout-order-summary-block-fill-wrapper,
  body.page-id-512 .checkout-order-summary-block-fill-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent;
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill-wrapper
    > .wc-block-components-checkout-step__heading,
  body.page-id-512
    .checkout-order-summary-block-fill-wrapper
    > .wc-block-components-checkout-step__heading {
    margin: 0 0 14px !important;
    padding: 0 !important;
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill-wrapper
    > .wc-block-components-checkout-step__heading
    .wc-block-components-checkout-step__title,
  body.page-id-512
    .checkout-order-summary-block-fill-wrapper
    > .wc-block-components-checkout-step__heading
    .wc-block-components-checkout-step__title {
    margin: 20px 0 0 !important;
    padding: 0 !important;
    font-size: 20px;
    line-height: 1.25;
  }

  body.woocommerce-checkout .checkout-order-summary-block-fill,
  body.page-id-512 .checkout-order-summary-block-fill {
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--sb-color-border, #e5e5e5) !important;
    border-radius: 12px;
    background: #fff;
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill
    > .wp-block-woocommerce-checkout-order-summary-cart-items-block,
  body.page-id-512
    .checkout-order-summary-block-fill
    > .wp-block-woocommerce-checkout-order-summary-cart-items-block {
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 0 !important;
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill
    .wc-block-components-order-summary,
  body.page-id-512
    .checkout-order-summary-block-fill
    .wc-block-components-order-summary {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill
    .wc-block-components-order-summary__content,
  body.page-id-512
    .checkout-order-summary-block-fill
    .wc-block-components-order-summary__content {
    gap: 12px;
    padding: 0 !important;
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill
    .wc-block-components-order-summary-item,
  body.page-id-512
    .checkout-order-summary-block-fill
    .wc-block-components-order-summary-item {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 56px;
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill
    .wc-block-components-order-summary-item__image,
  body.page-id-512
    .checkout-order-summary-block-fill
    .wc-block-components-order-summary-item__image {
    width: 52px;
    height: 52px;
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill
    .wc-block-components-order-summary-item__description,
  body.page-id-512
    .checkout-order-summary-block-fill
    .wc-block-components-order-summary-item__description {
    min-width: 0;
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill
    .wc-block-components-order-summary-item
    .wc-block-components-product-name,
  body.page-id-512
    .checkout-order-summary-block-fill
    .wc-block-components-order-summary-item
    .wc-block-components-product-name {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill
    .wc-block-components-order-summary-item__individual-prices,
  body.page-id-512
    .checkout-order-summary-block-fill
    .wc-block-components-order-summary-item__individual-prices {
    display: block;
    margin-top: 4px;
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill
    > .wp-block-woocommerce-checkout-order-summary-coupon-form-block,
  body.page-id-512
    .checkout-order-summary-block-fill
    > .wp-block-woocommerce-checkout-order-summary-coupon-form-block {
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-top: 1px solid var(--sb-color-border, #e5e5e5) !important;
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill
    .wp-block-woocommerce-checkout-order-summary-coupon-form-block
    .wc-block-components-totals-coupon,
  body.page-id-512
    .checkout-order-summary-block-fill
    .wp-block-woocommerce-checkout-order-summary-coupon-form-block
    .wc-block-components-totals-coupon {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill
    > .wp-block-woocommerce-checkout-order-summary-totals-block,
  body.page-id-512
    .checkout-order-summary-block-fill
    > .wp-block-woocommerce-checkout-order-summary-totals-block {
    margin: 0 !important;
    padding: 8px 16px !important;
    border-top: 1px solid var(--sb-color-border, #e5e5e5);
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill
    > .wp-block-woocommerce-checkout-order-summary-totals-block
    .wc-block-components-totals-item,
  body.page-id-512
    .checkout-order-summary-block-fill
    > .wp-block-woocommerce-checkout-order-summary-totals-block
    .wc-block-components-totals-item {
    padding: 8px 0;
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill
    > .wc-block-components-totals-wrapper:last-child,
  body.page-id-512
    .checkout-order-summary-block-fill
    > .wc-block-components-totals-wrapper:last-child {
    margin: 0 !important;
    padding: 0 16px !important;
    border: 0;
    border-top: 1px solid var(--sb-color-border, #e5e5e5);
  }

  body.woocommerce-checkout
    .checkout-order-summary-block-fill
    > .wc-block-components-totals-wrapper:last-child
    .wc-block-components-totals-footer-item,
  body.page-id-512
    .checkout-order-summary-block-fill
    > .wc-block-components-totals-wrapper:last-child
    .wc-block-components-totals-footer-item {
    margin: 0;
    padding: 16px 0;
    border: 0;
  }

  body.woocommerce-checkout .wc-block-checkout__actions,
  body.page-id-512 .wc-block-checkout__actions {
    margin-top: 0;
  }

  body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
  body.page-id-512 .wc-block-components-checkout-place-order-button {
    margin-top: 12px !important;
  }

  body.woocommerce-checkout #content,
  body.page-id-512 #content {
    width: calc(100% - 24px);
    padding: 24px 0 56px;
  }

  body.woocommerce-checkout #content .page-header,
  body.page-id-512 #content .page-header {
    margin-bottom: 18px;
  }

  body.woocommerce-checkout .wc-block-components-sidebar-layout,
  body.page-id-512 .wc-block-components-sidebar-layout {
    gap: 18px;
  }

  body.woocommerce-checkout .wc-block-components-checkout-step,
  body.woocommerce-checkout .wc-block-checkout__order-notes,
  body.woocommerce-checkout .wc-block-checkout__terms,
  body.woocommerce-checkout .wc-block-checkout__sidebar,
  body.page-id-512 .wc-block-components-checkout-step,
  body.page-id-512 .wc-block-checkout__order-notes,
  body.page-id-512 .wc-block-checkout__terms,
  body.page-id-512 .wc-block-checkout__sidebar {
    padding: 18px;
    border-radius: 12px;
  }

  body.woocommerce-checkout .wc-block-components-address-form,
  body.page-id-512 .wc-block-components-address-form {
    grid-template-columns: 1fr;
  }

  body.woocommerce-checkout .wc-block-components-address-form__first_name,
  body.woocommerce-checkout .wc-block-components-address-form__last_name,
  body.woocommerce-checkout .wc-block-components-address-form__postcode,
  body.woocommerce-checkout .wc-block-components-address-form__city,
  body.page-id-512 .wc-block-components-address-form__first_name,
  body.page-id-512 .wc-block-components-address-form__last_name,
  body.page-id-512 .wc-block-components-address-form__postcode,
  body.page-id-512 .wc-block-components-address-form__city {
    grid-column: 1 / -1;
  }

  body.woocommerce-checkout .wc-block-checkout__shipping-method-container,
  body.page-id-512 .wc-block-checkout__shipping-method-container {
    grid-template-columns: 1fr;
  }

  body.woocommerce-checkout .wc-block-components-order-summary-item,
  body.page-id-512 .wc-block-components-order-summary-item {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  body.woocommerce-checkout .wc-block-components-order-summary-item__image,
  body.page-id-512 .wc-block-components-order-summary-item__image {
    width: 54px;
    height: 54px;
  }

  body.woocommerce-checkout .wc-block-components-totals-coupon__form,
  body.page-id-512 .wc-block-components-totals-coupon__form {
    grid-template-columns: 1fr;
  }

  body.woocommerce-checkout .wc-block-components-totals-coupon__button,
  body.page-id-512 .wc-block-components-totals-coupon__button {
    width: 100%;
  }
}

@media (max-width: 767px) {
  body.woocommerce-checkout #shipping-option,
  body.page-id-512 #shipping-option {
    padding: 16px;
  }

  body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__option,
  body.page-id-512 #shipping-option .wc-block-components-radio-control__option {
    min-height: 50px;
    padding: 7px 10px 7px 38px;
  }

  body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__input,
  body.page-id-512 #shipping-option .wc-block-components-radio-control__input {
    left: 10px;
  }

  body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option,
  body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__option,
  body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option-checked,
  body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__option-checked {
    min-height: 50px;
    padding: 7px 10px 7px 38px;
  }

  body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__input,
  body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__input {
    left: 10px;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
  }

  body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__label-group,
  body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__label-group {
    gap: 12px;
  }

  body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__secondary-label img,
  body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control__secondary-label img,
  body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-payment-method-icons img,
  body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-payment-method-icons img {
    max-width: 72px;
    max-height: 28px;
  }

  body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content,
  body.page-id-512 .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content {
    padding: 0 10px 9px 38px !important;
    font-size: 13px;
  }

  .jBox-wrapper.jBox-Modal:has(inpost-geowidget) {
    top: 12px !important;
    left: 12px !important;
    width: calc(100vw - 24px) !important;
    height: calc(100dvh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
  }

  .jBox-wrapper.jBox-Modal:has(inpost-geowidget) .jBox-content {
    padding: 8px !important;
  }
}
