body a { cursor:pointer; }
body ul { list-style-position:inside; margin-left:0; }
body.category h1 { text-align:center; }
body.category .archive-description h2, body.category .archive-description h3, body.category .archive-description h4 { margin:0; }
.ascendoor-page p, .site-main article .entry-content p { margin-top:0; margin-bottom:10px; }
p:empty {display: none;}

.d-flex { display:flex; }

.page-template-default .site-main article .post-thumbnail { display:none; }

main .post .entry-content .image-container, .single-post #post-container .image-container, .page article.page .image-container { float:left; margin-right:10px; margin-bottom:10px; }
main .post .entry-content .image-container.odd, .single-post #post-container .image-container.odd, .page article.page .image-container.odd { float:right; margin-left:10px; margin-bottom:10px; }
main .post .entry-content h2,
main .post .entry-content h3,
main .post .entry-content h4,
.single-post #post-container h2,
.single-post #post-container h3,
.single-post #post-container h4,
.page article.page h2,
.page article.page h3,
.page article.page h4 { display:contents; }

.image-container .wp-caption { max-width: 100%;}

/* Menu au centre */
body header.site-header .bottom-header-part .ascendoor-wrapper .bottom-header-wrapper { justify-content: center; }

/* On cache la sidebar sur les pages catégories */
body.category aside.widget-area { display:none; }
body.category main.site-main { width:100% !important; }

/* Sidebar a gauche */
body.right-sidebar .ascendoor-wrapper .ascendoor-page { display:flex; }
body.right-sidebar.single-post main.site-main { order:2; }
body.right-sidebar .ascendoor-wrapper .ascendoor-page .widget-area { flex:25% 0 0; order:1; }

#easyrank-widget-before-footer { margin:20px 0; }
#easyrank-widget-before-footer .wrapper { padding:0 20px; max-width:1320px; margin:0 auto; }
.easyrank-widget .section-header h6.widget-title { margin-bottom:0; padding-bottom:0; }
.easyrank-widget .widget-title::before, .easyrank-widget .widget-title::after { display:none; }
.easyrank-widget .mag-post-single .mag-post-detail h3.mag-post-title { font-size: var(--font-size-sm); }
.complex-link { display:flex; }
.maillage-widget { width:100% !important; }
.easyrank-widget.p102_home .ts-container, #easyrank-widget-before-footer .ts-container { max-width:600px; margin:0 auto; }
.easyrank-widget.p102_home .ts-container .tns-nav, #easyrank-widget-before-footer .ts-container .tns-nav { text-align:center; }
.easyrank-widget.p102_home .ts-container .tns-nav button, #easyrank-widget-before-footer .ts-container .tns-nav button { width:10px; height:10px; border-radius:50%; margin:0 5px; padding:0; border:0; background-color:#ddd; }
.easyrank-widget.p102_home .ts-container .tns-nav-active, #easyrank-widget-before-footer .ts-container .tns-nav-active { background-color:#999 !important; }
.easyrank-widget.p102_home .widget-title, #easyrank-widget-before-footer .widget-title { font-size:26px !important; margin-bottom:10px !important; }
.easyrank-widget.p102_home #maillage-container .mag-post-single, #easyrank-widget-before-footer #maillage-container .mag-post-single { margin-left:0.1px; border:1px solid #ddd; border-radius:4px; padding:10px; }
.easyrank-widget.p102_home #maillage-container .d-flex, #easyrank-widget-before-footer #maillage-container .d-flex { gap:10px; }
.easyrank-widget.p102_home #maillage-container .mag-post-img, #easyrank-widget-before-footer #maillage-container .mag-post-img { flex-shrink:0; }
.easyrank-widget.p102_home #maillage-container .mag-post-category a, #easyrank-widget-before-footer #maillage-container .mag-post-category a { text-transform:uppercase; text-decoration:none; color:#5e6d82; font-weight:bold; }
.easyrank-widget.p102_home #maillage-container .mag-post-title, #easyrank-widget-before-footer #maillage-container .mag-post-title { font-size:14px !important; font-weight:normal !important; margin-top:10px; }
.easyrank-widget #maillage-container .mag-post-detail { padding:0; }

.magento-products-button { padding:13px 20px; border-radius:12px; width:100%; font-size:28px; font-weight:800; transition:all .3s ease; box-shadow:0 4px 12px rgba(0, 0, 0, .15); position: relative; }
.magento-products-button:hover { background-color:#80b601; box-shadow: 0 8px 25px rgba(0, 0, 0, .2); }
.magento-products-button span.arrow { position:absolute; right:25px; top:50%; transform:translateY(-50%); width:44px; height:44px; background-color:#fff; color:#12709b; border-radius:50%; display:flex; align-items:center; justify-content:center; transition:all .3s ease; }
.magento-products-button span.arrow::after { content:""; display:inline-block; width:22px; height:22px; background-color:#5e6d82; mask:url("../img/arrow.svg") no-repeat center / contain; }
.magento-products-button:hover span.arrow{ transform:translateY(-50%) translateX(10px); }
.magento-products-button.easyrank-products-loading { opacity:.75; }
.magento-products-button.easyrank-products-error { opacity:.6; }

.easyrank-products-modal-open { overflow:hidden; }
.easyrank-magento-products-modal { display:none; position:fixed; z-index:999999; inset:0; align-items:stretch; justify-content:stretch; padding:0; }
.easyrank-magento-products-modal.is-open { display:flex; }
.easyrank-magento-products-backdrop { position:absolute; inset:0; background:rgba(0, 0, 0, .55); }
.easyrank-magento-products-dialog { position:relative; z-index:1; width:100vw; height:100vh; max-width:none; max-height:none; overflow:hidden; background:#fff; border-radius:0; padding:0; box-shadow:none; }
.easyrank-magento-products-dialog h2 { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0, 0, 0, 0); white-space:nowrap; }
.easyrank-magento-products-close { position:absolute; top:12px; right:12px; width:34px; height:34px; display:flex; align-items:center; justify-content:center; padding:0; border:0; border-radius:50%; background:#f1f1f1; color:#222; font-size:28px; line-height:1; cursor:pointer; }
.easyrank-magento-products-close:hover { background:#dedede; }
.easyrank-magento-products-body { height:100%; }
.easyrank-magento-products-message { padding:20px 0; text-align:center; }
.easyrank-magento-products-layout { display:flex; width:100%; height:100%; }
.easyrank-magento-products-image { flex:0 0 70%; display:flex; align-items:center; justify-content:center; padding:32px; background:#f1f1f1; }
.easyrank-magento-products-image img { display:block; max-width:90%; max-height:calc(100vh - 64px); width:auto; height:auto; object-fit:contain; }
.easyrank-magento-products-list { flex:1 1 30%; display:flex; flex-direction:column; gap:14px; overflow:auto; padding:40px 24px 24px; }
.easyrank-magento-products-list h4 { margin:0 0 4px; font-size:36px !important; color:#000; line-height:1.25; }
.easyrank-magento-products-modal .item-content { display:flex; flex-direction:row; flex-wrap:wrap; align-items:flex-start; justify-content:center; gap:5px 25px; border-radius:4px; box-shadow:1px 1px 5px #999; padding:12px; text-align:left; margin:0; min-height:0; }
.easyrank-magento-products-modal .item .item-content img { flex:0 0 95px; max-width:95px; margin:0; }
.easyrank-magento-products-modal .item .item-content > div { white-space:normal; }
.easyrank-magento-products-modal .item .item-content .product-info { flex:1 1 auto; display:flex; flex-direction:column; min-width:0; }
.easyrank-magento-products-modal .item .item-content .name { margin-bottom:5px; }
.easyrank-magento-products-modal .item .item-content .price span { display:block; }
.easyrank-magento-products-modal .item .item-content .price .old-price { text-decoration:line-through; color:lightgrey; font-size:14px; }
.easyrank-magento-products-modal .item .item-content .price .price { display:inline-block; color:#d03a0c; font-weight:bold; font-size:18px; vertical-align:middle; }
.easyrank-magento-products-modal .item .item-content .price .discount-percent { display:inline-block; font-weight:bold; color:#fff; background-color:#12709b; padding:2px 5px; border-radius:20px; font-size:14px; vertical-align:middle; margin-left:5px; }
.easyrank-magento-products-modal .item .item-content .caracteristiques { text-align:left; }
.easyrank-magento-products-modal .item .item-content .caracteristiques > div { margin:5px 0; font-size:14px; }
.easyrank-magento-products-modal .item .item-content .caracteristiques > div:before { display:inline-block; content:""; margin-right:10px; width:10px; height:10px; background-color:#12709b; }
.easyrank-magento-products-modal .item .item-content .link { width:100%; text-align:center; text-decoration:none; margin-bottom:0; margin-top:0; }
.easyrank-magento-products-modal .item .item-content .link span { display:inline-block; padding:5px 20px; border-radius:4px; border:2px solid #d03a0c; cursor:pointer; }
.easyrank-magento-products-modal .item .item-content .link span:hover { background-color:#d03a0c; }

article ul.magento-keywords { list-style:none !important; margin:10px 0 !important; padding-left:0; display:flex; flex-wrap:wrap; }
article ul.magento-keywords li { margin-top:0; margin-bottom:10px; margin-right:8px; padding:0; }
article ul.magento-keywords li a { display:inline-flex; border-radius:.75rem; padding:3px 16px; box-shadow:inset 0 0 0 1px #808080; cursor:pointer; }

.bas-box { margin:40px auto; position:relative; border:1px solid #cccccc; padding:25px 30px; border-radius:4px; background-color:#ffffff; }
.bas-header { position:absolute; top:-14px; left:25px; background-color:#ffffff; padding:0 10px; display:flex; align-items:center; }
.bas-title { font-weight:500; margin:0; }
.bas-content { margin:0 !important; }

.faq-container {}
.faq-container h2 { font-weight:700; margin-top:50px; margin-bottom:30px; text-align:center; }
.faq-container section { margin:0 auto 40px; display:flex; flex-direction:column; gap:12px; }
.faq-container details { border:1px solid #e3e8ef; border-radius:8px; overflow:hidden; }
.faq-container details div { padding:5px 22px 22px; border-top:1px solid #f0f3f7; }
.faq-container details div p { margin:12px 0; }
.faq-container summary { position:relative; padding:18px 55px 18px 22px; cursor:pointer; font-size:16px; font-weight:600; list-style:none; }

@media only screen and (min-width: 1025px) {
    .easyrank-magento-products-image img { min-width: 60%; }
}

@media only screen and (max-width: 1024px) {
    .easyrank-magento-products-dialog { overflow:auto; }
    .easyrank-magento-products-layout { flex-direction:column; min-height:100%; height:auto; }
    .easyrank-magento-products-image { flex:0 0 auto; width:100%; min-height:48vh; padding:56px 16px 24px; }
    .easyrank-magento-products-image img { max-width:90%; max-height:55vh; }
    .easyrank-magento-products-list { flex:0 0 auto; width:100%; overflow:visible; padding:18px 16px 24px; }
    .easyrank-magento-products-list h4 { font-size:20px !important; }

    .magento-products-button { display:flex !important; font-size:20px; align-items:center; }
    .magento-products-button span.btn-label { flex-grow:1; }
    .magento-products-button span.arrow { position:relative; right:unset; top:unset; transform:none !important; }
}

/* Sidebar responsive */
@media only screen and (max-width: 600px) {
    body.right-sidebar .ascendoor-wrapper .ascendoor-page { flex-wrap:wrap; }
    body.right-sidebar.single-post aside.widget-area { flex:100% !important; position:relative !important; top:unset !important; }
    main .post .entry-content .image-container, .single-post #post-container .image-container, .page article.page .image-container { float:none !important; margin:0 !important; }
    .easyrank-magento-products-image { min-height:42vh; }
}
