/*added 2026-10-01 rbf -a rbf-r*/
@media(max-width:767.98px){
	.rbf-hero__overlay {
		position: absolute;
		inset: 0;
		z-index: 2;
		pointer-events: none;
		display:block;
	}
	.rbf-hero__overlay:before,
	.rbf-hero__overlay:after {
		content:'';
	}
    .rbf-hero__media .rot-img-relative.static-hero-img {
        width: 100%;
        left: 0;
        clip-path: none;
    }
	/* Große Weiße Fläche für den Text */
    .rbf-hero__stage::before {
        clip-path: polygon(0 43%, 100% 53%, 100% 100%, 0 100%);
    }
	body .rbf-hero__overlay::before {
		--rbf-hero-cut-offset-end:  28%;
	}
	/* Clip Path Variablen für Mobile Ansicht*/
    .rbf-hero {
        --mobile-cut-left: 58%;
        --mobile-cut-right: 68%;

    }

    .rbf-hero__container {
        flex-direction: column;
        justify-content: flex-end;
        padding-bottom: 2rem;
        z-index: 2;
    }

    .rbf-hero__content {
        max-width: 100%;
    }

    .rbf-hero__overlay::before {
        clip-path: polygon(
            0 calc(var(--mobile-cut-left) - var(--rbf-hero-cut-offset-end, 6%)),
            100% calc(var(--mobile-cut-right) - var(--rbf-hero-cut-offset-end, 6%)),
            100% 100%,
            0 100%
        );
    }

    .rbf-hero__overlay::after {
        clip-path: polygon(
			0 calc(var(--mobile-cut-left) - 23%),
			100% calc(var(--mobile-cut-right) - 23%),
			100% 100%,
			0 100%
        );
    }

	/* ARCHIV HEADERSECTION */
	.rbf-hero--product-family .rbf-hero__xr-viewer {
		left: 0;
		width: 100%;
		position: relative;
	}
	.rbf-hero--product-family .rbf-hero__content {
		padding-top: 0;
	}
	/* SINGLE PRODUCT*/
	.rbf-hero--single-product .rbf-hero__content {
		padding-top: 0;
		margin-bottom: 0;
    	padding-bottom: 1rem;
	}
	.rbf-hero--single-product .rbf-hero__product-media {
		min-height: 340px;
    	/* position: relative; */
	}
	.rbf-hero--single-product .rbf-hero__product-media-main {
		height: 380px;
	}
	.rbf-hero--single-product .rbf-hero__product-stage {
		height: 130px;
		width: 100%;
		left: 0;
		bottom: 8rem;
		position: absolute;
	}
	.rbf-hero--single-product .rbf-hero__product-media-main .static-hero-img {
		left: 50%;
		transform: translate(-50%, 0%);
		bottom: 4rem;
		--rbf-hero-figure-w: 360px;
	}
}


/* BURGER MENÜ BIS 991px ANZEIGEN*/
@media (max-width: 991.98px) {
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex !important;
  }
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none !important;
  }
  .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
	font-size: 1.8rem;
	font-weight: 500;
  }
}

/* WARENKORB */
.rbf-shop-documents-cart-actions__field {
	flex-direction: column;
}
.wc-block-cart__main tr.wc-block-cart-items__header {
	font-size: 1.5rem;
}
.rbf-shop-documents-cart-actions .rbf-shop-documents-cart-actions__field label {
	font-size: 16px;
	font-weight:600;
}
/* #rbf_quote_total_adjustments { */
    /* padding: 10px 12px; */
    /* border: 1px solid rgba(0, 0, 0, 0.18); */
    /* border-radius: 4px; */
    /* background: #fff; */
/* } */
#rbf_quote_note, [name="order_reference"] {
	max-width: 100%;
	border-radius: 4px;
}

.wc-block-cart {
	margin-bottom: 0;
}

.rbf-shop-documents-cart-actions__field {
	gap: 4px;
}
.wc-block-components-button.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
border-color: var(--secondary);
    background: var(--secondary);
    color: #3c3c4d;
    font-weight: 700;
	font-size: 1.5rem;
	border-radius: 4px;
}

.rbf-cart-item-note {
	max-width: 420px;
}

@media(max-width:991.98px){
.rbf-cart-item-note {
		grid-column: 1
	}
}
.wc-block-components-totals-coupon__button {
	background: transparent;
	color: var(--text);
}

.price.wc-block-components-product-price .wc-block-components-product-price__value {
	font-size: var(--wp--preset--font-size--small, 14px);
	/* color: #3c3c4d; */
	font-weight: 500;
	font-size: 1.1rem;
}

.wc-block-cart-item__total .price.wc-block-components-product-price .wc-block-components-product-price__value,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
	font-size: 1.4rem;
}

#wc-block-components-totals-coupon__input-coupon {
	border: 1px solid rgba(0, 0, 0, 0.18);
}


/* PRODUKTE STARTSEITE HINTERGRUND*/
body .outer-product-wrapper {
    position: relative;
    z-index: 1;
}

body .outer-product-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/imgs/riffle.webp');
    background-size: cover;
    background-position: center;
    clip-path: polygon(106% 0, 100% 0, 100% 100%, 78% 100%);
    z-index: -1;
	pointer-events: none;
}

body .inner-product-wrapper::before {
	content:'';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	clip-path: polygon(115% 0%, 80% 30%, 60% 100%, 88% 100%);
	z-index: -1;
	background: #fff;
	opacity: 0.5;
	pointer-events: none;
}

body .inner-product-wrapper::after {
	content:'';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	clip-path: polygon(110% 0%, 80% 30%, 60% 100%, 83% 100%);
	z-index: -1;
	background: #fff;
	opacity: 0.7;
	pointer-events: none;
}

body .outer-product-wrapper::before,
body .inner-product-wrapper::before,
body .inner-product-wrapper::after {
	max-height: 400px;
}
body .outer-product-wrapper::before,
body .inner-product-wrapper::before,
body .inner-product-wrapper::after {
	top: auto;
	bottom: 0;
}
@media(min-width: 768px) {
	body .outer-product-wrapper::before,
	body .inner-product-wrapper::before,
	body .inner-product-wrapper::after {
		max-height: 550px;
	}
}
@media(min-width: 992px) {
	body .outer-product-wrapper::before,
	body .inner-product-wrapper::before,
	body .inner-product-wrapper::after {
		max-height: 700px;
	}
}
@media(min-width: 1500px) {
	body .outer-product-wrapper::before,
	body .inner-product-wrapper::before,
	body .inner-product-wrapper::after {
		max-height: 1000px;
	}
}

@media(max-width: 991.98px) {
	body .outer-product-wrapper::before {
		clip-path:polygon(101% 0, 100% 0, 100% 100%, 68% 100%)
	}
	body .inner-product-wrapper::after {
		clip-path: polygon(107% 0%, 60% -10%, 60% 100%, 76% 100%);
	}
	body .inner-product-wrapper::before {
		clip-path: polygon(125% -40%, 80% 30%, 60% 100%, 83% 100%);
	}
}



/* HÄNDLERREGISTRIERUNG */
.rbf-dealer-registration__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
}

.rbf-dealer-registration label {
	font-size: var(--wp--preset--font-size--medium, 22px);
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 0;
	margin-top: 1rem;

}

.rbf-dealer-registration input[type="text"],
.rbf-dealer-registration input[type="email"],
.rbf-dealer-registration input[type="tel"],
.rbf-dealer-registration select {
	width: 100%;
	min-height: 48px;
	padding: 0.65rem 0.9rem;
	font: inherit;
	font-size: 1rem;
	border-radius: 4px;
	border: 1px solid rgba(0, 0, 0, 0.18);
}

.rbf-dealer-registration select {
	/* webkit-appearance: none; */
	appearance: none;
}

/* Select mit eigenem Pfeil */
.rbf-dealer-registration select {
	padding-right: 2.5rem;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235c6670' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.95rem center;
}

.rbf-dealer-registration__field--consent a {
	color: var(--rbf-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rbf-dealer-registration__field--consent a:hover {
	color: var(--rbf-accent-hover);
}


.rbf-dealer-registration__submit button {
	border-color: var(--secondary);
    background: var(--secondary);
    color: #3c3c4d;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 4px;
	box-shadow: none;
	outline:none;
	border: none;
	 padding-top: 1rem;
    padding-right: 2.25rem;
    padding-bottom: 1rem;
    padding-left: 2.25rem;
}
.rbf-dealer-registration__submit {
	margin: 1.25rem 0 0;
}

.rbf-dealer-registration__field--consent label {
	font-weight: 400;
}

@media (min-width: 600px) {
	.rbf-dealer-registration__submit button {
		width: auto;
		min-width: 260px;
	}
}

.rbf-dealer-registration {
	display: grid;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.rbf-dealer-registration {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 1.5rem;
	}

	/* Nur Einwilligung und Button über die volle Breite */
	.rbf-dealer-registration__field--consent,
	.rbf-dealer-registration__submit {
		grid-column: 1 / -1;
	}
}

/* FIX NAV HEIGHT */
.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
	height: calc(100% - var(--admin-bar-height));
	bottom: 0;
	top: auto;
}
.has-modal-open .admin-bar .is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-dialog {
	margin-top: 32px;
}
@media(min-width: 768px) and (max-width: 991.98px) {
	.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
		height: calc(100vh - var(--admin-bar-height));
		top: 0;
	}
}




@media(max-width: 767.98px) {
	body.woocommerce-cart  .rbf-hero--compact,
	body.woocommerce-checkout  .rbf-hero--compact  {
			--rbf-hero-height: 400px;
			--rbf-hero-cut-left-top: 0;
		}
	/* HIDE WHITE ITEMS IN HEADER SECTION*/
	body.woocommerce-cart .rbf-hero__media::before,
	body.woocommerce-cart .rbf-hero--compact .rbf-hero__stage::after,
	body.woocommerce-cart .rbf-hero--compact .rbf-hero__overlay::before,
	body.woocommerce-cart .rbf-hero--compact .rbf-hero__media::after,
	body.woocommerce-checkout .rbf-hero__media::before,
	body.woocommerce-checkout .rbf-hero--compact .rbf-hero__stage::after,
	body.woocommerce-checkout .rbf-hero--compact .rbf-hero__overlay::before,
	body.woocommerce-checkout .rbf-hero--compact .rbf-hero__media::after {
		display: none;
	}
}


@media(min-width: 768px) and (max-width: 1199.98px) {
	.rbf-hero--product-family .rbf-hero__xr-viewer {
		position: absolute;
		top: 50%;
    	transform: translateY(-50%);
		height: auto;
	}
	.rbf-hero--product-family .rbf-hero__xr-image {
		width:min(100%, 450px);
	}
}






/* STATIC HERO IMAGE AS FALLBACK */
@media(max-width: 767.98px) {
	section.rbf-hero--product-family .rbf-hero__container {
		justify-content: flex-start;
	}
	section.rbf-hero--product-family .rbf-hero__container .static-hero-img {
		left: 0;
		width: 100%;
		position: relative;
		flex: 1 1 auto;
	}
}
@media(min-width: 768px) {
	.rbf-hero--product-family figure.static-hero-img {
		height: 80%;
		top: 20%;
	}
}

@media(min-width: 1700px) {
	.rbf-hero--product-family figure.static-hero-img {
		height: 90%;
		top: 10%;
	}
	.rbf-hero--product-family figure.rot-img-relative.static-hero-img img {
		top: 5%;
		height: 105%;
		object-position: center center;
		object-fit: contain;
	}
}

@media(min-width: 2000px) {
	.rbf-hero--single-product .rbf-hero__product-media-main .rbf-hero__image {
		object-fit:contain;
	}
}