/*
Theme Name: News BF
Theme URI: ./wp-content/themes/news-bf
Author: OpenAI
Description: WooCommerce-driven PHP theme converted from the news-bf frontend.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: news-bf
*/

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #fff;
  color: #000;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.news-bf-site-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: min(42vw, 240px);
}

.news-bf-site-logo-image {
  display: block;
  width: auto !important;
  max-width: 100%;
  max-height: 90px !important;
  height: auto !important;
  object-fit: contain;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.news-bf-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-bf-mega-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.group:hover .news-bf-mega-menu,
.group:focus-within .news-bf-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.news-bf-thumb-button {
  background: transparent;
  padding: 0;
}

.news-bf-cart-count {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: #000;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.news-bf-cart-count.is-visible {
  opacity: 1;
  transform: scale(1);
}

.news-bf-toast-region {
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.news-bf-toast {
  min-width: 280px;
  max-width: min(92vw, 420px);
  background: rgba(17, 24, 39, 0.96);
  color: #fff;
  padding: 0.9rem 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
}

.news-bf-toast__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.news-bf-toast__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.625rem;
}

.news-bf-toast__link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-bf-toast__close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}

.news-bf-contact-float {
  position: fixed;
  right: 1rem;
  bottom: 6.5rem;
  z-index: 9990;
  display: block;
  width: 3.5rem;
}

.news-bf-contact-toggle {
  list-style: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  border: 0;
  background: #111827;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.24);
  cursor: pointer;
}

.news-bf-contact-toggle::-webkit-details-marker {
  display: none;
}

.news-bf-contact-float[open] .news-bf-contact-toggle {
  margin-left: auto;
}

.news-bf-contact-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(20rem, calc(100vw - 2rem));
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.news-bf-contact-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
  font-weight: 700;
}

.news-bf-contact-close {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.news-bf-contact-panel__body {
  display: flex;
  flex-direction: column;
}

.news-bf-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #f3f4f6;
}

.news-bf-contact-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-right: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s ease;
}

.news-bf-contact-item:nth-child(2n) {
  border-right: 0;
}

.news-bf-contact-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.news-bf-contact-item:hover {
  background: #f9fafb;
}

.news-bf-contact-item__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.news-bf-contact-item__value {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: right;
}

.news-bf-contact-item__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.news-bf-contact-form-wrap {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}

.news-bf-contact-form-wrap .ff-el-group {
  margin-bottom: 0.75rem;
}

.news-bf-contact-form-wrap input,
.news-bf-contact-form-wrap textarea,
.news-bf-contact-form-wrap select {
  width: 100%;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0.7rem 0.8rem;
  font-size: 0.85rem;
  box-sizing: border-box;
}

.news-bf-contact-form-wrap textarea {
  min-height: 6rem;
}

.news-bf-contact-form-wrap .ff-btn,
.news-bf-contact-form-wrap button[type="submit"] {
  width: 100%;
  border: 0;
  background: #111827;
  color: #fff;
  padding: 0.8rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 767px) {
  .news-bf-site-logo-link {
    max-width: min(48vw, 180px);
  }

  .news-bf-site-logo-image {
    max-height: 90px !important;
  }

  .news-bf-contact-float {
    right: 0.75rem;
    bottom: 5.5rem;
    width: 3rem;
  }

  .news-bf-contact-toggle {
    width: 3rem;
    height: 3rem;
  }

  .news-bf-contact-panel {
    right: 0;
    width: min(19rem, calc(100vw - 1.5rem));
  }

  .news-bf-contact-grid {
    grid-template-columns: 1fr;
  }

  .news-bf-contact-item,
  .news-bf-contact-item:nth-child(2n) {
    border-right: 0;
  }

  .news-bf-contact-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid #f3f4f6;
  }

  .news-bf-contact-item:last-child {
    border-bottom: 0;
  }
}

.news-bf-toast__close:hover {
  color: #fff;
}

.news-bf-product-media-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 1rem;
  border: 1px solid #f3f4f6;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.news-bf-product-media-stage img,
.news-bf-thumb-button img,
.news-bf-card-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.news-bf-thumb-button {
  width: 3.5rem;
  height: 3.5rem;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: #f8f8f8;
}

.news-bf-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.news-bf-card-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.news-bf-card {
  width: 100%;
}

.news-bf-main-image-trigger {
  cursor: zoom-in;
}

.news-bf-image-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.8);
}

.news-bf-image-modal.is-open {
  display: flex;
}

.news-bf-image-modal__dialog {
  position: relative;
  width: min(92vw, 1100px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-bf-image-modal__frame {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.news-bf-image-modal__frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 88vh;
  margin: 0 auto;
  object-fit: contain;
}

.news-bf-image-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.news-bf-image-modal__close:hover {
  background: #000;
}

.news-bf-single-summary form.cart {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0;
  max-width: 440px;
}

.news-bf-single-summary form.cart .quantity {
  display: inline-flex;
  margin: 0;
}

.news-bf-single-summary form.cart .single_add_to_cart_button,
.news-bf-single-summary .button.product_type_simple,
.news-bf-single-summary .button.product_type_variable,
.news-bf-single-summary .button.product_type_external,
.news-bf-single-summary .button.product_type_grouped {
  flex: 1 1 220px;
  width: auto;
  max-width: none;
  min-height: 52px;
  border: 0;
  background: #000;
  color: #fff;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.news-bf-single-summary form.cart .single_add_to_cart_button:hover,
.news-bf-single-summary .button.product_type_simple:hover,
.news-bf-single-summary .button.product_type_variable:hover,
.news-bf-single-summary .button.product_type_external:hover,
.news-bf-single-summary .button.product_type_grouped:hover {
  background: #111827;
}

.news-bf-single-summary .variations {
  width: 100%;
  margin-bottom: 1rem;
  border-spacing: 0;
}

.news-bf-single-summary .variations td,
.news-bf-single-summary .variations th {
  padding: 0 0 0.75rem;
  font-size: 0.875rem;
  text-align: left;
}

.news-bf-single-summary .variations select,
.news-bf-single-summary .quantity input,
.news-bf-sort-form select {
  border: 1px solid #e5e7eb;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  min-height: 42px;
  background: #fff;
}

.news-bf-single-summary .quantity input {
  width: 72px;
  min-width: 72px;
  padding-right: 0.5rem;
  text-align: center;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  position: relative;
  margin: 0 auto 1.25rem;
  max-width: 900px;
  list-style: none;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.875rem;
  box-shadow: none;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%);
  margin-top: 0 !important;
  line-height: 1 !important;
}

.woocommerce-error {
  border-color: #ef4444;
  color: #991b1b;
}

.woocommerce-message,
.woocommerce-info {
  color: #111827;
}

.woocommerce-message .button,
.woocommerce-info .button {
  margin-right: 1rem;
}

.news-bf-page-content .woocommerce-info a,
.news-bf-page-content .woocommerce-message a,
.news-bf-page-content .woocommerce-error a {
  color: #111827;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-bf-page-content .woocommerce-info a:hover,
.news-bf-page-content .woocommerce-message a:hover,
.news-bf-page-content .woocommerce-error a:hover {
  color: #000;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info,
.single-product .woocommerce-error {
  max-width: 1280px;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
  display: none;
}

.news-bf-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.75rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.news-bf-pagination .page-numbers.current {
  background: #000;
  border-color: #000;
  color: #fff;
  font-weight: 700;
}

.news-bf-pagination .page-numbers:hover {
  border-color: #000;
  color: #000;
}

.news-bf-empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #6b7280;
  border: 1px solid #f3f4f6;
  background: #fafafa;
}

.news-bf-mobile-category-panel {
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}

.news-bf-mobile-category-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.news-bf-mobile-category-summary::marker {
  display: none;
  content: "";
}

.news-bf-mobile-category-summary::-webkit-details-marker {
  display: none;
}

.news-bf-mobile-category-summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid #111827;
  border-bottom: 1.5px solid #111827;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.news-bf-mobile-category-panel[open] .news-bf-mobile-category-summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.news-bf-page-content .woocommerce {
  font-size: 0.95rem;
  color: #111827;
}

.news-bf-page-content .woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

.news-bf-page-content .woocommerce table.shop_table th,
.news-bf-page-content .woocommerce table.shop_table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
}

.news-bf-page-content .woocommerce-cart-form table.shop_table td.product-thumbnail {
  width: 92px;
}

.news-bf-page-content .woocommerce-cart-form table.shop_table td.product-thumbnail img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #f8f8f8;
}

.news-bf-page-content .woocommerce-cart-form table.shop_table td.product-remove a {
  color: #b91c1c;
  font-size: 1.5rem;
  line-height: 1;
}

.news-bf-page-content .woocommerce-cart-form table.shop_table td.actions {
  padding: 1rem;
}

.news-bf-page-content .woocommerce-cart-form .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.news-bf-page-content .woocommerce-cart-form .coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.news-bf-page-content .woocommerce-cart-form .coupon label {
  display: none;
}

.news-bf-page-content .woocommerce-cart-form .coupon .input-text {
  width: 180px;
  min-width: 180px;
}

.news-bf-page-content .woocommerce-cart-form [name="update_cart"] {
  background: #111827;
}

.news-bf-page-content .woocommerce-cart-form [name="update_cart"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.news-bf-page-content .woocommerce .quantity input,
.news-bf-page-content .woocommerce input.input-text,
.news-bf-page-content .woocommerce select,
.news-bf-page-content .woocommerce textarea {
  min-height: 44px;
  border: 1px solid #d1d5db;
  padding: 0.625rem 0.875rem;
  background: #fff;
}

.news-bf-page-content .woocommerce-checkout #payment .payment_methods > li {
  list-style: none;
}

.news-bf-page-content .woocommerce-checkout #payment .payment_methods .wc_payment_method > input[type="radio"],
.news-bf-page-content .woocommerce-checkout #payment .payment_methods .wc_payment_method > input[type="checkbox"],
.news-bf-page-content .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
  -webkit-appearance: auto !important;
  appearance: auto !important;
  display: inline-block !important;
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  clip: auto !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin: 0 0.75rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  vertical-align: middle;
  accent-color: #111827;
}

.news-bf-page-content .woocommerce-checkout #payment .payment_methods .wc_payment_method > label,
.news-bf-page-content .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label {
  display: inline-block;
  vertical-align: middle;
}

.news-bf-page-content .woocommerce .button,
.news-bf-page-content .woocommerce button.button,
.news-bf-page-content .woocommerce a.button,
.news-bf-page-content .woocommerce input.button {
  border: 0;
  background: #000;
  color: #fff;
  padding: 0.85rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-bf-page-content .woocommerce .button:hover,
.news-bf-page-content .woocommerce button.button:hover,
.news-bf-page-content .woocommerce a.button:hover,
.news-bf-page-content .woocommerce input.button:hover {
  background: #111827;
  color: #fff;
}

.news-bf-page-content .woocommerce-cart-form,
.news-bf-page-content .cart-collaterals,
.news-bf-page-content .woocommerce-checkout,
.news-bf-page-content .woocommerce-account {
  width: 100%;
}

.news-bf-page-content .woocommerce-checkout,
.news-bf-page-content .woocommerce-form-coupon,
.news-bf-page-content .woocommerce-form-login {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.news-bf-page-content .woocommerce-form-coupon-toggle .woocommerce-info {
  min-height: 52px;
}

.news-bf-page-content form.checkout_coupon.woocommerce-form-coupon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  margin-top: 1rem;
}

.news-bf-page-content form.checkout_coupon.woocommerce-form-coupon .form-row {
  float: none;
  width: 100%;
  margin: 0;
}

.news-bf-page-content form.checkout_coupon.woocommerce-form-coupon .form-row-last {
  width: auto;
}

.news-bf-page-content .woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.news-bf-page-content .woocommerce-checkout #customer_details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.news-bf-page-content .woocommerce-checkout .col2-set {
  display: block;
  width: 100%;
  margin: 0;
}

.news-bf-page-content .woocommerce-checkout .col2-set::after {
  content: "";
  display: table;
  clear: both;
}

.news-bf-page-content .woocommerce-checkout .col2-set .col-1,
.news-bf-page-content .woocommerce-checkout .col2-set .col-2,
.news-bf-page-content .woocommerce-checkout #order_review_heading,
.news-bf-page-content .woocommerce-checkout #order_review {
  float: none;
  width: 100%;
  margin: 0;
  clear: both;
}

.news-bf-page-content .woocommerce-checkout .col2-set .col-1,
.news-bf-page-content .woocommerce-checkout .col2-set .col-2 {
  margin-bottom: 0;
}

.news-bf-page-content .woocommerce-checkout .woocommerce-billing-fields > h3,
.news-bf-page-content .woocommerce-checkout .woocommerce-additional-fields > h3,
.news-bf-page-content .woocommerce-checkout #order_review_heading {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: #111827;
}

.news-bf-page-content .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.news-bf-page-content .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.news-bf-page-content .woocommerce-checkout .form-row-first,
.news-bf-page-content .woocommerce-checkout .form-row-last,
.news-bf-page-content .woocommerce-checkout .form-row-wide {
  float: none;
  width: 100%;
  margin: 0;
}

.news-bf-page-content .woocommerce-checkout .form-row-wide,
.news-bf-page-content .woocommerce-checkout .woocommerce-additional-fields,
.news-bf-page-content .woocommerce-checkout .woocommerce-additional-fields .form-row,
.news-bf-page-content .woocommerce-checkout #customer_details .col-2,
.news-bf-page-content .woocommerce-checkout #customer_details .col-2 .woocommerce-additional-fields__field-wrapper {
  grid-column: 1 / -1;
}

.news-bf-page-content .woocommerce-checkout .woocommerce-additional-fields textarea {
  min-height: 120px;
}

.news-bf-page-content .woocommerce-checkout #order_review_heading {
  margin-top: 0;
}

.news-bf-page-content .woocommerce-checkout #order_review {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 1.25rem;
}

.news-bf-page-content .woocommerce-checkout-review-order-table {
  margin-bottom: 1rem;
}

.news-bf-page-content .woocommerce-checkout-review-order-table th,
.news-bf-page-content .woocommerce-checkout-review-order-table td {
  padding: 0.875rem 0;
}

.news-bf-page-content .woocommerce-checkout-review-order-table thead th,
.news-bf-page-content .woocommerce-checkout-review-order-table .product-total,
.news-bf-page-content .woocommerce-checkout-review-order-table tfoot td {
  text-align: right;
}

.news-bf-page-content .woocommerce-checkout-review-order-table .product-name {
  padding-right: 1rem;
}

.news-bf-page-content .woocommerce-checkout-payment {
  margin-top: 1rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.news-bf-page-content .woocommerce-checkout-payment .payment_methods {
  margin: 0 0 1rem;
  padding: 0;
}

.news-bf-page-content .woocommerce-checkout-payment .payment_methods .wc_payment_method {
  padding: 0.875rem 0;
  border-bottom: 1px solid #eef2f7;
}

.news-bf-page-content .woocommerce-checkout-payment .payment_box {
  margin: 0.75rem 0 0;
  padding: 0.875rem 1rem;
  background: #f7f7fb;
}

.news-bf-page-content .woocommerce-checkout-payment .place-order {
  padding-top: 1rem;
}

.news-bf-cart {
  width: 100%;
}

.news-bf-cart-layout {
  display: block;
  width: 100%;
}

.news-bf-cart-main {
  min-width: 0;
  width: 100%;
}

.news-bf-cart-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.news-bf-cart-table {
  width: 100% !important;
  min-width: 760px;
  margin-bottom: 1.25rem;
  table-layout: fixed;
}

.news-bf-cart-table .product-remove {
  width: 44px;
}

.news-bf-cart-table .product-thumbnail {
  width: 84px;
}

.news-bf-cart-table .product-price,
.news-bf-cart-table .product-quantity,
.news-bf-cart-table .product-subtotal {
  width: 128px;
}

.news-bf-cart-table .product-name a,
.news-bf-cart-table .product-name {
  word-break: break-word;
}

.news-bf-cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.news-bf-cart-coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.news-bf-cart-sidebar {
  display: block;
  width: 100%;
  clear: both;
  position: static;
  margin-top: 2rem;
}

.news-bf-page-content .cart-collaterals {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  clear: both;
}

.news-bf-page-content .cart_totals {
  float: none !important;
  width: 100%;
  max-width: none;
  margin: 0;
}

.news-bf-page-content .cart_totals h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: #111827;
}

.news-bf-page-content .cart_totals table {
  margin-bottom: 1.5rem;
}

.news-bf-page-content .wc-proceed-to-checkout {
  padding-bottom: 0;
}

.news-bf-page-content .wc-proceed-to-checkout .button {
  display: inline-flex;
  width: 100%;
  justify-content: center;
}

body.woocommerce-cart .news-bf-page-content .cart_totals .ppc-button-wrapper,
body.woocommerce-cart .news-bf-page-content .cart_totals .ppcp-button-apm,
body.woocommerce-cart .news-bf-page-content .cart_totals [id*="ppc-button"],
body.woocommerce-cart .news-bf-page-content .cart_totals [id*="paypal-button"] {
  display: none !important;
}

.news-bf-page-content .product-name a {
  color: #111827;
}

.news-bf-page-content .woocommerce-order {
  max-width: 1120px;
  margin: 0 auto;
}

.news-bf-thankyou-message {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #111827;
}

.news-bf-thankyou-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 0 0 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.news-bf-thankyou-overview__item {
  min-width: 0;
  padding: 0 1.25rem;
  border-right: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-bf-thankyou-overview__item:first-child {
  padding-left: 0;
}

.news-bf-thankyou-overview__item:last-child {
  border-right: 0;
  padding-right: 0;
}

.news-bf-thankyou-overview__label {
  display: block;
}

.news-bf-thankyou-overview__value {
  display: block;
  margin-top: 0.35rem;
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.news-bf-thankyou-overview__item,
.news-bf-thankyou-overview__value {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-bf-page-content .woocommerce-order .woocommerce-order-details,
.news-bf-page-content .woocommerce-order .woocommerce-customer-details {
  margin-top: 2.5rem;
}

.news-bf-page-content .woocommerce-order .woocommerce-order-details > h2,
.news-bf-page-content .woocommerce-order .woocommerce-customer-details > h2,
.news-bf-page-content .woocommerce-order .woocommerce-column > h2,
.news-bf-page-content .woocommerce-order .woocommerce-order-downloads > h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: #111827;
}

.news-bf-page-content .woocommerce-order .woocommerce-column address {
  margin: 0;
  font-style: normal;
  line-height: 1.8;
  color: #374151;
}

@media (max-width: 640px) {
  .news-bf-toast-region {
    top: 4rem;
    left: 0.75rem;
    right: 0.75rem;
  }

  body.woocommerce-cart .news-bf-page-content,
  body.woocommerce-checkout .news-bf-page-content,
  body.woocommerce-account .news-bf-page-content {
    padding-right: 0;
  }

  .news-bf-product-media-stage {
    padding: 1rem;
  }

  .news-bf-image-modal {
    padding: 1rem 0.75rem;
  }

  .news-bf-single-summary form.cart {
    max-width: none;
  }

  .news-bf-single-summary form.cart .single_add_to_cart_button,
  .news-bf-single-summary .button.product_type_simple,
  .news-bf-single-summary .button.product_type_variable,
  .news-bf-single-summary .button.product_type_external,
  .news-bf-single-summary .button.product_type_grouped {
    width: 100%;
    flex-basis: 100%;
  }

  .news-bf-page-content .woocommerce table.shop_table:not(.news-bf-cart-table),
  .news-bf-page-content .woocommerce table.shop_table:not(.news-bf-cart-table) tbody,
  .news-bf-page-content .woocommerce table.shop_table:not(.news-bf-cart-table) tr,
  .news-bf-page-content .woocommerce table.shop_table:not(.news-bf-cart-table) td,
  .news-bf-page-content .woocommerce table.shop_table:not(.news-bf-cart-table) th {
    display: block;
    width: 100%;
  }

  .news-bf-page-content .woocommerce-cart-form .actions,
  .news-bf-page-content .woocommerce-cart-form .coupon {
    align-items: stretch;
  }

  .news-bf-page-content .woocommerce-cart-form .coupon .input-text,
  .news-bf-page-content .woocommerce-cart-form .coupon .button,
  .news-bf-page-content .woocommerce-cart-form [name="update_cart"] {
    width: 100%;
    min-width: 0;
  }

  .news-bf-thankyou-overview {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1rem 0;
  }

  .news-bf-thankyou-overview__item {
    padding: 0.9rem 0;
    border-right: 0 !important;
    border-bottom: 1px solid #e5e7eb;
  }

  .news-bf-thankyou-overview__item:last-child {
    border-bottom: 0;
  }

  .news-bf-cart-table {
    min-width: 0;
  }

  .news-bf-cart-table {
    min-width: 760px;
  }

  .news-bf-page-content .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  .news-bf-page-content .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  .news-bf-page-content .woocommerce-checkout #customer_details {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .news-bf-page-content form.checkout_coupon.woocommerce-form-coupon {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .news-bf-page-content .woocommerce-checkout form.checkout {
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: start;
  }

  .news-bf-page-content .woocommerce-checkout #customer_details {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .news-bf-page-content .woocommerce-checkout #order_review_heading {
    grid-column: 2;
    grid-row: 1;
  }

  .news-bf-page-content .woocommerce-checkout #order_review {
    grid-column: 2;
    grid-row: 2;
    margin-top: -1rem;
  }
}
