.config {
    border-radius: var(--br);
    border: 2px solid var(--dark);
    overflow: hidden;
    font-family: inherit;
}

.config-select{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #fcfbfb;
    overflow: hidden;
    padding: 40px;
    justify-content: space-between;
    box-shadow: var(--bs);
}

.config-select select {
    padding: 10px 20px;
    border: none;
    border-radius: var(--br);
    box-shadow: var(--bs);
    width: 100%;
}

.config-image {
    margin: unset;
}

.config-title {
    font-weight: 900;
    font-size: 40px;
    color: var(--primary);
}

.config-wrapper {
    background: #eeeeee;
    overflow: hidden;
    box-shadow: 0px 0px 20px -10px black inset;
    position: relative;
}

.config-wrapper:before {
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    box-shadow: 0px 0px 20px -5px black inset;
    z-index: 2;
    pointer-events: none;
}

.config-tabs {
    border-radius: 0px;
}

.config-tabs > h3.ui-state-active {
    background-color: var(--accent)!important;
}

.config .config-tabs > h3 {
    border: none;
    border-radius: 0px;
    margin: unset!important;
    padding: 1rem!important;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    border-top: 1px solid #d7d7d7;
    background-color: #eeeeee;
}

.config-tabs .ui-accordion-header:last-of-type {
    border-bottom: none;
}

.config-tabs > h3 strong {
    color: var(--primary);
    margin-right: 10px;
    font-weight: bold;
}

.config-tabs > h3.ui-state-active strong {
    color: white;
}

.config-tabs > h3 > span {
    all: unset;
    font-weight: 600;
    font-size: 14px;
}

.config-tab{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 55px 25px;
    border: none;
    background-color: #dadada;
    box-shadow: 0px 0px 20px -5px black inset;
}

.config-column{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: stretch;
    gap: 10px;
}

.config-column img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background-color: white;
    padding: 1rem;
    border-radius: var(--br);
}

.config-column h6 {
    font-weight: bold;
}

.config-column > div {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    flex-direction: column;
    text-align: left;
}

[data-field-id] {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    justify-content: center;
    max-width: 250px;
}

[data-field-id]::before {
    content: "";
    background: white;
    width: 17px;
    height: 17px;
    min-width: 17px;
    min-height: 17px;
    border-radius: 3px;
    position: relative;
    display: block;
    color: #6369f6;
    font-size: 16px;
}

.selected[data-field-id]::before {
    content: "✔";
}

.config-column-style-2 div[data-field-id]::before{
    content: unset!important;
}

.config-column-style-2:has(> img.selected) img{
    box-shadow: 0px 0px 20px -5px var(--accent);
}

.config-column-style-2 > div{
    max-width: 200px;
    font-size: 12px;
}

/* .config-footer{
    display: flex;
    justify-content: stretch;
    gap: 10px;
    background: rgb(74,74,74);
    color: white;
    flex-wrap: wrap;
    z-index: 10;
    position: relative;
    box-shadow: 0px 0px 20px -5px black;
} */

.config-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: stretch;
    gap: 10px;
    z-index: 10;;
    flex-wrap: nowrap;
    height: 50px;
}

.config-code {
    font-weight: bold;
    padding: 10px;
}

.config-next, .config-ask, .config-prev{
    border: none;
    border-radius: var(--br);
    font-size: 16px;
    padding: 10px 30px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0px 0px 20px -5px black;
}

.config-prev {
    display: none;
    background-color: #b7b7b7;
    color: white;
}

.config-next {
    background-color: #6369f6;
    min-width: 160px;
}

.config-ask{
    display: none;
    background-color: #6369f6;
}

.config-ask:hover, .config-next:hover{
    background-color: #7377f9;
}

.config-prev:hover{
    background-color: #c5c5c5;
}

#wersje_opcjonalne_data{
    justify-content: flex-start;
    gap: 10px 35px;
}

#wersje_opcjonalne_data .config-column img{
    width: 80px;
    height: 80px;
    padding: 10px;
}

.wersje_dodatkowe_info {
    margin-top: 40px;
    display: none;
    flex-basis: 100%; 
    padding: 30px; 
    font-weight: 500;
    background: rgb(74,74,74);
    color: white;
    border-radius: var(--br);
    font-size: 12px;
    font-family: inherit;
    gap: 20px;
}

.wersje_dodatkowe_info img {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

#podsumowanie {
    background: rgb(74,74,74)!important;
    color: white!important;
    font-weight: 900!important;
    padding: 10px!important;
    justify-content: flex-end;
}

#podsumowanie_data {
    display: block;
    background: #4a4a4a!important;
}

#podsumowanie_form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#podsumowanie_form input, #podsumowanie_form button[type="submit"], #podsumowanie_form select,#podsumowanie_form textarea, #ilosc_opraw_wrapper{
    background: white;
    padding: 15px 20px;
    border: none;
    font-family: inherit;
    border-radius: 6px;
    width: 100%;
    box-shadow: 0px 0px 20px -5px black inset;
}

#podsumowanie_form textarea {
    min-height: 150px;
}

#podsumowanie_form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: white;
}

#podsumowanie_form label span {
    color: red;
}

#podsumowanie_form h3, #podsumowanie_form h4, #podsumowanie_form h5 {
    color: white;
    font-weight: bold;
    text-align: center;
}

#podsumowanie_form h3 {
    font-weight: 500;
}

#podsumowanie_form h4 {
    font-weight: 800;
}

#podsumowanie_form button[type="submit"] {
    background-color: var(--primary);
    color: white;
}

#form_message {
    text-align: center;
    padding: 10px;
    margin-bottom: 50px;
}

#ilosc_opraw_wrapper {
    width: 200px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin: auto;
}

#ilosc_opraw_wrapper > input {
    background: none;
    box-shadow: none;
    text-align: center;
    padding: 5px;
}

#ilosc_opraw_wrapper > input::-webkit-outer-spin-button,
#ilosc_opraw_wrapper > input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#ilosc_opraw_wrapper > input[type=number] {
  -moz-appearance: textfield;
}

#ilosc_opraw_wrapper > button {
    color: var(--primary);
    font-size: 24px;
    background-color: transparent;
    border: none;
    font-weight: 200;
    cursor: pointer;
    font-family: "ETmodules";
}

.config-help {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.config-help > div {
    display: flex;
    flex: 1;
    gap: 20px;
    padding: 20px;
    border-radius: var(--br);
    background-color: #4a4a4a;
    align-items: center;
    font-size: 12px;
    line-height: 18px;
    color: white;
    font-weight: 500;
}

.config-help img {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

.chevron-down {
    font-family: 'Etmodules';
    color: var(--primary);
}

.nopaddings {
    padding: 0px!important;
}

.nopaddings {
    padding: 0px!important;
}

/* PDF Download Section */
.pdf-download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    padding: 40px 20px;
    border-radius: var(--br);
    min-height: 300px;
}

.pdf-download-section h3 {
    color: #3c3c3c;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.config-download-pdf {
    background: var(--primary);
    color: white!important;
    border: none;
    border-radius: var(--br);
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.config-download-pdf:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pdf-separator {
    width: 80%;
    max-width: 400px;
    border: none;
    border-top: 2px solid #ccc;
    margin: 20px 0;
}

.pdf-continue-text {
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
}

#karta_produktu_data {
    background: linear-gradient(135deg, #f9f9f9 0%, #eeeeee 100%);
}

/* Wykluczenia opcji (macierz wykluczeń) */
[data-field-id].excluded-option {
    opacity: 0.35;
    filter: grayscale(1);
    cursor: not-allowed;
}

[data-field-id].excluded-option.selected {
    /* na wypadek gdyby coś było zaznaczone zanim stało się wykluczone */
    outline: 2px dashed #d33;
    outline-offset: 2px;
}

.exclusion-tooltip {
    display: none;
    position: absolute;
    background: #2b2b2b;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0px 4px 12px -4px black;
}

@media screen and (max-width: 1024px) {
    .config {
        flex-direction: column-reverse;
    }

    .config-select {
        max-width: 100%;
    }

    .config-code {
        flex-basis: 100%;
    }
}