﻿.document-wrapper.distributors,
.document-wrapper.distributors .paragraph-container { margin-bottom: 30px; }
.document-wrapper.distributors { padding-top: var(--plugin-margin-bottom); }
.brand-distributors-wrapper { padding-inline: var(--global-padding-inline); padding-bottom: var(--plugin-margin-bottom); font-size: var(--plugin-abstract-font); line-height: var(--plugin-abstract-lineheight); }
.brand-distributors-wrapper:has(.distributors-box-wrapper:first-child:last-child) .distributors-country-wrapper { border-bottom-right-radius: 0; border-bottom-left-radius: 0; margin-bottom: 0; }
.distributors-grid-wrapper { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; }
.distributors-grid-wrapper:has(.distributors-box-wrapper:first-child:last-child) { grid-template-columns: repeat(1,1fr); }
.distributors-box-wrapper { background-color: #eee; padding: 30px; border-radius: 10px; border-top-left-radius: 0; border-top-right-radius: 0; }
.distributors-box-wrapper:not(:only-child) { border-top-left-radius: 10px; border-top-right-radius: 10px; }
.distributors-country-wrapper { padding: 20px 30px; width: 100%; background-color: var(--senary-color); color: #FFF; border-radius: 10px; margin-bottom: 30px; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 15px; }
.distributors-country-wrapper label { line-height: 1; font-size: 2rem; }
.distributors-country-wrapper .select-wrapper { position: relative; display: flex; border-radius: .25em; overflow: hidden; width: 60%; height: 2em; }
.distributors-country-wrapper .select-wrapper::after { content: '\25BC'; position: absolute; top: 50%; transform: translateY(-50%); right: 0; padding: 5px; background-color: transparent; pointer-events: none; height: auto; color: var(--senary-color); transition: .3s ease-in-out; line-height: 1; font-size: 1.3rem; }
.distributors-country-wrapper select:focus .select-wrapper::after { transform: translateY(-50%) rotate(180deg); }

.distributors-country-wrapper select { padding: 10px 33px 10px 10px; appearance: none; outline: none; border: none; flex: 1; border-radius: 5px; cursor: pointer; color: var(--senary-color); background-color: var(--octonary-color); background-image: none; font-weight: 600; font-size: 1.4rem; line-height: 1; letter-spacing: .05rem; font-family: 'Asap Condensed', sans-serif; transition: .3s ease-in-out; }
.distributors-country-wrapper select option { color: var(--senary-color); }
.distributors-country-wrapper select::-ms-expand { display: none; }
.distributors-specifications-title { width: fit-content; font-weight: 600; margin-bottom: 20px; text-transform: uppercase; font-size: 2rem; line-height: 2.5rem; }
.distributors-specifications-container tr { vertical-align: baseline; display: table-row; }
.distributors-specifications-container td { padding-block: 5px; line-height: normal; }
.distributors-specifications-container td > *:not(:last-child) { margin-right: 20px; }
.distributors-specifications-container td a { padding-block: 2px; }
.distributors-specifications-container th { text-align: start; margin-right: 20px; display: inline-block; font-weight: 600; }
.distributors-specifications-container a { display: inline-block; margin-right: 20px; transition: .3s ease-in-out; line-height: 1; }
.distributors-specifications-container a:last-child { margin-right: 0; }


.distributors-country-wrapper select:focus .select-wrapper { background-color: purple; }

/*box-ralf*/
.distributors-box-wrapper:has(.box-ralf) { display: grid; grid-template-columns: repeat(2,1fr); align-items: flex-start; justify-content: space-between; grid-column-gap: 30px; }
.distributors-box-wrapper:has(.box-ralf) .distributors-specifications-title { grid-column: 1/span2; grid-row: 1; }
.distributors-box-wrapper:has(.box-ralf) .box-ralf { order: 3; grid-row: 1/span 2; }
.distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-container { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-image { grid-row: 1; }
.distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-image a { transition: .3s ease-in-out; overflow: hidden; pointer-events: none; }
.distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-image img { clip-path: circle(50%); pointer-events: all; }
.distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-title { transition: .3s ease-in-out; width: fit-content; margin-left: auto; background-color: var(--senary-color); padding: 4px 15px; border-radius: 50px; line-height: 1; margin-bottom: 5px; }
.distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-title a { color: #FFF; }
.distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-text { text-align: end; grid-column: 1/span2; grid-row: 1; }
.distributors-box-wrapper:has(.box-ralf) img { transition: .3s ease-in-out; }


@media (pointer:fine) {
    .distributors-specifications-container a:hover { color: var(--secondary-color); }
    .distributors-country-wrapper .select-wrapper:hover::after { color: var(--secondary-color); }
    .distributors-country-wrapper .select-wrapper:hover select { color: var(--secondary-color); }

    .distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-image a:hover { filter: drop-shadow(0 0 3px var(--secondary-color)); }
    .distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-title:hover { background-color: var(--secondary-color); }
}

@media (max-width:1200px) {
    .brand-distributors-wrapper { font-size: 1.4rem; line-height: 1.9rem; }
}

@media (max-width:1023px) {
    .distributors-grid-wrapper { grid-template-columns: repeat(1,1fr) }
    .distributors-country-wrapper .select-wrapper { width: 70%; }
    .distributors-box-wrapper:has(.box-ralf) { grid-template-columns: repeat(1,1fr); justify-items: flex-start; }
    .distributors-box-wrapper:has(.box-ralf) .distributors-specifications-title,
    .distributors-box-wrapper:has(.box-ralf) .box-ralf { grid-column: unset; grid-row: unset; }
    .distributors-box-wrapper:has(.box-ralf) .box-ralf { margin-top: 20px; }
    .distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-container { grid-template-columns: repeat(4, 1fr); }
    .distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-title { line-height: 1; margin-left: unset; }
    .distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-text { text-align: start; grid-column: 2/span3; padding-right: 30%; }
    .distributors-box-wrapper:has(.box-ralf) .box-ralf-image img { width: 100%; }
}

@media (max-width:767px) {
    .distributors-country-wrapper label { font-size: 1.5rem; }
    .distributors-country-wrapper .select-wrapper { height: 40px; width: 80%; }
    .distributors-country-wrapper .select-wrapper::after { font-size: 1.1rem; }
    .distributors-country-wrapper select { font-size: 1.2rem; }
    .distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-container { grid-template-columns: repeat(3, 1fr); }
    .distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-text { padding-right: unset; }
    .distributors-specifications-container td { padding-block: 10px; }
    .distributors-specifications-container th { margin-right: -20px; font-size: 1.5rem; width: fit-content; background-color: var(--senary-color); line-height: 1; padding: 2px 20px; transform: translateX(-40px); align-self: start; color: #FFF; border-top-right-radius: 50px; border-bottom-right-radius: 50px; position: relative; }
    .distributors-specifications-container th:before { position: absolute; content: ''; bottom: -9px; left: 0; z-index: 9999; background: linear-gradient(45deg, transparent, transparent 50%, var(--septenary-color) 50%, var(--septenary-color) 1px); width: 9px; height: 9px; }
}

@media (max-width:640px) {
    .distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width:480px) {
    .brand-distributors-wrapper { font-size: 1.3rem; line-height: 1.8rem; }
    .distributors-specifications-title { font-size: 1.8rem; line-height: 2.3rem; }
    .distributors-specifications-wrapper { width: 100%; }
    .distributors-country-wrapper { padding: 15px 20px; }
    .distributors-box-wrapper { padding: 20px; }
    .distributors-specifications-container th { margin-right: 0; padding: 4px 30px; transform: translateX(-30px); }
    .distributors-specifications-container tr { display: flex; flex-direction: column; }
    .distributors-specifications-container tr:last-child td { padding-bottom: 0; }
    .distributors-specifications-container a { margin-right: 0; }
    .distributors-country-wrapper .select-wrapper { width: 100%; margin-inline: var(--global-padding-inline); }
    .distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-container { grid-template-columns: repeat(1, 1fr); grid-template-rows: repeat(2, auto); }
    .distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-title { margin-inline: auto; }
    .distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-text { grid-row: 2; grid-column: unset; text-align: center; }
    .distributors-box-wrapper:has(.box-ralf) .box-ralf .box-ralf-image img { width: 60%; margin-inline: auto; }
}
