body.woocommerce-checkout .wc-block-components-address-form__company {
  display: none !important;
}

body.woocommerce-checkout .wc-block-checkout__add-note {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}

body.woocommerce-checkout .wc-block-checkout__add-note textarea {
  min-height: 92px;
  background-color: #171c1d !important;
  border: 1px solid #667173 !important;
  border-radius: 8px !important;
  color: #fff !important;
}

body.woocommerce-checkout .wc-block-checkout__add-note textarea::placeholder {
  color: rgba(255,255,255,.68) !important;
  opacity: 1;
}

.vibez-variation-fallback {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(34,199,189,.45);
  border-radius: 10px;
  background: rgba(34,199,189,.08);
}

.vibez-variation-fallback__price {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.vibez-variation-fallback__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 8px;
  background: #22c7bd;
  color: #081314 !important;
  font-weight: 800;
  text-decoration: none !important;
}

.vibez-variation-fallback__button:hover,
.vibez-variation-fallback__button:focus {
  background: #61ded6;
}

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wc-block-components-sidebar-layout { max-width: 100%; }

body.woocommerce-checkout #checkout-content .wc-block-components-form .wc-block-components-text-input input[type],
body.woocommerce-checkout #checkout-content .wc-block-components-form .wc-block-components-select select,
body.woocommerce-checkout #checkout-content .wc-block-components-form .wc-blocks-components-select select {
  min-height: 48px;
  background-color: #171c1d !important;
  border: 1px solid #667173 !important;
  border-radius: 8px !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}

body.woocommerce-checkout #checkout-content .wc-block-components-form input[type]:hover,
body.woocommerce-checkout #checkout-content .wc-block-components-form select:hover { border-color: #8a9698 !important; }
body.woocommerce-checkout #checkout-content .wc-block-components-form input[type]:focus,
body.woocommerce-checkout #checkout-content .wc-block-components-form select:focus {
  border-color: #22c7bd !important;
  box-shadow: 0 0 0 2px rgba(34,199,189,.28) !important;
  outline: none !important;
}

body.woocommerce-checkout #checkout-content .wc-block-components-form label,
body.woocommerce-checkout #checkout-content .wc-block-components-form .wc-block-components-select__label,
body.woocommerce-checkout #checkout-content .wc-block-components-form .wc-blocks-components-select__label { color: rgba(255,255,255,.84) !important; }
body.woocommerce-checkout #checkout-content .wc-block-components-form input[type]::placeholder { color: rgba(255,255,255,.68) !important; opacity: 1; }
body.woocommerce-checkout #checkout-content .wc-block-components-form select option { background: #171c1d; color: #fff; }

body.woocommerce-checkout .wc-block-components-checkout-place-order-button { min-height: 52px; width: 100%; }
body.woocommerce-checkout .vibez-cash-description { margin: -8px 16px 16px 48px; color: #697678; font-size: 14px; line-height: 1.45; }

/* Keep checkout scannable: catalog descriptions belong on product pages, not
   inside the narrow order-summary column. Product name, quantity, image and
   price remain visible. */
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-product-metadata__description {
  display: none !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description {
  min-width: 0;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name {
  line-height: 1.3;
}

body.woocommerce-checkout .vibez-payment-option-selected {
  border-color: #22c7bd !important;
  box-shadow: inset 0 0 0 1px #22c7bd;
}

body.woocommerce-checkout .vibez-payment-selected-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(34, 199, 189, .16);
  color: #7ce7df;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 767px), (max-height: 650px) {
  body.woocommerce-checkout #checkout-content { padding-bottom: 92px !important; }
  body.woocommerce-checkout #checkout-content .wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained {
    position: fixed !important;
    z-index: 999;
    right: auto !important;
    bottom: 12px;
    left: 50% !important;
    width: min(430px, calc(100vw - 24px)) !important;
    min-height: 54px;
    margin: 0 !important;
    transform: translateX(-50%);
    border: 2px solid rgba(255,255,255,.22) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.42);
  }
}

.vibez-minimum-notice,
.vibez-checkout-minimum {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #d69e2e;
  border-radius: 8px;
  background: #fff8e1;
  color: #2b2414;
  font-weight: 600;
  line-height: 1.4;
}
.vibez-checkout-minimum a { color: inherit; text-decoration: underline; }
.vibez-checkout-disabled { opacity: .58 !important; cursor: not-allowed !important; }

body.woocommerce-order-received .woocommerce-order {
  min-width: 0;
  overflow-x: hidden;
}

body.woocommerce-order-received .woocommerce-order-overview {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 28px !important;
  padding: 0 !important;
}

body.woocommerce-order-received .woocommerce-order-overview li {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 8px;
  line-height: 1.35;
}

body.woocommerce-order-received .woocommerce-order-overview li strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

body.woocommerce-order-received .woocommerce-order-overview li.order {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

body.woocommerce-order-received .woocommerce-order-overview li.date {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

body.woocommerce-order-received .woocommerce-order-overview li.total {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

body.woocommerce-order-received .woocommerce-order-overview li.method {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

body.woocommerce-order-received .woocommerce-order-details table {
  width: 100% !important;
  table-layout: fixed;
}

body.woocommerce-order-received .woocommerce-order-details th,
body.woocommerce-order-received .woocommerce-order-details td {
  padding: 12px !important;
  overflow-wrap: anywhere;
}

body.woocommerce-order-received .woocommerce-order-details .product-total {
  width: 92px;
  text-align: right;
}

@media (max-width: 767px) {
  body.woocommerce-checkout #checkout-content { padding-top: 1.5rem; padding-bottom: 2.5rem; }
  body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 0; }
  body.woocommerce-cart .wc-block-components-product-metadata__description { display: none !important; }
  body.woocommerce-cart .wc-block-cart-item__image img { width: 64px !important; height: 64px !important; object-fit: cover; }
  body.woocommerce-order-received #checkout-content { overflow-x: hidden; }
}
