#pco_widget.pco-widget {
    margin: 0;
}

#pco_widget .conditionally-hidden,
#pco_widget .pco-dependency-value-hidden,
.pl-pco-lead-time[hidden] {
    display: none !important;
}

#pco_widget .pco-dependency-row-hidden {
    display: none !important;
}

#pco_widget .pco-dependency-row-transitioning {
    box-sizing: border-box;
    overflow: hidden;
    min-height: 0;
    transition: height 0.24s ease, padding 0.24s ease, opacity 0.18s ease;
}

.pco-widget__lead-time:not(.pco-widget__purchase-delivery) {
    display: none;
}

.pco-widget__lead-time.pco-widget__purchase-delivery[hidden] {
    display: none;
}

.pl-pco-lead-time {
    display: block;
}

.pl-pco-options-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    column-gap: 40px;
    align-items: start;
    background: #f3f3f3;
    border-radius: 12px;
    padding: 40px 36px 48px;
}

.pl-pco-options-anchor {
    grid-column: 1 / -1;
}

#pco-ce.pl-pco-options,
#pco_widget.pco-widget,
#pco_widget .pco-widget__panel,
#pco_widget .options,
#pco_widget .pco-steps,
#pco_widget .pco-step-body {
    display: contents;
}

#pco_widget .pco-widget__panel {
    background: none;
    border-radius: 0;
    padding: 0;
}

#pco_widget .pco-widget__title {
    display: none;
}

#pco_widget .pco-steps__back,
#pco_widget .btn-pco-configurator-previous,
#pco_widget .pco-step-footer {
    display: none;
}

#pco_widget .pco-step,
#pco_widget .pco-step.hidden,
#pco_widget .pco-step.active {
    display: contents !important;
}

#pco_widget .pco-step + .pco-step {
    margin-top: 40px;
}

#pco_widget .pco-step-title {
    margin: 0 0 16px;
    color: #0a0a0a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

#pco_widget .pco-step:has(.pco-option-wrapper[data-required="1"]) .pco-step-title::after {
    content: "*";
    margin-left: 0.2em;
    color: #bf1212;
}

#pco_widget .pco-step-description {
    margin: 0 0 16px;
    font-size: 14px;
}

#pco_widget .pco-option-wrapper {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    padding: 24px 0;
}

#pco_widget .pco-option-wrapper.pco-option-has-separator {
    border-top: 1px solid #e4e4e4;
}

#pco_widget .pco-option-wrapper.pco-option-first-visible {
    padding-top: 0;
}

#pco_widget .pco-option-wrapper.pco-option-last-visible {
    grid-column: 1;
    padding-bottom: 0;
}

#pco_widget .label-option {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    color: #0a0a0a;
    font-size: 16px;
    font-weight: 700;
}

#pco_widget .label-option .price-impact-badge {
    display: none;
}

#pco_widget .pco-required {
    margin-left: 0.2em;
    color: #bf1212;
}

#pco_widget .configurator-option-error {
    display: none;
    margin: 18px 0 4px;
    color: #bf1212;
    font-size: 13px;
    line-height: 1.4;
    min-height: 1.4em;
}

#pco_widget .pco-option-wrapper[data-required="1"] > .configurator-option-error {
    display: block;
    visibility: hidden;
}

#pco_widget .pco-option-wrapper.is-invalid > .configurator-option-error,
#pco_widget .configurator-option-error.is-visible {
    display: block;
    visibility: visible;
}

#pco_widget .price-impact-badge {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
}

#pco_widget .pco-option-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#pco_widget .pco-option-images .pco-image {
    position: relative;
    width: 155px;
    flex: 0 0 155px;
    text-align: left;
}

#pco_widget .pco-image-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

#pco_widget .pco-image-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

#pco_widget .pco-image.selected .pco-image-card,
#pco_widget .pco-image-card:has(input:checked) {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

#pco_widget .pco-image-wrapper {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #e5e5e5;
    border-radius: 12px 12px 0 0;
}

#pco_widget .pco-option-images .pco-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    pointer-events: none;
    cursor: default;
    border: 0;
    box-shadow: none;
    transform: none;
}

#pco_widget .pco-option-images .pco-image img.active {
    position: static;
    transform: none;
    box-shadow: none;
}

#pco_widget .pco-image-zoom {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    color: #0a0a0a;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    cursor: pointer;
}

#pco_widget .pco-image-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    padding: 8px 8px 10px;
}

#pco_widget .pco-image-name,
#pco_widget .pco-image-price {
    color: #0a0a0a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
}

#pco_widget .pco-image.selected .pco-image-name,
#pco_widget .pco-image.selected .pco-image-price,
#pco_widget .pco-image-card:has(input:checked) .pco-image-name,
#pco_widget .pco-image-card:has(input:checked) .pco-image-price {
    font-weight: 700;
}

#pco_widget .pco-image-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

#pco_widget .pco-option-radio,
#pco_widget .pco-option-checkboxes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

#pco_widget .pco-option-radio .pco-option-value-wrapper,
#pco_widget .pco-option-checkboxes .pco-option-value-wrapper {
    display: flex;
    margin: 0;
    min-width: 0;
    width: auto;
}

#pco_widget .pco-option-radio input,
#pco_widget .pco-option-checkboxes input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

#pco_widget .pco-option-radio label,
#pco_widget .pco-option-checkboxes label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 20px 16px;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

#pco_widget .pco-option-radio label:hover,
#pco_widget .pco-option-checkboxes label:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

#pco_widget .pco-option-radio input:checked + label,
#pco_widget .pco-option-checkboxes input:checked + label {
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

#pco_widget .pco-option-price {
    font-weight: 700;
    white-space: nowrap;
}

#pco_widget .pco-option-colors {
    gap: 12px;
}

#pco_widget .pco-option-colors .pco-option-color-wrapper {
    width: auto;
    min-width: 72px;
}

#pco_widget .pco-option-colors .swatch {
    box-shadow: none;
    border: 1px solid #e5e5e5;
}

#pco_widget .pco-option-colors .pco-color.selected .swatch {
    border-color: #0a0a0a;
}

#pco_widget .pco-option-dropdown .form-control,
#pco_widget .pco-option-textbox textarea,
#pco_widget .pco-option-date input {
    border: 1px solid #0a0a0a;
    border-radius: 12px;
}

#pco_widget .pco-step-footer .btn {
    width: 100%;
    border-radius: 12px;
}

.pco-widget__purchase {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    grid-column: 2;
    align-self: end;
    width: 100%;
    margin: 0;
    padding: 28px 24px 24px;
    background: #fff;
    border-radius: 12px;
    text-align: right;
}

.pco-widget__purchase-label {
    width: 100%;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: right;
}

.pco-widget__purchase-price {
    width: 100%;
    margin: 0;
    color: #c41212;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    text-align: right;
}

.pco-widget__purchase-delivery {
    width: 100%;
    margin: 0;
    padding: 10px 0 0;
    border-top: 1px solid #ececec;
    color: #5c5c5c;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
}

.pco-widget__purchase .elementor-widget-product-add-to-cart,
.pco-widget__purchase .elementor-widget-product-add-to-cart .elementor-widget-container,
.pco-widget__purchase .elementor-widget-product-quantity {
    width: 100%;
    text-align: right;
}

.pco-widget__purchase .ce-product-quantity {
    justify-content: flex-end;
}

.pco-widget__purchase .elementor-button {
    width: 100%;
    justify-content: center;
    color: #0a0a0a !important;
    background: #fff !important;
    border: 1px solid #0a0a0a !important;
    border-radius: 10px;
    box-shadow: none !important;
}

.pco-widget__purchase .elementor-button.disabled,
.pco-widget__purchase .elementor-button[aria-disabled="true"] {
    opacity: 0.45;
}

.pco-widget__purchase-noreturn {
    display: none;
}

.pco-widget__purchase .pco-widget__purchase-noreturn {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #0a0a0a;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
}

.pco-widget__purchase-noreturn-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    background: url('../img/ikona-zwrotu.png') center / contain no-repeat;
}

.pco-widget__purchase-noreturn-text {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 991px) {
    .pl-pco-options-wrapper {
        grid-template-columns: minmax(0, 1fr);
        padding: 28px 20px 32px;
    }

    .pco-widget__purchase {
        grid-column: 1;
        margin-top: 32px;
    }

    #pco_widget .pco-option-radio,
    #pco_widget .pco-option-checkboxes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    #pco_widget .pco-dependency-row-transitioning {
        transition-duration: 0.01ms;
    }
}
