
.epw-woo-wrap .woocommerce-shipping-methods .easypack_show_geowidget,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack_show_geowidget,
.epw-woo-wrap #easypack_show_geowidget,

/* EPW: shipping external buttons (e.g. InPost) are styled via CSS variables set on .epw-woo-wrap */
.epw-woo-wrap .woocommerce-shipping-methods .easypack-show-point,
.epw-woo-wrap .woocommerce-shipping-methods .easypack_show_point,
.epw-woo-wrap .woocommerce-shipping-methods .inpost-geowidget-button,
.epw-woo-wrap .woocommerce-shipping-methods .inpost_select_point,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack-show-point,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack_show_point,
.epw-woo-wrap .woocommerce-shipping-totals td .inpost-geowidget-button,
.epw-woo-wrap .woocommerce-shipping-totals td .inpost_select_point,
.epw-woo-wrap .woocommerce-shipping-methods li a.easypack-show-point,
.epw-woo-wrap .woocommerce-shipping-methods li button.easypack-show-point {
  background: var(--epw-ship-btn-bg, transparent) !important;
  background-color: var(--epw-ship-btn-bg, transparent) !important;
  background-image: none !important;
  color: var(--epw-ship-btn-color, inherit) !important;
  border-style: solid !important;
  border-color: var(--epw-ship-btn-border-color, currentColor) !important;
  border-width: var(--epw-ship-btn-border-width, 0px) !important;
  border-radius: var(--epw-ship-btn-radius, 0px) !important;
  padding: var(--epw-ship-btn-padding, 0) !important;
  
  font-weight: var(--epw-ship-btn-font-weight, inherit) !important;
  font-family: inherit !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  min-height: 0 !important;
}

.epw-woo-wrap .woocommerce-shipping-methods .easypack-show-point *,
.epw-woo-wrap .woocommerce-shipping-methods .easypack_show_point *,
.epw-woo-wrap .woocommerce-shipping-methods .inpost-geowidget-button *,
.epw-woo-wrap .woocommerce-shipping-methods .inpost_select_point *,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack-show-point *,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack_show_point *,
.epw-woo-wrap .woocommerce-shipping-totals td .inpost-geowidget-button *,
.epw-woo-wrap .woocommerce-shipping-totals td .inpost_select_point * {
  color: inherit !important;
  font: inherit !important;
}


/* Hover state */
.epw-woo-wrap .woocommerce-shipping-methods .easypack-show-point:hover,
.epw-woo-wrap .woocommerce-shipping-methods .easypack_show_point:hover,
.epw-woo-wrap .woocommerce-shipping-methods .inpost-geowidget-button:hover,
.epw-woo-wrap .woocommerce-shipping-methods .inpost_select_point:hover,
.epw-woo-wrap .woocommerce-shipping-methods .easypack_show_geowidget:hover,
.epw-woo-wrap #easypack_show_geowidget:hover,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack_show_geowidget:hover,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack-show-point:hover,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack_show_point:hover,
.epw-woo-wrap .woocommerce-shipping-totals td .inpost-geowidget-button:hover,
.epw-woo-wrap .woocommerce-shipping-totals td .inpost_select_point:hover {
  background: var(--epw-ship-btn-bg-hover, var(--epw-ship-btn-bg, transparent)) !important;
  background-color: var(--epw-ship-btn-bg-hover, var(--epw-ship-btn-bg, transparent)) !important;
  color: var(--epw-ship-btn-color-hover, var(--epw-ship-btn-color, inherit)) !important;
  border-color: var(--epw-ship-btn-border-color-hover, var(--epw-ship-btn-border-color, currentColor)) !important;
}



/* EPW STRONG OVERRIDES (printed last via wp_footer) */
.epw-woo-wrap .easypack_show_geowidget,
.epw-woo-wrap #easypack_show_geowidget,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack_show_geowidget,
.epw-woo-wrap .woocommerce-shipping-methods .easypack_show_geowidget,
.epw-woo-wrap .woocommerce-shipping-methods .easypack-show-point,
.epw-woo-wrap .woocommerce-shipping-methods .easypack_show_point,
.epw-woo-wrap .woocommerce-shipping-methods .inpost-geowidget-button,
.epw-woo-wrap .woocommerce-shipping-methods .inpost_select_point,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack-show-point,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack_show_point,
.epw-woo-wrap .woocommerce-shipping-totals td .inpost-geowidget-button,
.epw-woo-wrap .woocommerce-shipping-totals td .inpost_select_point {
  background: var(--epw-ship-btn-bg, transparent) !important;
  background-color: var(--epw-ship-btn-bg, transparent) !important;
  background-image: none !important;
  color: var(--epw-ship-btn-color, inherit) !important;

  border-style: solid !important;
  border-color: var(--epw-ship-btn-border-color, currentColor) !important;
  border-width: var(--epw-ship-btn-border-width, 0px) !important;
  border-radius: var(--epw-ship-btn-radius, 0px) !important;

  padding: var(--epw-ship-btn-padding, 0) !important;

  
  font-weight: var(--epw-ship-btn-font-weight, inherit) !important;
  font-family: inherit !important;

  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;

  outline: none !important;
  line-height: 1.2 !important;
}

/* Remove shadows/backgrounds coming from pseudo-elements */
.epw-woo-wrap .easypack_show_geowidget::before,
.epw-woo-wrap .easypack_show_geowidget::after,
.epw-woo-wrap #easypack_show_geowidget::before,
.epw-woo-wrap #easypack_show_geowidget::after,
.epw-woo-wrap .woocommerce-shipping-methods .easypack_show_geowidget::before,
.epw-woo-wrap .woocommerce-shipping-methods .easypack_show_geowidget::after {
  content: none !important;
  display: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* Ensure inner content inherits */
.epw-woo-wrap .easypack_show_geowidget *,
.epw-woo-wrap #easypack_show_geowidget *,
.epw-woo-wrap .inpost-geowidget-button *,
.epw-woo-wrap .inpost_select_point *,
.epw-woo-wrap .easypack-show-point *,
.epw-woo-wrap .easypack_show_point * {
  color: inherit !important;
  font: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Hover */
.epw-woo-wrap .easypack_show_geowidget:hover,
.epw-woo-wrap #easypack_show_geowidget:hover,
.epw-woo-wrap .woocommerce-shipping-methods .easypack_show_geowidget:hover,
.epw-woo-wrap .woocommerce-shipping-methods .easypack-show-point:hover,
.epw-woo-wrap .woocommerce-shipping-methods .easypack_show_point:hover,
.epw-woo-wrap .woocommerce-shipping-methods .inpost-geowidget-button:hover,
.epw-woo-wrap .woocommerce-shipping-methods .inpost_select_point:hover,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack_show_geowidget:hover,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack-show-point:hover,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack_show_point:hover,
.epw-woo-wrap .woocommerce-shipping-totals td .inpost-geowidget-button:hover,
.epw-woo-wrap .woocommerce-shipping-totals td .inpost_select_point:hover {
  background: var(--epw-ship-btn-bg-hover, var(--epw-ship-btn-bg, transparent)) !important;
  background-color: var(--epw-ship-btn-bg-hover, var(--epw-ship-btn-bg, transparent)) !important;
  color: var(--epw-ship-btn-color-hover, var(--epw-ship-btn-color, inherit)) !important;
  border-color: var(--epw-ship-btn-border-color-hover, var(--epw-ship-btn-border-color, currentColor)) !important;
}


/* EPW: align + width for InPost button in table */
.epw-woo-wrap .woocommerce-shipping-totals td {
  /* when we enable layout for button we want flex to allow alignment */
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: var(--epw-ship-btn-justify, flex-start);
}

.epw-woo-wrap .easypack_show_geowidget,
.epw-woo-wrap #easypack_show_geowidget,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack_show_geowidget,
.epw-woo-wrap .woocommerce-shipping-methods .easypack_show_geowidget,
.epw-woo-wrap .woocommerce-shipping-methods .easypack-show-point,
.epw-woo-wrap .woocommerce-shipping-methods .easypack_show_point,
.epw-woo-wrap .woocommerce-shipping-methods .inpost-geowidget-button,
.epw-woo-wrap .woocommerce-shipping-methods .inpost_select_point,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack-show-point,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack_show_point,
.epw-woo-wrap .woocommerce-shipping-totals td .inpost-geowidget-button,
.epw-woo-wrap .woocommerce-shipping-totals td .inpost_select_point {
  width: var(--epw-ship-btn-width, auto) !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
}


/* EPW: typography inherit + margin */
.epw-woo-wrap .easypack_show_geowidget,
.epw-woo-wrap #easypack_show_geowidget,
.epw-woo-wrap .woocommerce-shipping-methods .easypack_show_geowidget,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack_show_geowidget,
.epw-woo-wrap .inpost-geowidget-button {
  margin: var(--epw-ship-btn-margin, 0) !important;
  box-shadow: none !important;
}

.epw-woo-wrap .easypack_show_geowidget *,
.epw-woo-wrap #easypack_show_geowidget *,
.epw-woo-wrap .inpost-geowidget-button * {
  font: inherit !important;
  color: inherit !important;
  box-shadow: none !important;
}


/* EPW FINAL: InPost button typography handled ONLY by Elementor typography */
.epw-woo-wrap .easypack_show_geowidget,
.epw-woo-wrap #easypack_show_geowidget,
.epw-woo-wrap .woocommerce-shipping-methods .easypack_show_geowidget,
.epw-woo-wrap .woocommerce-shipping-totals td .easypack_show_geowidget,
.epw-woo-wrap .inpost-geowidget-button {
  font: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
  line-height: inherit !important;
}

.epw-woo-wrap .easypack_show_geowidget *,
.epw-woo-wrap #easypack_show_geowidget *,
.epw-woo-wrap .inpost-geowidget-button * {
  font: inherit !important;
  font-size: inherit !important;
}


/* EPW: Remove shipping table borders */
.epw-woo-wrap .woocommerce-shipping-totals,
.epw-woo-wrap .woocommerce-shipping-totals table,
.epw-woo-wrap .woocommerce-shipping-totals th,
.epw-woo-wrap .woocommerce-shipping-totals td {
  border: none !important;
  border-collapse: collapse !important;
}

/* EPW: Shipping dividers */
.epw-woo-wrap .epw-shipping-divider {
  width: 100%;
  border-top: var(--epw-ship-divider-width, 1px) solid var(--epw-ship-divider-color, #e5e5e5);
  margin: var(--epw-ship-divider-margin, 16px 0);
}


/* EPW: inject dividers between shipping rows */
.epw-woo-wrap .woocommerce-shipping-totals tr + tr td:before {
  content: '';
  display: block;
  width: 100%;
  border-top: var(--epw-ship-divider-width, 1px) solid var(--epw-ship-divider-color, #e5e5e5);
  margin: var(--epw-ship-divider-margin, 16px 0);
}


/* EPW: Remove ALL table borders in order review section */
.epw-woo-wrap table,
.epw-woo-wrap table thead,
.epw-woo-wrap table tbody,
.epw-woo-wrap table tfoot,
.epw-woo-wrap table tr,
.epw-woo-wrap table th,
.epw-woo-wrap table td {
  border: none !important;
  border-width: 0 !important;
  box-shadow: none !important;
}

/* Remove WooCommerce row separators */
.epw-woo-wrap table tr + tr th:before,
.epw-woo-wrap table tr + tr td:before {
  display: none !important;
}


/* EPW: Order review row dividers (Twoje zamówienie) */
.epw-woo-wrap .woocommerce-checkout-review-order-table,
.epw-woo-wrap .woocommerce-checkout-review-order table.shop_table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.epw-woo-wrap .woocommerce-checkout-review-order-table tr + tr > th,
.epw-woo-wrap .woocommerce-checkout-review-order-table tr + tr > td,
.epw-woo-wrap .woocommerce-checkout-review-order table.shop_table tr + tr > th,
.epw-woo-wrap .woocommerce-checkout-review-order table.shop_table tr + tr > td {
  border-top: var(--epw-order-divider-width, 1px) var(--epw-order-divider-style, solid) var(--epw-order-divider-color, #e5e5e5) !important;
}


/* EPW: Payments styling (Checkout) */
.epw-woo-wrap #payment ul.payment_methods,
.epw-woo-wrap .woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--epw-pay-list-bg, transparent);
  border: none !important;
}

.epw-woo-wrap #payment ul.payment_methods li.wc_payment_method,
.epw-woo-wrap .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
  margin: 0 !important;
  padding: var(--epw-pay-item-padding, 10px 0) !important;
}

.epw-woo-wrap #payment ul.payment_methods li.wc_payment_method + li.wc_payment_method,
.epw-woo-wrap .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method + li.wc_payment_method {
  border-top: var(--epw-pay-divider-width, 1px) var(--epw-pay-divider-style, solid) var(--epw-pay-divider-color, #e5e5e5) !important;
}

.epw-woo-wrap #payment ul.payment_methods li.wc_payment_method label,
.epw-woo-wrap .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--epw-pay-label-color, inherit) !important;
}

.epw-woo-wrap #payment ul.payment_methods li.wc_payment_method label *,
.epw-woo-wrap .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method label * {
  color: inherit !important;
  font: inherit !important;
}

.epw-woo-wrap #payment div.payment_box,
.epw-woo-wrap .woocommerce-checkout #payment div.payment_box {
  background: var(--epw-pay-box-bg, transparent) !important;
  color: var(--epw-pay-box-color, inherit) !important;
  border: none !important;
  box-shadow: none !important;
  margin: var(--epw-pay-box-margin, 10px 0 0 0) !important;
  padding: var(--epw-pay-box-padding, 10px) !important;
  border-radius: var(--epw-pay-box-radius, 0px) !important;
}

.epw-woo-wrap #payment div.payment_box::before,
.epw-woo-wrap .woocommerce-checkout #payment div.payment_box::before {
  display:none !important;
}

/* Hide payment icons/logos when enabled */
.epw-woo-wrap #payment ul.payment_methods img,
.epw-woo-wrap #payment ul.payment_methods svg,
.epw-woo-wrap .woocommerce-checkout #payment ul.payment_methods img,
.epw-woo-wrap .woocommerce-checkout #payment ul.payment_methods svg {
  display: var(--epw-pay-hide-icons, initial) !important;
}

/* Terms / checkboxes styling */
.epw-woo-wrap .woocommerce-terms-and-conditions-wrapper,
.epw-woo-wrap .woocommerce-terms-and-conditions-wrapper p,
.epw-woo-wrap .woocommerce-terms-and-conditions-wrapper label {
  color: var(--epw-pay-terms-color, inherit) !important;
}

.epw-woo-wrap .woocommerce-terms-and-conditions-wrapper input[type="checkbox"],
.epw-woo-wrap #payment input[type="radio"],
.epw-woo-wrap #payment input[type="checkbox"]{
  accent-color: var(--epw-pay-choice-accent, initial) !important;
  width: var(--epw-pay-choice-size, initial) !important;
  height: var(--epw-pay-choice-size, initial) !important;
}


/* EPW: Payments overrides (layout + typography + inputs) */
.epw-woo-wrap #payment ul.payment_methods li.wc_payment_method,
.epw-woo-wrap .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.epw-woo-wrap #payment ul.payment_methods li.wc_payment_method > input[type="radio"],
.epw-woo-wrap #payment ul.payment_methods li.wc_payment_method > input[type="checkbox"],
.epw-woo-wrap .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > input[type="radio"],
.epw-woo-wrap .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > input[type="checkbox"]{
  flex: 0 0 auto;
  margin: 0 !important;
}

/* label takes remaining space so input+label are in one line */
.epw-woo-wrap #payment ul.payment_methods li.wc_payment_method > label,
.epw-woo-wrap .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label{
  flex: 1 1 auto;
  margin: 0 !important;
}

/* payment box full width under the line */
.epw-woo-wrap #payment ul.payment_methods li.wc_payment_method > .payment_box,
.epw-woo-wrap .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > .payment_box{
  flex: 0 0 100%;
}

/* Checkbox/radio styling in payments (safe) */
.epw-woo-wrap #payment input[type="radio"],
.epw-woo-wrap #payment input[type="checkbox"],
.epw-woo-wrap .woocommerce-checkout #payment input[type="radio"],
.epw-woo-wrap .woocommerce-checkout #payment input[type="checkbox"]{
  accent-color: var(--epw-pay-choice-accent, initial) !important;
  width: var(--epw-pay-choice-size, initial) !important;
  height: var(--epw-pay-choice-size, initial) !important;
  border-color: var(--epw-pay-choice-border-color, currentColor) !important;
  border-width: var(--epw-pay-choice-border-width, 0px) !important;
  border-style: solid !important;
  border-radius: var(--epw-pay-choice-radius, 0px) !important;
}


/* EPW: payment_box typography fix (children inherit from payment_box, do not lock parent) */
.epw-woo-wrap #payment div.payment_box *,
.epw-woo-wrap .woocommerce-checkout #payment div.payment_box *{
  font: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
