{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
{% block layout_head_stylesheet %}
{{ parent() }}
{% block zenit_floatin_buybox_css %}
{% set styles = {
'alignment': config('zenitAppFloatingBuybox.config.alignment'),
'maxWidth': config('zenitAppFloatingBuybox.config.maxWidth'),
'margin': config('zenitAppFloatingBuybox.config.margin') ~ 'px',
'paddingX': config('zenitAppFloatingBuybox.config.padding') ~ 'px',
'paddingY': config('zenitAppFloatingBuybox.config.padding') / 2 ~ 'px',
'offsetY': config('zenitAppFloatingBuybox.config.margin') / 2 ~ 'px',
'radius': config('zenitAppFloatingBuybox.config.radius') ~ 'px',
'badgeRadius': config('zenitAppFloatingBuybox.config.radius') > 2 ? (config('zenitAppFloatingBuybox.config.radius') - 2) ~ 'px' : config('zenitAppFloatingBuybox.config.radius') ~ 'px',
'background': config('zenitAppFloatingBuybox.config.background'),
'backgroundOpacity': config('zenitAppFloatingBuybox.config.backgroundOpacity') ~ '%',
'color': config('zenitAppFloatingBuybox.config.color'),
'colorPrice': config('zenitAppFloatingBuybox.config.colorPrice'),
'colorWithListPrice': config('zenitAppFloatingBuybox.config.colorWithListPrice'),
'scrollUpButtonBottom': config('zenitAppFloatingBuybox.config.scrollUpButtonBottom') ~ 'px'
} %}
<style data-plugin="zenitAppFloatingBuybox">
{% if styles.maxWidth %}
.buybox-floating {
max-width: {{ styles.maxWidth }};
}
{% endif %}
.buybox-floating-inner {
border-radius: {{ styles.radius }};
margin: {{ styles.margin }};
padding: {{ styles.paddingY }} {{ styles.paddingX }};
box-shadow: 0 {{ styles.offsetY }} 1rem rgba(0, 0 ,0 , .18);
}
.buybox-floating-inner::before {
border-radius: {{ styles.radius }};
background: {{ styles.background }};
opacity: {{ styles.backgroundOpacity }};
}
.buybox-floating-inner .row > [class*="col-"] {
padding-top: {{ styles.paddingY }};
padding-bottom: {{ styles.paddingY }};
text-align: {{ styles.alignment }};
}
.buybox-floating .product-detail-price {
color: {{ styles.colorPrice }};
border-radius: {{ styles.radius }};
}
.buybox-floating .product-detail-price.with-list-price {
color: {{ styles.colorWithListPrice }}
}
.buybox-floating .product-detail-name,
.buybox-floating .product-detail-price-unit {
color: {{ styles.color }};
text-align: {{ styles.alignment }};
}
.buybox-floating .list-price-badge {
border-radius: {{ styles.badgeRadius }};
}
.scroll-up-button {
bottom: {{ styles.scrollUpButtonBottom }};
}
.product-detail-configurator-groups-toggle-preview .option-color {
border-radius: {{ styles.badgeRadius }};
}
</style>
{% if config('zenitAppFloatingBuybox.config.customCSS') %}
<style data-plugin="zenitAppFloatingBuybox">
{{ config('zenitAppFloatingBuybox.config.customCSS')|raw }}
</style>
{% endif %}
{% endblock %}
{% endblock %}