.p4u-search-container {
    width: 100%;
    padding: 0px;
    max-width: 475px;
    margin-left: 20px;
    min-height: 500px;
    display: inline-block;
}

.p4u-search-box {
    background: linear-gradient(to bottom, #9974e6, #1d0a4a);
    border: 0px;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.p4u-search-title {
    font-size: 35px;
    font-weight: 500;
    color: #ffffff;
    text-align: left;
    margin: 0 0 40px 0;
}

.p4u-search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    width: 100%;
}

.p4u-search-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 2, 15, 0.6);
    border-radius: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.p4u-search-loader.active {
    display: flex;
}

.p4u-search-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: p4u-spin 1s linear infinite;
}

.p4u-search-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.p4u-select-wrapper {
    position: relative;
    width: 100%;
}

#p4u_dynamic_selects {
    display: none;
}

.p4u-select-wrapper.p4u-loading .p4u-select-display {
    color: #cfc6e6;
}

.p4u-select-wrapper.p4u-loading .p4u-select-display::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: p4u-spin 0.8s linear infinite;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

.p4u-select-wrapper.p4u-loading .p4u-select-arrow {
    opacity: 0.4;
    pointer-events: none;
}

.p4u-custom-select {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.p4u-select-display {
    width: 100%;
    padding: 15px 45px 15px 20px;
    font-size: 16px;
    border: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-radius: 10px;
    background-color: #ffffff;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    line-height: 1;
}

.p4u-select-display:focus {
    outline: none;
    border-color: #9974e6;
    box-shadow: 0 0 10px rgba(153, 116, 230, 0.5);
}

.p4u-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 10px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    color: #B1B1B1;
}

.p4u-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.p4u-option:last-child {
    border-bottom: none;
}

.p4u-option:hover {
    background-color: rgba(153, 116, 230, 0.1);
}

.p4u-option.selected {
    background-color: rgba(153, 116, 230, 0.2);
    font-weight: bold;
}

.p4u-select-arrow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    border: none;
    background: url('/themes/hummingbird/assets/img-dist/right_search_str.svg') no-repeat center center;
    background-size: 12px 6px;
    font-size: 0; /* ukrywa znak ▼ */
    color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
    border-left: 1px solid #fff;
}

.p4u-select-arrow:hover {
    background-color: none;
    color: #9974e6;
}

.p4u-search-select:focus {
    outline: none;
    border-color: #9974e6;
    box-shadow: 0 0 10px rgba(153, 116, 230, 0.5);
}

.p4u-search-select option {
    color: #333;
}

.p4u-search-button {
    padding: 15px 50px 15px 30px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #FFF;
    background-color: #9C77EA;
    border: 0px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    position: relative;
}

.p4u-search-button:after {
    background: #1D0A4A url('/themes/hummingbird/assets/img-dist/button_bg.svg') center center no-repeat;
    border-radius: 50%;
    content: "";
    width: 3em;
    height: 3em;
    display: inline-block;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
}

.p4u-search-button:hover {
    color: #000;
}

.p4u-search-results {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 0;
}

.p4u-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.p4u-results-row {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
}
.p4u-product-row {
    border: 1px solid #000;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    align-items: stretch;
}

.p4u-results-custom {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
}

.p4u-customization-question {
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: #0C023D;
    margin-bottom: 10px;
}

.p4u-customization-radios label {
    margin-right: 15px;
    font-weight: 400;
    cursor: pointer;
}

.p4u-customization-form {
    margin-top: 15px;
    display: none;
}

.p4u-customization-form.active {
    display: block;
}

.p4u-customization-subquestion {
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: #0C023D;
    margin-bottom: 1em;
    margin-top: 1em;
}

.p4u-size-form {
    display: none;
    margin-top: 15px;
}

.p4u-size-form.active {
    display: block;
}

.p4u-size-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p4u-size-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.p4u-size-field {
    flex: 1;
}

.p4u-size-field--short {
    flex: 0 0 140px;
}

.p4u-size-field--value {
    flex: 0 0 160px;
}

.p4u-size-field select,
.p4u-size-field input {
    border-radius: 8px;
}

.p4u-size-row-add,
.p4u-size-row-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #9C77EA;
    background: transparent;
    color: #9C77EA;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.p4u-size-row-remove {
    border-color: #ff5b5b;
    color: #ff5b5b;
}

.p4u-size-row-add.hidden,
.p4u-size-row-remove.hidden {
    display: none !important;
}

.p4u-customization-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.p4u-customization-option {
    border-radius: 20px;
    border-color: #ddd;
    color: #555;
}

.p4u-customization-option.selected {
    background-color: #9C77EA;
    border-color: #9C77EA;
    color: #fff;
}

.p4u-piano-radios label,
.p4u-size-radios label {
    margin-right: 15px;
    font-weight: 400;
    cursor: pointer;
}

.p4u-customization-textarea {
    width: 100%;
    border: 1px solid #000;
    border-radius: 8px;
    padding: 10px;
    resize: vertical;
    min-height: 9em;
}

.p4u-results-col {
    padding: 60px 15px;
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.p4u-product-row .p4u-results-col:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 1px;
    background: #000;
}

.p4u-results-col-image {
    flex: 1 1 190px;
    text-align: center;
}

.p4u-results-col-image img {
    border-radius: 8px;
    width: 100%;
}

.p4u-results-placeholder {
    width: 120px;
    height: 80px;
    border: 1px dashed #cfcfcf;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.p4u-results-col-info {
    flex: 1 1 180px;
}

.p4u-results-title {
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: #000000;


}

.p4u-results-remark {
    color: #555;
    font-size: 14px;
}

.p4u-results-col-price {
    flex: 0 0 180px;
}

.p4u-results-price-label {
    font-size: 13px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 5px;
}

.p4u-results-price-value {
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    text-align: right;
    color: #000000;
}
.p4u-results-price-value-netto {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    text-align: right;
    color: #ACACAC;
}

.p4u-results-area {
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    text-align: right;
    color: #000000;
}

.p4u-results-col-action {
    flex: 0 0 220px;
    text-align: right;
}
.p4u-custom-select .p4u-option {
    text-align: left;
    color: #000;
}
.p4u-results-add-to-cart {
    min-width: 150px;
    border-radius: 25px;
    background-color: #9C77EA;
    border-color: #9C77EA;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.p4u-results-add-to-cart:hover {
    background-color: #7a5bc0;
    border-color: #7a5bc0;
}

.p4u-add-to-cart-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: p4u-spin 0.8s linear infinite;
    display: none;
}

.p4u-results-add-to-cart.loading .p4u-add-to-cart-spinner {
    display: inline-block;
}

.p4u-results-add-to-cart.loading .p4u-add-to-cart-label {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .p4u-results-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .p4u-results-col-action {
        width: 100%;
        text-align: left;
    }
    .p4u-results-col-image {
        width: 100%;
    }
}

@keyframes p4u-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 992px) {
    .p4u-search-box {
        padding: 40px 30px;
    }
    
    .p4u-search-title {
        font-size: 32px;
    }
    
    .p4u-search-select {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .p4u-search-box {
        padding: 30px 20px;
    }
    
    .p4u-search-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .p4u-search-fields {
        flex-direction: column;
    }
    
    .p4u-search-select {
        width: 100%;
        min-width: 100%;
    }
    
    .p4u-search-button {
        width: 100%;
    }
}

