/*
Theme Name: MyBrick.art Frontend
Theme URI: https://mybrick.art/
Author: MyBrick.art
Description: WordPress shell for the MyBrick.art React frontend while WooCommerce owns cart and checkout.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Text Domain: mybrick-art-frontend
*/

body {
  margin: 0;
}

.mybrick-wp-shell {
  min-height: 100vh;
  background: #f8f6f2;
  color: #2b2b2b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mybrick-wp-header,
.mybrick-wp-footer {
  border-color: #d8d2c7;
  background: #fcfbf8;
}

.mybrick-wp-header__inner,
.mybrick-wp-content,
.mybrick-wp-footer__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.mybrick-wp-header__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mybrick-wp-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid #d8d2c7;
}

.mybrick-wp-brand {
  color: inherit;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.mybrick-wp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.mybrick-wp-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  color: #5e5a54;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.mybrick-cart-link {
  position: relative;
}

.mybrick-cart-link__icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
}

.mybrick-cart-link__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mybrick-cart-link__count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.mybrick-wp-content {
  padding: 48px 0 72px;
}

.mybrick-presale-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin: 0 0 34px;
  padding: 26px 30px;
  border: 1px solid #d9954f;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(242, 192, 121, 0.34), rgba(255, 255, 255, 0.88)),
    #fff7e8;
  box-shadow: 0 18px 48px rgba(159, 95, 48, 0.12);
}

.mybrick-presale-banner__badge {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.mybrick-presale-banner__content {
  min-width: 0;
}

.mybrick-presale-banner__content h2 {
  margin: 0;
  color: #171717;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
}

.mybrick-presale-banner__content p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #5e5a54;
  font-size: 17px;
  line-height: 1.55;
}

.mybrick-terms-checkbox {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #d8d2c7;
  border-radius: 10px;
  background: #fcfbf8;
}

.mybrick-terms-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #2b2b2b;
  font-size: 14px;
  line-height: 1.45;
}

.mybrick-terms-checkbox input {
  margin-top: 3px;
}

.mybrick-terms-link,
.mybrick-terms-checkbox a {
  color: #171717;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mybrick-hidden-additional-info {
  display: none !important;
}

body.mybrick-wp-shell .mybrick-checkout-terms-action {
  box-sizing: border-box;
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 16px 0 18px !important;
  padding: 14px 16px;
  border: 1px solid #d8d2c7;
  border-radius: 14px;
  background: #fcfbf8;
}


body.mybrick-wp-shell .mybrick-checkout-terms-action label,
body.mybrick-wp-shell .mybrick-checkout-terms-action .wc-block-components-checkbox__label {
  color: #2b2b2b;
  font-size: 14px;
  line-height: 1.45;
}

body.mybrick-wp-shell .mybrick-checkout-terms-action input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  flex: 0 0 auto;
  width: 20px !important;
  height: 20px !important;
  margin-top: 2px;
}

body.mybrick-wp-shell .mybrick-checkout-terms-action .wc-block-components-checkbox__mark {
  display: none !important;
}

body.mybrick-wp-shell .mybrick-checkout-terms-action .wc-block-components-checkbox__label {
  flex: 1 1 auto;
  min-width: 0;
}


body.mybrick-wp-shell .mybrick-checkout-pay-action-group {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
}

.mybrick-wp-content :where(img, video, canvas) {
  max-width: 100%;
  height: auto;
}

.mybrick-currency-switcher,
.mybrick-currency-switcher .p24-currency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mybrick-currency-switcher .p24-currency__select {
  min-height: 38px;
  border: 1px solid #d8d2c7;
  border-radius: 999px;
  background: #fff;
  color: #171717;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 0 32px 0 12px;
}

.mybrick-currency-switcher .p24-currency__submit {
  min-height: 38px;
  border: 1px solid #171717;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 0 14px;
}

.mybrick-currency-switcher--wp-nav .p24-currency__submit,
.mybrick-currency-switcher--checkout .p24-currency__submit,
.mybrick-currency-switcher--woocommerce .p24-currency__submit {
  display: none !important;
}

.mybrick-currency-switcher--checkout,
.mybrick-currency-switcher--woocommerce {
  margin: 0 0 18px;
  padding: 0 47px;
}

.mybrick-wp-content.mybrick-wc-flow {
  width: 100%;
  padding: 0 0 72px;
}

.mybrick-wc-flow__body {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 0;
}

.mybrick-wc-flow-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #d8d2c7;
  background: #f5f2ec;
  padding: 26px max(24px, calc((100vw - 1320px) / 2)) 28px;
}

.mybrick-wc-flow-hero p {
  margin: 0 0 6px;
  color: #5e5a54;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mybrick-wc-flow-hero h1 {
  margin: 0;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.mybrick-wc-flow-hero__badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid #d8d2c7;
  border-radius: 999px;
  background: #fcfbf8;
  color: #5e5a54;
  font-size: 12px;
  font-weight: 700;
  padding: 0 14px;
}

.mybrick-wc-flow-hero__badge svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mybrick-wc-flow .mybrick-presale-banner {
  gap: 16px;
  margin: 0 0 24px;
  padding: 24px 28px;
  border-color: #e8b36a;
  border-radius: 18px;
  background:
    radial-gradient(circle at 96% 0%, rgba(242, 192, 121, 0.42), transparent 210px),
    linear-gradient(135deg, rgba(255, 244, 219, 0.94), rgba(255, 251, 244, 0.94));
  box-shadow: none;
}

.mybrick-wc-flow .mybrick-presale-banner__badge {
  min-height: 34px;
  padding: 0 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.mybrick-wc-flow .mybrick-presale-banner__content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.mybrick-wc-flow .mybrick-presale-banner__content p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.mybrick-wc-flow .mybrick-currency-switcher--checkout {
  justify-content: flex-end;
  width: 100%;
  margin: -6px 0 18px;
  padding: 0;
}


.mybrick-wc-flow .woocommerce-order,
.mybrick-wc-flow .woocommerce-order-details,
.mybrick-wc-flow .woocommerce-customer-details {
  border: 1px solid #d8d2c7;
  border-radius: 18px;
  background: #fcfbf8;
  margin-bottom: 24px;
  padding: 28px;
}

.mybrick-wc-flow .woocommerce-order-overview {
  display: grid;
  gap: 12px;
  border: 0;
  margin: 0 0 24px;
  padding: 0;
}

.mybrick-wp-footer {
  border-top: 1px solid #d8d2c7;
}

.mybrick-wp-footer__inner {
  padding: 24px 0;
  color: #5e5a54;
  font-size: 13px;
}

@media (max-width: 720px) {
  .mybrick-wp-header__inner {
    min-height: 64px;
    gap: 12px;
  }

  .mybrick-wp-brand {
    font-size: 18px;
  }

  .mybrick-wp-nav {
    justify-content: flex-end;
    gap: 10px;
  }

  .mybrick-wp-nav > a:not(.mybrick-cart-link),
  .mybrick-wp-nav > .mybrick-currency-switcher {
    display: none;
  }

  .mybrick-wc-flow__body {
    width: min(100% - 32px, 1320px);
    padding-top: 32px;
  }

  .mybrick-wc-flow-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 22px 16px 24px;
  }

  .mybrick-wc-flow-hero h1 {
    font-size: 36px;
  }


  .mybrick-presale-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }

  .mybrick-presale-banner__badge {
    justify-self: start;
  }

  .mybrick-presale-banner__content p {
    font-size: 15px;
  }

  .mybrick-currency-switcher--checkout,
  .mybrick-currency-switcher--woocommerce {
    padding: 0 20px;
  }
}

/* Final Woo Blocks visual pass: keep Woo logic intact, tame the generated markup. */
body.mybrick-wp-shell .mybrick-wp-header {
  background: rgba(252, 251, 248, 0.96);
  backdrop-filter: blur(14px);
}

body.mybrick-wp-shell .mybrick-wp-header__inner {
  width: min(1320px, calc(100% - 48px));
  min-height: 64px;
}

body.mybrick-wp-shell .mybrick-wp-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

body.mybrick-wp-shell .mybrick-wp-actions .mybrick-currency-switcher--wp-nav select,
body.mybrick-wp-shell .mybrick-wp-actions .mybrick-currency-switcher--wp-nav .p24-multicurrency-switcher select {
  height: 42px;
  min-width: 76px;
  padding: 0 34px 0 16px;
  border: 1px solid #d8d2c7;
  border-radius: 999px;
  background: #fcfbf8;
  color: #171717;
  font: 800 13px/1 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.mybrick-wp-shell .mybrick-wp-actions .mybrick-cart-link--wp-nav {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d8d2c7;
  border-radius: 999px;
  background: #fcfbf8;
  color: #171717;
  font: 800 13px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

body.mybrick-wp-shell .mybrick-wp-actions .mybrick-cart-link__count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #171717;
  color: #fff;
  font-size: 11px;
}

body.mybrick-wp-shell .mybrick-wp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font: 900 13px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

body.mybrick-wp-shell .mybrick-wc-flow {
  width: min(1320px, calc(100% - 72px));
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-wc-flow-hero {
  margin-inline: calc((100vw - min(1320px, calc(100vw - 72px))) / -2);
  padding-inline: calc((100vw - min(1320px, calc(100vw - 72px))) / 2);
}

body.mybrick-wp-shell .mybrick-wc-flow .wp-block-woocommerce-cart .wc-block-components-sidebar-layout,
body.mybrick-wp-shell .mybrick-wc-flow .wp-block-woocommerce-cart .wp-block-woocommerce-filled-cart-block,
body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wp-block-woocommerce-checkout > .wc-block-components-sidebar-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px) !important;
  gap: 48px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-main,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart__main,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-checkout__main {
  grid-column: 1 !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart__sidebar,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-checkout__sidebar {
  grid-column: 2 !important;
  justify-self: end !important;
  width: 420px !important;
  max-width: 420px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #d8d2c7 !important;
  border-radius: 18px !important;
  background: #fcfbf8 !important;
  box-shadow: none !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-checkout__sidebar,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart__sidebar {
  position: sticky !important;
  top: 96px !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wp-block-woocommerce-cart-express-payment-block,
body.mybrick-wp-shell .mybrick-wc-flow .wp-block-woocommerce-cart-accepted-payment-methods-block {
  display: none !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-items,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-items tbody,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-items table {
  display: block !important;
  width: 100% !important;
  border: 0 !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-items__header {
  display: none !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-items__row {
  display: grid !important;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin: 0 0 18px !important;
  padding: 24px !important;
  border: 1px solid #d8d2c7 !important;
  border-radius: 18px !important;
  background: #fcfbf8 !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-items__row td,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-item__image,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-item__product,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-item__total {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-item__image {
  width: 132px !important;
  min-width: 132px !important;
  height: 132px !important;
  overflow: hidden;
  border-radius: 12px !important;
  background: #f1ede5 !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-item__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-item__product .wc-block-components-product-name {
  display: inline-block;
  margin: 0 0 8px !important;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.15;
  text-decoration: none;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-item__prices {
  margin: 0 0 8px;
  color: #171717;
  font-weight: 500;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-item__product .wc-block-components-product-metadata,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-item__product .wc-block-components-product-details {
  max-width: 650px;
  color: #5e5a54;
  font-size: 13px;
  line-height: 1.5;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-item__quantity {
  display: inline-flex !important;
  align-items: center;
  gap: 16px;
  margin-top: 14px !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-quantity-selector {
  width: 116px !important;
  min-height: 42px;
  border: 1px solid #d8d2c7 !important;
  border-radius: 999px !important;
  background: #fffaf3 !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-item__remove-link {
  color: #5e5a54 !important;
  font-size: 13px !important;
  text-decoration: none !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-item__total {
  justify-self: end;
  color: #171717;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar h2,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart__totals-title {
  margin: 0 !important;
  padding: 24px !important;
  border: 0 !important;
  border-bottom: 1px solid #d8d2c7 !important;
  background: #fcfbf8;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: none !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wp-block-woocommerce-cart-order-summary-block,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-panel,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-wrapper {
  margin: 0 !important;
  padding: 0 24px !important;
  border-color: #d8d2c7 !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-panel__button {
  display: flex !important;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 !important;
  color: #3f3a35;
  font-size: 14px;
  font-weight: 500;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 8px 0 !important;
  color: #3f3a35;
  font-size: 14px;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-item__value {
  color: #171717;
  font-weight: 500;
  text-align: right;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-item__description {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: #6f6a63;
  font-size: 11px;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-footer-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 14px -24px 0 !important;
  padding: 28px 24px !important;
  background: #f3f0ea !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  color: #6f6a63;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-cart__submit,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-checkout__actions {
  margin: 0 !important;
  padding: 24px !important;
  border-top: 1px solid #d8d2c7;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart__submit-button,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-checkout-place-order-button {
  width: 100% !important;
  min-height: 56px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #171717 !important;
  color: #fff !important;
  font: 900 15px/1 Inter, ui-sans-serif, system-ui, sans-serif !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin: 0 !important;
  padding: 18px 24px !important;
  border: 0 !important;
  border-bottom: 1px solid #d8d2c7 !important;
  background: transparent !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item__image {
  width: 72px !important;
  min-width: 72px !important;
  height: 72px !important;
  overflow: hidden;
  border-radius: 10px !important;
  background: #f1ede5 !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item__quantity {
  background: #171717 !important;
  color: #fff !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item__description {
  min-width: 0;
  color: #171717;
  font-size: 13px;
  line-height: 1.45;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item__description .wc-block-components-product-name {
  margin: 0 0 5px !important;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.15;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item__description .wc-block-components-product-metadata,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item__description .wc-block-components-product-details {
  color: #5e5a54;
  font-size: 12px;
  line-height: 1.45;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item__total-price {
  color: #171717;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-checkout-step {
  margin: 0 0 24px !important;
  padding: 28px 32px !important;
  border: 1px solid #d8d2c7 !important;
  border-radius: 18px !important;
  background: #fcfbf8 !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-checkout-step__title {
  margin: 0 0 22px !important;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.1;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-text-input input,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-combobox .wc-block-components-combobox-control input,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-form .wc-block-components-text-input input {
  min-height: 56px !important;
  border: 1px solid #d8d2c7 !important;
  border-radius: 14px !important;
  background: #fffaf3 !important;
  color: #171717 !important;
  box-shadow: none !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-radio-control {
  overflow: hidden;
  border: 1px solid #d8d2c7 !important;
  border-radius: 14px !important;
  background: #fcfbf8 !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-radio-control__option {
  display: flex !important;
  position: relative !important;
  align-items: flex-start !important;
  gap: 14px !important;
  min-height: 62px;
  padding: 16px 18px !important;
  border-color: #d8d2c7 !important;
  background: #fcfbf8 !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-radio-control__option-checked,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-radio-control__option--checked-option-highlighted {
  background: #f3f0ea !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-radio-control__input {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  margin: 2px 0 0 !important;
  transform: none !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-radio-control__option-layout {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 0 !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-radio-control__label,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-radio-control__secondary-label {
  color: #171717;
  font-size: 14px;
  line-height: 1.4;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-checkbox,
body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-checkbox label {
  display: flex !important;
  position: relative !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-checkbox__input {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  margin: 2px 0 0 !important;
  transform: none !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-checkbox__label {
  display: inline !important;
  min-width: 0;
  padding-left: 0 !important;
  color: #171717;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  body.mybrick-wp-shell .mybrick-wp-header__inner,
  body.mybrick-wp-shell .mybrick-wc-flow {
    width: min(100% - 32px, 1320px);
  }

  body.mybrick-wp-shell .mybrick-wp-nav {
    display: none;
  }

  body.mybrick-wp-shell .mybrick-wp-actions {
    gap: 8px;
  }

  body.mybrick-wp-shell .mybrick-wp-cta {
    display: none;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-wc-flow-hero {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wp-block-woocommerce-cart .wc-block-components-sidebar-layout,
  body.mybrick-wp-shell .mybrick-wc-flow .wp-block-woocommerce-cart .wp-block-woocommerce-filled-cart-block,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wp-block-woocommerce-checkout > .wc-block-components-sidebar-layout {
    display: block !important;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar,
  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart__sidebar,
  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-checkout__sidebar {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 24px !important;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-items__row {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 18px !important;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-item__image {
    width: 96px !important;
    min-width: 96px !important;
    height: 96px !important;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart-item__total {
    grid-column: 2;
    justify-self: start;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-checkout-step {
    padding: 22px 18px !important;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item__total-price {
    grid-column: 2;
  }
}

/* Checkout/cart refinement pass: totals alignment, collapsible summary metadata, mobile header. */
body.mybrick-wp-shell .mybrick-wp-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

body.mybrick-wp-shell .mybrick-wp-brand__mark {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

body.mybrick-wp-shell .mybrick-wp-brand__text {
  display: inline-block;
  color: #171717;
  font-weight: 900;
}

body.mybrick-wp-shell .mybrick-mobile-menu-toggle,
body.mybrick-wp-shell .mybrick-mobile-menu-button,
body.mybrick-wp-shell .mybrick-wp-nav__mobile-cta {
  display: none;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-footer-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "label amount"
    "empty tax";
  align-items: end !important;
  justify-content: stretch !important;
  width: auto !important;
  min-width: 0 !important;
  text-align: left !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  grid-area: label;
  align-self: center;
  justify-self: start;
  min-width: 0;
  max-width: 180px;
  line-height: 1.35 !important;
  text-align: left !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  grid-area: amount;
  align-self: end;
  justify-self: end;
  min-width: 0;
  text-align: right !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__description {
  grid-area: tax;
  justify-self: end;
  margin: 4px 0 0 !important;
  text-align: right !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-footer-item-tax {
  display: block !important;
  margin: 0 !important;
  white-space: normal !important;
  text-align: right !important;
}

body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-components-order-summary-item__description.mybrick-summary-meta-ready .wc-block-components-product-metadata {
  position: relative;
  overflow: hidden;
  max-height: 42px;
}

body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-components-order-summary-item__description.mybrick-summary-meta-ready .wc-block-components-product-metadata::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  background: linear-gradient(to bottom, rgba(252, 251, 248, 0), #fcfbf8);
  pointer-events: none;
}

body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-components-order-summary-item__description.mybrick-summary-meta-expanded .wc-block-components-product-metadata {
  max-height: none;
}

body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-components-order-summary-item__description.mybrick-summary-meta-expanded .wc-block-components-product-metadata::after {
  display: none;
}

body.mybrick-wp-shell .mybrick-summary-meta-toggle {
  display: inline-flex;
  align-items: center;
  margin: 7px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9f5f30;
  cursor: pointer;
  font: 800 12px/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  body.mybrick-wp-shell .mybrick-wp-header__inner {
    position: relative;
    width: min(100% - 24px, 1320px);
    min-height: 58px;
    gap: 8px;
  }

  body.mybrick-wp-shell .mybrick-wp-brand {
    flex: 1 1 auto;
    gap: 7px;
    min-width: 0;
  }

  body.mybrick-wp-shell .mybrick-wp-brand__mark {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  body.mybrick-wp-shell .mybrick-wp-brand__text {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
  }

  body.mybrick-wp-shell .mybrick-wp-actions {
    flex: 0 0 auto;
    gap: 6px;
    margin-left: 0;
  }

  body.mybrick-wp-shell .mybrick-wp-actions .mybrick-currency-switcher--wp-nav,
  body.mybrick-wp-shell .mybrick-wp-actions .mybrick-currency-switcher--wp-nav .p24-currency {
    display: inline-flex;
    align-items: center;
    min-width: 0;
  }

  body.mybrick-wp-shell .mybrick-wp-actions .mybrick-currency-switcher--wp-nav select,
  body.mybrick-wp-shell .mybrick-wp-actions .mybrick-currency-switcher--wp-nav .p24-currency__select,
  body.mybrick-wp-shell .mybrick-wp-actions .mybrick-currency-switcher--wp-nav .p24-multicurrency-switcher select {
    width: 62px !important;
    min-width: 62px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 20px 0 9px !important;
    font-size: 12px !important;
  }

  body.mybrick-wp-shell .mybrick-wp-actions .mybrick-cart-link--wp-nav {
    width: 40px;
    min-width: 40px;
    min-height: 38px;
    padding: 0;
    gap: 0;
    position: relative;
  }

  body.mybrick-wp-shell .mybrick-wp-actions .mybrick-cart-link--wp-nav > span:not(.mybrick-cart-link__icon):not(.mybrick-cart-link__count) {
    display: none;
  }

  body.mybrick-wp-shell .mybrick-wp-actions .mybrick-cart-link__icon {
    width: 18px;
    height: 18px;
  }

  body.mybrick-wp-shell .mybrick-wp-actions .mybrick-cart-link__count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fcfbf8;
    font-size: 10px;
  }

  body.mybrick-wp-shell .mybrick-mobile-menu-button {
    display: inline-grid;
    width: 40px;
    height: 38px;
    place-items: center;
    border: 1px solid #d8d2c7;
    border-radius: 999px;
    background: #fcfbf8;
    cursor: pointer;
  }

  body.mybrick-wp-shell .mybrick-mobile-menu-button span {
    display: block;
    width: 16px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background: #171717;
  }

  body.mybrick-wp-shell .mybrick-wp-nav {
    display: none !important;
    position: absolute;
    z-index: 120;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
    border: 1px solid #d8d2c7;
    border-radius: 18px;
    background: #fcfbf8;
    box-shadow: 0 18px 42px rgba(20, 20, 20, 0.12);
  }

  body.mybrick-wp-shell .mybrick-mobile-menu-toggle:checked ~ .mybrick-wp-nav {
    display: grid !important;
  }

  body.mybrick-wp-shell .mybrick-wp-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-radius: 12px;
    color: #171717;
    font-size: 14px;
  }

  body.mybrick-wp-shell .mybrick-wp-nav a:hover {
    background: #f3f0ea;
  }

  body.mybrick-wp-shell .mybrick-wp-nav__mobile-cta {
    display: flex !important;
    margin-top: 6px;
    background: #171717;
    color: #fff !important;
    font-weight: 900;
  }

  body.mybrick-wp-shell .mybrick-wc-flow,
  body.mybrick-wp-shell .mybrick-wc-flow__body,
  body.mybrick-wp-shell .mybrick-wc-flow .wp-block-woocommerce-cart,
  body.mybrick-wp-shell .mybrick-wc-flow .wp-block-woocommerce-checkout,
  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar-layout,
  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-main,
  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.mybrick-wp-shell .mybrick-wc-flow {
    width: min(100% - 24px, 1320px) !important;
    padding-bottom: 48px;
  }

  body.mybrick-wp-shell .mybrick-wc-flow__body {
    width: 100% !important;
    padding-top: 28px;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar,
  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart__sidebar,
  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-checkout__sidebar {
    overflow: hidden;
    margin: 22px 0 0 !important;
    border-radius: 16px !important;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout > .wp-block-woocommerce-checkout-totals-block,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__sidebar,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wp-block-woocommerce-checkout > .wp-block-woocommerce-checkout-totals-block,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wp-block-woocommerce-checkout > .wc-block-checkout__sidebar {
    grid-column: auto !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar h2,
  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-cart__totals-title {
    padding: 18px !important;
    font-size: 22px;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-panel,
  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-wrapper {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-footer-item {
    grid-template-columns: minmax(0, 1fr) auto !important;
    margin-left: -18px !important;
    margin-right: -18px !important;
    padding: 22px 18px !important;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    max-width: 150px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 29px;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 12px;
    padding: 16px 18px !important;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item__image {
    width: 58px !important;
    min-width: 58px !important;
    height: 58px !important;
  }
}

/* Mobile Woo Blocks cleanup after hydration. */
@media (max-width: 980px) {
  body.mybrick-wp-shell.woocommerce-cart .mybrick-wc-flow .wc-block-cart-items__row {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    align-items: start !important;
  }

  body.mybrick-wp-shell.woocommerce-cart .mybrick-wc-flow .wc-block-cart-item__image {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 88px !important;
    min-width: 88px !important;
    height: 88px !important;
    padding: 0 !important;
  }

  body.mybrick-wp-shell.woocommerce-cart .mybrick-wc-flow .wc-block-cart-item__product {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  body.mybrick-wp-shell.woocommerce-cart .mybrick-wc-flow .wc-block-cart-item__wrap,
  body.mybrick-wp-shell.woocommerce-cart .mybrick-wc-flow .wc-block-cart-item__product .wc-block-components-product-name,
  body.mybrick-wp-shell.woocommerce-cart .mybrick-wc-flow .wc-block-cart-item__product .wc-block-components-product-metadata {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.mybrick-wp-shell.woocommerce-cart .mybrick-wc-flow .wc-block-cart-item__product .wc-block-components-product-name {
    display: block !important;
    padding-right: 0 !important;
    overflow-wrap: anywhere;
    line-height: 1.2;
  }

  body.mybrick-wp-shell.woocommerce-cart .mybrick-wc-flow .wc-block-cart-item__prices {
    display: block !important;
    margin-top: 7px !important;
  }

  body.mybrick-wp-shell.woocommerce-cart .mybrick-wc-flow .wc-block-cart-item__total {
    display: none !important;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions {
    display: flex !important;
    flex-direction: column !important;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions > * {
    order: 3;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions > .mybrick-checkout-mobile-summary-shell,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions > .mybrick-checkout-mobile-summary {
    order: 1;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .wc-block-checkout__terms,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .wc-block-checkout__terms-text,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .mybrick-checkout-terms-action,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .mybrick-checkout-pay-action-group {
    order: 2;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .wc-block-checkout__actions_row,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .wc-block-components-checkout-place-order-button {
    order: 3;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wp-block-woocommerce-checkout > .wp-block-woocommerce-checkout-totals-block,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wp-block-woocommerce-checkout > .wc-block-checkout__sidebar,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-components-sidebar-layout > .wp-block-woocommerce-checkout-totals-block,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-components-sidebar-layout > .wc-block-checkout__sidebar {
    display: none !important;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions > .mybrick-checkout-mobile-summary {
    display: block !important;
    position: static !important;
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 22px 0 18px !important;
    padding: 0 !important;
    border: 1px solid #d8d2c7 !important;
    border-radius: 16px !important;
    background: #fcfbf8 !important;
    box-shadow: none !important;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper {
    display: block !important;
    overflow: hidden;
    width: 100% !important;
    margin: 22px 0 18px !important;
    border: 1px solid #d8d2c7 !important;
    border-radius: 16px !important;
    background: #fcfbf8 !important;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper .wc-block-components-checkout-step__heading {
    display: block !important;
    margin: 0 !important;
    border-bottom: 1px solid #d8d2c7 !important;
    padding: 18px 20px 16px !important;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper .wc-block-components-checkout-step__title {
    margin: 0 !important;
    color: #171717;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px !important;
    font-weight: 400;
    line-height: 1.12;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper .checkout-order-summary-block-fill {
    display: block !important;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper .wc-block-components-order-summary-item {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 18px 20px !important;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper .wc-block-components-totals-wrapper,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper .wc-block-components-panel {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper .wc-block-components-totals-footer-item {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "label amount"
      "empty tax";
    align-items: center !important;
    column-gap: 16px !important;
    width: calc(100% + 40px) !important;
    min-height: 92px !important;
    margin: 12px -20px 0 !important;
    padding: 22px 20px !important;
    background: #f5f2ec !important;
    text-align: left !important;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    grid-area: label;
    justify-self: start;
    max-width: 150px;
    color: #5e5a54;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.25 !important;
    text-align: left !important;
    text-transform: uppercase;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    grid-area: amount;
    align-self: center;
    justify-self: end;
    color: #171717;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    line-height: 1 !important;
    text-align: right !important;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper .wc-block-components-totals-footer-item .wc-block-components-totals-item__description {
    grid-area: tax;
    align-self: start;
    justify-self: end;
    margin: 4px 0 0 !important;
    text-align: right !important;
  }
}

/* Cart/checkout preview thumbnails and click-to-zoom lightbox. */
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-preview-trigger {
  cursor: zoom-in;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-preview-trigger:focus-visible {
  outline: 3px solid rgba(159, 95, 48, 0.4);
  outline-offset: 3px;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item {
  grid-template-columns: 104px minmax(0, 1fr) auto !important;
  gap: 16px !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item__image {
  width: 104px !important;
  min-width: 104px !important;
  height: 104px !important;
}

body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-components-order-summary-item,
body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wp-block-woocommerce-checkout-totals-block .wc-block-components-order-summary-item,
body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper .wc-block-components-order-summary-item {
  grid-template-columns: 120px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-components-order-summary-item__image,
body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wp-block-woocommerce-checkout-totals-block .wc-block-components-order-summary-item__image,
body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper .wc-block-components-order-summary-item__image {
  width: 108px !important;
  min-width: 108px !important;
  height: 144px !important;
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-components-order-summary-item__image img {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  overflow: hidden;
  border-radius: 12px !important;
  background-color: #f5f2ec !important;
  object-fit: contain !important;
}

body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-components-order-summary-item__quantity {
  z-index: 2;
  top: -7px !important;
  right: -7px !important;
}

body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-components-order-summary-item__description {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-components-order-summary-item__total-price {
  display: none !important;
}

/* Pay-for-order and order-received endpoints. */
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-pay-layout,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-received-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 40px;
  align-items: start;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-pay-native-review {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-pay-layout__summary,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-received-layout aside {
  position: sticky;
  top: 96px;
}

body.mybrick-wp-shell .mybrick-wc-flow .woocommerce-order.mybrick-order-received {
  border: 0;
  border-radius: 0;
  background: transparent;
  margin: 0;
  padding: 0;
}

body.mybrick-wp-shell .mybrick-wc-flow .woocommerce-order.mybrick-order-received .woocommerce-order-details {
  display: none !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-pay-layout__main,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-received__details,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-products__list {
  display: grid;
  gap: 20px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-section-heading h2,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__header h2,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-received__intro h2,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-next-actions h2,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email h2 {
  margin: 0;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-section-heading span {
  color: #746f67;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-alert,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-payment-card,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-shipping-note,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-next-actions,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email__card {
  border: 1px solid #d8d2c7;
  border-radius: 18px;
  background: #fcfbf8;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px;
  background: #fff3dc;
  border-color: #efc47b;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-alert--error {
  background: #fff0ed;
  border-color: #eea092;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-alert__icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-weight: 800;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-alert p {
  margin: 0;
  color: #312b22;
  line-height: 1.55;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-alert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card {
  padding: 22px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__main,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__content {
  min-width: 0;
  flex: 1;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__heading {
  justify-content: space-between;
  width: 100%;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__heading h3 {
  margin: 0;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.08;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__heading h3 span {
  color: #746f67;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__heading p {
  margin: 8px 0 0;
  color: #746f67;
  font-size: 13px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__heading code {
  color: #171717;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__heading strong {
  white-space: nowrap;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__image {
  display: block;
  width: 112px;
  min-width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 14px;
  background: #f2eee7;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__image img {
  display: block;
  width: 100% !important;
  min-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: contain !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 20px 0 0;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(216, 210, 199, 0.72);
  padding: 9px 0;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__meta dt {
  color: #746f67;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__meta dd {
  margin: 0;
  color: #2b2b2b;
  font-size: 13px;
  text-align: right;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-payment-card {
  padding: 26px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-payment-methods {
  overflow: hidden;
  border: 1px solid #d8d2c7;
  border-radius: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-payment-methods li {
  position: relative;
  border-bottom: 1px solid #d8d2c7;
  margin: 0;
  padding: 18px 18px 18px 56px;
  background: #fcfbf8;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-payment-methods li:last-child {
  border-bottom: 0;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-payment-methods input.input-radio {
  position: absolute;
  top: 20px;
  left: 18px;
  width: 18px;
  height: 18px;
  margin: 0;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-payment-methods label {
  display: block;
  color: #171717;
  font-size: 15px;
  font-weight: 700;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-payment-methods .payment_box {
  margin: 10px 0 0;
  color: #5e5a54;
  font-size: 13px;
  line-height: 1.55;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary {
  overflow: hidden;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__header {
  border-bottom: 1px solid #d8d2c7;
  padding: 20px 24px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__items,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__totals {
  margin: 0;
  padding: 18px 24px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__items {
  list-style: none;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__items li,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__totals div,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__items li {
  padding: 7px 0;
  color: #171717;
  font-size: 14px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__items em {
  color: #746f67;
  font-style: normal;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__totals {
  display: grid;
  gap: 12px;
  border-top: 1px solid #d8d2c7;
  color: #5e5a54;
  font-size: 14px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__totals dt,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__totals dd {
  margin: 0;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__totals dd,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__items strong {
  color: #171717;
  text-align: right;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__total {
  align-items: baseline;
  border-top: 1px solid #d8d2c7;
  background: #f4f1eb;
  padding: 24px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__total span {
  color: #746f67;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__total strong {
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__total small {
  display: block;
  margin-top: 6px;
  color: #5e5a54;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-pay-actions {
  border: 1px solid #d8d2c7;
  border-radius: 18px;
  background: #fcfbf8;
  margin: 18px 0 0;
  padding: 20px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-pay-actions #place_order,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email button,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-next-actions__primary {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-pay-actions__secure {
  margin: 12px 0 0;
  color: #746f67;
  font-size: 12px;
  text-align: center;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-received__intro {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-received__check {
  display: inline-grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 999px;
  background: #171717;
  color: #fff;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-received__check svg,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-shipping-note svg,
body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-received__intro .woocommerce-thankyou-order-received {
  margin: 0;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-received__intro p:last-child {
  margin: 10px 0 0;
  color: #746f67;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d8d2c7;
  border-radius: 18px;
  background: #fcfbf8;
  margin: 0 0 28px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-overview div {
  border-right: 1px solid #d8d2c7;
  padding: 20px 22px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-overview div:last-child {
  border-right: 0;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-overview span {
  display: block;
  color: #746f67;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-overview strong {
  display: block;
  margin-top: 8px;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-shipping-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-style: dashed;
  background: rgba(252, 251, 248, 0.65);
  margin-bottom: 34px;
  padding: 22px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-shipping-note span {
  color: #746f67;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-shipping-note h2 {
  margin: 0;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-shipping-note p {
  margin: 8px 0 0;
  color: #746f67;
  line-height: 1.55;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-next-actions {
  margin-top: 40px;
  padding: 34px;
  text-align: center;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-next-actions p {
  max-width: 640px;
  margin: 12px auto 0;
  color: #746f67;
  line-height: 1.6;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-next-actions div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-next-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8d2c7;
  border-radius: 999px;
  background: #fcfbf8;
  color: #171717;
  padding: 0 22px;
  font-weight: 800;
  text-decoration: none;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-next-actions__primary {
  width: auto;
  border-color: #171717 !important;
  background: #171717 !important;
  color: #fff !important;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email {
  max-width: 760px;
  margin: 0 auto;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email__card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 30px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email__icon {
  display: inline-grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 999px;
  background: #171717;
  color: #fff;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email__eyebrow {
  margin: 0 0 8px;
  color: #746f67;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email__content > p:not(.mybrick-order-verify-email__eyebrow) {
  margin: 12px 0 0;
  color: #5e5a54;
  line-height: 1.6;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email__field {
  margin: 24px 0 0;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email__field label {
  display: block;
  margin-bottom: 8px;
  color: #5e5a54;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email__field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #d8d2c7;
  border-radius: 14px;
  background: #fff;
  box-sizing: border-box;
  color: #171717;
  font-size: 16px;
  padding: 0 16px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 18px 0 0;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email__actions button {
  width: auto;
  padding: 0 28px;
}

body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email__actions a {
  color: #171717;
  font-weight: 800;
}

@media (max-width: 960px) {
  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-pay-layout,
  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-received-layout {
    grid-template-columns: 1fr;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-pay-layout__summary,
  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-received-layout aside {
    position: static;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-overview div:nth-child(2n) {
    border-right: 0;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-overview div:nth-child(n + 3) {
    border-top: 1px solid #d8d2c7;
  }
}

@media (max-width: 640px) {
  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card,
  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-payment-card,
  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-next-actions,
  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email__card {
    padding: 18px;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__main,
  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__heading,
  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-received__intro,
  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email__actions {
    flex-direction: column;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__heading strong {
    font-size: 22px;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__image {
    width: 128px;
    min-width: 128px;
    height: 128px;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-product-card__meta {
    grid-template-columns: 1fr;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-summary__total strong {
    font-size: 28px;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-overview {
    grid-template-columns: 1fr;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-overview div {
    border-right: 0;
    border-top: 1px solid #d8d2c7;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-overview div:first-child {
    border-top: 0;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email__card {
    grid-template-columns: 1fr;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-verify-email__actions button,
  body.mybrick-wp-shell .mybrick-wc-flow .mybrick-order-next-actions a {
    width: 100%;
  }
}

.mybrick-preview-lightbox {
  display: none;
  position: fixed;
  z-index: 100000;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mybrick-preview-lightbox.is-open {
  display: flex;
}

.mybrick-preview-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.72);
}

.mybrick-preview-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 920px);
  max-height: 88vh;
}

.mybrick-preview-lightbox__image {
  display: block;
  max-width: min(92vw, 920px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  background: #171717;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  object-fit: contain;
}

.mybrick-preview-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: #fcfbf8;
  color: #171717;
  cursor: pointer;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

body.mybrick-preview-lightbox-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  body.mybrick-wp-shell .mybrick-wc-flow .wc-block-components-order-summary-item__image {
    width: 92px !important;
    min-width: 92px !important;
    height: 92px !important;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-components-order-summary-item,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper .wc-block-components-order-summary-item {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    align-items: start !important;
  }

  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-components-order-summary-item__image,
  body.mybrick-wp-shell.woocommerce-checkout .mybrick-wc-flow .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper .wc-block-components-order-summary-item__image {
    width: 84px !important;
    min-width: 84px !important;
    height: 112px !important;
  }

  .mybrick-preview-lightbox {
    padding: 16px;
  }

  .mybrick-preview-lightbox__image {
    max-width: calc(100vw - 32px);
    max-height: 82vh;
    border-radius: 14px;
  }

  .mybrick-preview-lightbox__close {
    top: -10px;
    right: -10px;
  }
}
