.brx-popup.xp-qv-popup { padding: 24px !important; z-index: 10010; }
.xp-qv-popup .brx-popup-content { width: min(960px, 100%) !important; max-width: 960px; padding: 0 !important; border-radius: 18px; background: #fff; overflow: hidden; }
.xp-qv-popup .brx-popup-content:empty::before { content: 'Produkt wird geladen …'; display: block; padding: 48px; font-size: 16px; }
.xp-qv-shell { width: 100%; height: auto; max-height: calc(100dvh - 48px); display: flex; flex-direction: column; background: #fff; color: #102951; font-size: 16px; line-height: 1.5; }
.xp-qv-header { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid #e4e8ef; gap: 12px; flex: 0 0 auto; font-size: 14px; }
.xp-qv-header .xp-qv-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; background: #f0f3f8; color: #102951; border-radius: 12px; font-size: 30px; line-height: 1; border: 0; cursor: pointer; }
.xp-qv-scroll { display: block; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px; -webkit-overflow-scrolling: touch; }
.xp-qv-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 26px; align-items: start; }
.xp-qv-grid > * { min-width: 0; }
.xp-qv-info { display: flex; flex-direction: column; gap: 12px; }
.xp-qv-info .brxe-product-title { font-size: 28px !important; line-height: 1.15 !important; margin: 0 !important; }
.xp-qv-info .brxe-product-price { margin: 0 !important; }
.xp-qv-info .price { font-size: 23px; font-weight: 700; line-height: 1.3; margin: 0; color: #102951; }
.xp-qv-info .brxe-product-short-description, .xp-qv-info .brxe-product-short-description p { font-size: 16px !important; line-height: 1.5 !important; margin: 0; }
.xp-qv-popup .woocommerce-template-hook:empty, .xp-qv-popup .brxe-woocommerce-template-hook:empty { display: none; }
.xp-qv-popup .wc-gzd-additional-info { font-size: 13px; line-height: 1.4; margin: 0 0 4px; }
.xp-qv-gallery .woocommerce-product-gallery { gap: 8px !important; }
.xp-qv-gallery .flex-viewport { height: 200px !important; }
.xp-qv-gallery .woocommerce-product-gallery__image img:not(.zoomImg) { width: 100% !important; height: 200px !important; object-fit: contain !important; border-radius: 10px; }
.xp-qv-gallery .flex-control-thumbs { gap: 8px !important; }
.xp-qv-gallery .flex-control-thumbs li { width: 56px !important; }
.xp-qv-gallery .flex-control-thumbs img { height: 44px !important; object-fit: contain !important; }
.xp-qv-popup .variations { margin: 0 0 12px !important; width: 100%; border: 0; }
.xp-qv-popup .variations tr, .xp-qv-popup .variations th.label, .xp-qv-popup .variations td.value { display: block !important; width: 100% !important; padding: 0 !important; border: 0 !important; text-align: left; }
.xp-qv-popup .variations tr { margin-bottom: 10px; }
.xp-qv-popup .variations th.label { margin-bottom: 4px; font-size: 14px; }
.xp-qv-popup .variations select { width: 100% !important; min-height: 44px; font-size: 16px !important; padding: 8px 12px !important; border: 1px solid #ccd4df; border-radius: 8px; background: #fff; }
.xp-qv-popup form.cart { margin: 0; }
.xp-qv-popup form.cart .single_add_to_cart_button { display: none !important; }
/* Woo adds this next to the hidden native button; our live status has one cart link. */
.xp-qv-popup form.cart a.added_to_cart.wc-forward { display: none !important; }
.xp-qv-popup form.cart .quantity { display: grid !important; grid-template-columns: repeat(3,44px); width: 132px !important; min-width: 132px; }
.xp-qv-popup form.cart .quantity .qty { grid-column: 2; grid-row: 1; min-width: 44px !important; width: 44px !important; height: 44px !important; padding: 0 !important; font-size: 16px !important; }
.xp-qv-popup form.cart .quantity .action { position: static !important; display: flex; align-items: center; justify-content: center; height: 44px !important; width: 44px !important; }
.xp-qv-popup form.cart .quantity .minus { grid-column: 1; grid-row: 1; }
.xp-qv-popup form.cart .quantity .plus { grid-column: 3; grid-row: 1; }
.xp-qv-details { display: block; margin-top: 22px; border: 1px solid #e1e6ed; border-radius: 12px; padding: 0 16px; }
.xp-qv-details > summary { display: list-item !important; cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 16px; }
.xp-qv-details .brxe-product-content { padding-bottom: 16px; overflow-x: auto; }
.xp-qv-details p,.xp-qv-details li,.xp-qv-details td,.xp-qv-details th { font-size: 15px !important; line-height: 1.5 !important; overflow-wrap: anywhere; }
.xp-qv-details h2 { font-size: 22px !important; line-height: 1.25 !important; }
.xp-qv-details h3 { font-size: 18px !important; line-height: 1.3 !important; }
.xp-qv-details table { width: 100% !important; }
.xp-qv-details .brxe-product-additional-information { overflow-x: auto; }
.xp-qv-full { min-height: 44px; margin-top: 12px; padding: 10px 0; background: transparent; font-size: 14px; color: #3159ac; text-decoration: underline; }
.xp-qv-footer { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid #e4e8ef; background: #fff; flex: 0 0 auto; }
.xp-qv-footer-price { font-weight: 700; font-size: 20px; line-height: 1.3; min-width: 0; }
.xp-qv-footer-price small { display: block; font-size: 12px; font-weight: 400; }
.xp-qv-submit { border: 0; border-radius: 9px; min-height: 46px; padding: 12px 18px; font-size: 16px; font-weight: 600; background: #3159ac; color: #fff; cursor: pointer; }
.xp-qv-submit:disabled { opacity: .55; cursor: default; }
.xp-qv-popup .xp-qv-status { margin: 12px 0 0; font-size: 14px; color: #235e31; }
.xp-qv-popup .xp-qv-status[data-error] { color: #9d2727; }
.xp-qv-popup button:focus-visible,.xp-qv-popup a:focus-visible,.xp-qv-popup summary:focus-visible { outline: 3px solid #7899ed; outline-offset: 3px; }
@media(max-width:767px),(max-width:991px) and (orientation:landscape) {
 .brx-popup.xp-qv-popup { padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)) !important; }
 .xp-qv-popup .brx-popup-content { border-radius: 14px; }
 .xp-qv-shell { height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
 .xp-qv-header { padding: 8px 14px; }
 .xp-qv-scroll { padding: 16px; }
 .xp-qv-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
 .xp-qv-info .brxe-product-title { font-size: 24px !important; }
 .xp-qv-gallery .flex-viewport { height: 130px !important; }
 .xp-qv-gallery .woocommerce-product-gallery__image img:not(.zoomImg) { height: 130px !important; }
 .xp-qv-footer { padding: 12px 16px; gap: 10px; }
 .xp-qv-footer-price { font-size: 18px; }
 .xp-qv-submit { padding: 12px 14px; }
}
@media(max-width:359px) { .xp-qv-footer { flex-wrap: wrap; } .xp-qv-submit { width: 100%; } }
/* Override Bricks' default row layout for the first block in a Woo quick view. */
.xp-qv-popup .xp-qv-shell { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; gap: 0 !important; }
.xp-qv-popup .xp-qv-scroll { flex: 1 1 auto !important; width: 100%; }
.xp-qv-popup .xp-qv-info { flex-direction: column !important; align-items: stretch !important; }

.xp-qv-popup .variations label { color: #334c6b; }
.xp-qv-submit[data-added] { opacity: 1; background: #26703c; color: #fff; }

/* Same subtle blue interaction border as the shop category cards. */
#brxe-cpg_grid > .brxe-block {
 transition: box-shadow .2s, transform .2s, border-color .2s;
}
#brxe-shlgrid > .brxe-block.xp-card-pressed,
#brxe-cpg_grid > .brxe-block:is(:hover, :focus-within, :active, .xp-card-pressed) {
 border-color: #9cbce5;
}
/* Native Woo related/archive cards: inset outline preserves their existing size. */
#brx-content ul.products > li.product:is(:hover, :focus-within, :active, .xp-card-pressed) {
 outline: 1px solid #9cbce5;
 outline-offset: -1px;
}
@media (prefers-reduced-motion: reduce) {
 #brxe-cpg_grid > .brxe-block { transition: none; }
}

/* Extend the existing native link over its card; no extra click handlers.
 * This preserves keyboard access, modified clicks and the no-JS destination. */
#brxe-shlgrid > .brxe-block,
#brxe-cpg_grid > .brxe-block,
#brx-content ul.products > li.product {
 position: relative;
}
#brxe-shlgrid > .brxe-block > a,
#brxe-cpg_grid > .brxe-block > a,
#brx-content ul.products > li.product > a.woocommerce-loop-product__link {
 position: static;
}
#brxe-shlgrid > .brxe-block > a::before,
#brxe-cpg_grid > .brxe-block > a::before,
#brx-content ul.products > li.product > a.woocommerce-loop-product__link::before {
 content: "";
 position: absolute;
 inset: 0;
 z-index: 1;
 border-radius: 12px;
 cursor: pointer;
}
/* Keep separate purchase controls and legal links independently clickable. */
#brx-content ul.products > li.product > :is(.button, button, form),
#brx-content ul.products > li.product .wc-gzd-additional-info a {
 position: relative;
 z-index: 2;
}

/* Quiet catalog cards: the product title names the full-card link. */
#brxe-cpg_grid > .brxe-block {
 overflow: hidden;
 padding-bottom: 24px;
}
#brxe-cpg_grid > .brxe-block > :first-child {
 height: 180px;
 aspect-ratio: auto;
 background: #f6f8fc;
 border-radius: 10px !important;
}
/* Bricks renders raster attachments directly as img, unlike nested SVGs. */
#brxe-cpg_grid > .brxe-block > :first-child img {
 object-fit: contain !important;
}
#brxe-cpg_grid > .brxe-block > a {
 position: absolute !important;
 inset: 0;
 width: 100%;
 height: 100%;
 min-height: 0 !important;
 margin: 0 !important;
 grid-area: auto !important;
 z-index: 1;
}
#brxe-cpg_grid > .brxe-block > a > * {
 position: absolute !important;
 width: 1px;
 height: 1px;
 padding: 0;
 margin: -1px;
 overflow: hidden;
 clip: rect(0, 0, 0, 0);
 clip-path: inset(50%);
 white-space: nowrap;
}
#brxe-cpg_grid > .brxe-block > a::after {
 content: "\2197";
 position: absolute;
 top: 10px;
 right: 10px;
 display: grid;
 place-items: center;
 width: 28px;
 height: 28px;
 border-radius: 50%;
 background: #eaf2fc;
 color: #1464c8;
 font-size: 17px;
 line-height: 1;
}
@media(max-width:767px),(max-width:991px) and (orientation:landscape) {
 #brxe-cpg_grid > .brxe-block {
  grid-template-areas: "picture title" !important;
  grid-template-rows: minmax(100px, auto);
  padding: 14px !important;
 }
 #brxe-cpg_grid > .brxe-block > :first-child { height: auto !important; }
 #brxe-cpg_grid > .brxe-block > h3 { padding-right: 14px; }
 #brxe-cpg_grid > .brxe-block > a::after {
  top: auto;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  font-size: 14px;
 }
}
