.pcd-root,
.pcd-root *,
.pcd-root *::before,
.pcd-root *::after {
    box-sizing: border-box;
}

.pcd-root {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    pointer-events: none;
    font-family: inherit;
    color: #151515;
}

.pcd-root.is-open {
    pointer-events: none;
}

body.pcd-open .elementor-menu-cart__container,
body.pcd-open .widget_shopping_cart_content.is-open,
body.pcd-open .xoo-wsc-modal,
body.pcd-open .xoo-wsc-container {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.pcd-drawer {
    pointer-events: auto;
    position: absolute;
    top: 0;
    right: 0;
    width: min(470px, 100vw);
    height: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    outline: none;
    border-left: 1px solid rgba(20, 20, 20, .06);
    background: #fff;
    box-shadow: -28px 0 72px rgba(20, 20, 20, .15);
    transform: translate3d(102%, 0, 0);
    transition: transform .32s cubic-bezier(.22, .8, .24, 1);
}

.pcd-root.is-open .pcd-drawer {
    transform: translate3d(0, 0, 0);
}

.pcd-drawer__content {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pcd-header {
    flex: 0 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid #ece8e6;
    background: #fff;
}

.pcd-header__title-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pcd-header__title {
    margin: 0;
    padding: 0;
    color: #151515;
    font-family: inherit;
    font-size: 23px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.02em;
}

.pcd-count {
    min-width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--pcd-hover, #f6e1d3);
    color: #151515;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.pcd-close,
.pcd-remove,
.pcd-qty__button,
.pcd-clear {
    font: inherit;
}

.pcd-close {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #151515;
    cursor: pointer;
    transition: background-color .18s ease;
}

.pcd-close:hover,
.pcd-close:focus-visible {
    background: var(--pcd-hover, #f6e1d3);
}

.pcd-close svg,
.pcd-remove svg,
.pcd-added__icon svg,
.pcd-shipping__heart svg,
.pcd-benefit__icon svg,
.pcd-empty__mark svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pcd-close svg {
    width: 21px;
    height: 21px;
}

.pcd-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 0 24px 20px;
}

.pcd-added {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 16px 0 0;
    padding: 11px 12px;
    border-radius: 10px;
    background: #fff3f6;
    color: #7d2442;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 650;
}

.pcd-added__icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--pcd-primary, #f24e7f);
    color: #fff;
}

.pcd-added__icon svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}

.pcd-shipping {
    margin: 16px 0 2px;
    padding: 0 0 14px;
    border-bottom: 1px solid #f0ecea;
}

.pcd-shipping__copy {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #262326;
    font-size: 12px;
    line-height: 1.4;
}

.pcd-shipping__copy strong {
    font-weight: 700;
}

.pcd-shipping__heart {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pcd-primary, #f24e7f);
}

.pcd-shipping__heart svg {
    width: 17px;
    height: 17px;
}

.pcd-progress {
    position: relative;
    height: 5px;
    overflow: hidden;
    border-radius: 99px;
    background: #f6c7d5;
}

.pcd-progress > span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: var(--pcd-primary, #f24e7f);
    transition: width .3s ease;
}

.pcd-items {
    display: flex;
    flex-direction: column;
}

.pcd-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #ece8e6;
}

.pcd-item__image {
    width: 82px;
    height: 100px;
    display: block;
    overflow: hidden;
    border-radius: 9px;
    background: #f6f3f1;
}

.pcd-item__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pcd-item__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.pcd-item__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 8px;
    align-items: start;
}

.pcd-item__copy {
    min-width: 0;
}

.pcd-item__name {
    display: block;
    margin: 0;
    color: #151515;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.pcd-item__name:hover,
.pcd-item__name:focus-visible {
    color: var(--pcd-primary, #f24e7f);
}

.pcd-item__meta,
.pcd-item__meta dl,
.pcd-item__meta p {
    margin: 5px 0 0;
    color: #8a8588;
    font-size: 11px;
    line-height: 1.45;
}

.pcd-item__meta dt,
.pcd-item__meta dd {
    display: inline;
    float: none;
    margin: 0 4px 0 0;
}

.pcd-remove {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #8c878a;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}

.pcd-remove:hover,
.pcd-remove:focus-visible {
    color: #151515;
    background: var(--pcd-hover, #f6e1d3);
}

.pcd-remove svg {
    width: 17px;
    height: 17px;
}

.pcd-item__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pcd-qty {
    height: 34px;
    display: inline-grid;
    grid-template-columns: 33px 34px 33px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #ded9d6;
    border-radius: 8px;
    background: #fff;
}

.pcd-qty__button {
    width: 33px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #151515;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.pcd-qty__button:hover,
.pcd-qty__button:focus-visible {
    background: var(--pcd-hover, #f6e1d3);
}

.pcd-qty__input {
    width: 34px !important;
    height: 32px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #151515;
    text-align: center;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    appearance: textfield;
}

.pcd-qty__input::-webkit-outer-spin-button,
.pcd-qty__input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.pcd-item__price {
    color: #151515;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.pcd-summary {
    flex: 0 0 auto;
    padding: 18px 24px max(20px, env(safe-area-inset-bottom));
    border-top: 1px solid #ece8e6;
    background: #fff;
    box-shadow: 0 -12px 28px rgba(24, 24, 27, .03);
}

.pcd-summary__rows {
    margin-bottom: 16px;
}

.pcd-summary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    color: #151515;
}

.pcd-summary__row--small {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.35;
}

.pcd-summary__row--small span {
    color: #555055;
}

.pcd-summary__row--small strong {
    font-weight: 650;
}

.pcd-summary__shipping {
    color: var(--pcd-primary, #f24e7f);
}

.pcd-summary__divider {
    height: 1px;
    margin: 14px 0;
    background: #ece8e6;
}

.pcd-summary__row--total {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.pcd-summary__row--total strong {
    color: var(--pcd-primary, #f24e7f);
    font-size: 20px;
    font-weight: 750;
}

.pcd-checkout {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 10px;
    text-decoration: none !important;
    text-align: center;
    font-family: inherit;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.pcd-checkout {
    border: 1px solid var(--pcd-primary, #f24e7f);
    background: var(--pcd-primary, #f24e7f);
    color: #fff !important;
}

.pcd-checkout:hover,
.pcd-checkout:focus-visible {
    border-color: var(--pcd-hover, #f6e1d3);
    background: var(--pcd-hover, #f6e1d3);
    color: var(--pcd-primary, #f24e7f) !important;
}


.pcd-clear {
    width: 100%;
    min-height: 48px;
    margin: 10px 0 0;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eadfe3;
    border-radius: 10px;
    background: #fff8fa;
    color: #6f6268;
    box-shadow: none;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.pcd-clear:hover,
.pcd-clear:focus-visible {
    border-color: var(--pcd-hover, #f6e1d3);
    background: var(--pcd-hover, #f6e1d3);
    color: var(--pcd-primary, #f24e7f);
    outline: none;
}

.pcd-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #ece8e6;
}

.pcd-benefit {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.pcd-benefit--link {
    border-radius: 10px;
    color: inherit !important;
    text-decoration: none !important;
    transition: background-color .18s ease;
}

.pcd-benefit--link:hover,
.pcd-benefit--link:focus-visible {
    background: #fff6f8;
    outline: none;
}


.pcd-benefit__icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #151515;
}

.pcd-benefit__icon svg {
    width: 22px;
    height: 22px;
}

.pcd-benefit > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pcd-benefit strong {
    color: #151515;
    font-size: 10px;
    line-height: 1.25;
    font-weight: 700;
}

.pcd-benefit small {
    max-width: 100px;
    color: #8a8588;
    font-size: 8px;
    line-height: 1.3;
}

.pcd-empty {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 28px 72px;
    text-align: center;
}

.pcd-empty__mark {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--pcd-hover, #f6e1d3);
    color: var(--pcd-primary, #f24e7f);
}

.pcd-empty__mark svg {
    width: 42px;
    height: 42px;
}

.pcd-empty h3 {
    margin: 0;
    color: #151515;
    font-family: inherit;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.02em;
}

.pcd-empty p {
    max-width: 300px;
    margin: 10px 0 22px;
    color: #777177;
    font-size: 13px;
    line-height: 1.55;
}

.pcd-empty .pcd-checkout {
    max-width: 290px;
}

.pcd-root.is-loading .pcd-drawer__content {
    opacity: .58;
    pointer-events: none;
}

.pcd-root.is-loading .pcd-drawer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid rgba(242, 78, 127, .18);
    border-top-color: var(--pcd-primary, #f24e7f);
    border-radius: 50%;
    animation: pcd-spin .65s linear infinite;
}

.pcd-external-trigger {
    font: inherit;
}

.pcd-external-count {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--pcd-primary, #f24e7f);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

@keyframes pcd-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .pcd-drawer {
        width: 100vw;
        border-left: 0;
        box-shadow: none;
    }

    .pcd-header {
        min-height: 68px;
        padding: 14px 16px;
    }

    .pcd-header__title {
        font-size: 21px;
    }

    .pcd-scroll {
        padding: 0 16px 16px;
    }

    .pcd-summary {
        padding: 14px 16px max(16px, env(safe-area-inset-bottom));
    }

    .pcd-item {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 0;
    }

    .pcd-item__image {
        width: 72px;
        height: 90px;
        border-radius: 8px;
    }

    .pcd-checkout {
        min-height: 50px;
    }

    .pcd-benefits {
        gap: 7px;
    }

    .pcd-benefit strong {
        font-size: 9px;
    }

    .pcd-benefit small {
        font-size: 7px;
    }
}

@media (max-width: 370px) {
    .pcd-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .pcd-item__image {
        width: 64px;
        height: 82px;
    }

    .pcd-qty {
        grid-template-columns: 30px 31px 30px;
    }

    .pcd-qty__button {
        width: 30px;
    }

    .pcd-qty__input {
        width: 31px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pcd-drawer,
    .pcd-progress > span {
        transition: none !important;
    }

    .pcd-root.is-loading .pcd-drawer::after {
        animation: none;
    }
}

@media (max-height: 690px) and (max-width: 600px) {
    .pcd-benefit small {
        display: none;
    }

    .pcd-benefits {
        margin-top: 12px;
        padding-top: 12px;
    }

    .pcd-clear {
        margin-top: 7px;
    }
}

/* Floating cart trigger */
.pcd-floating-cart,
.pcd-floating-cart *,
.pcd-floating-cart *::before,
.pcd-floating-cart *::after {
    box-sizing: border-box;
}

.pcd-floating-cart {
    position: fixed !important;
    right: max(24px, env(safe-area-inset-right)) !important;
    bottom: max(24px, env(safe-area-inset-bottom)) !important;
    z-index: 9999998 !important;
    width: 64px !important;
    min-width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: var(--pcd-primary, #f24e7f) !important;
    box-shadow: 0 12px 30px rgba(43, 29, 34, .18) !important;
    color: #fff !important;
    font: inherit !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transform: rotate(45deg) !important;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
    -webkit-tap-highlight-color: transparent;
}

.pcd-floating-cart:hover,
.pcd-floating-cart:focus-visible {
    background: var(--pcd-hover, #f6e1d3) !important;
    color: var(--pcd-primary, #f24e7f) !important;
    box-shadow: 0 14px 34px rgba(43, 29, 34, .22) !important;
    transform: rotate(45deg) scale(1.04) !important;
    outline: none !important;
}

.pcd-floating-cart__icon {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
}

.pcd-floating-cart__icon svg {
    width: 25px;
    height: 25px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pcd-floating-cart__count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(25, 20, 22, .13);
    color: #151515;
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
    font-weight: 750;
    transform: rotate(-45deg);
}

.pcd-floating-cart__count.is-empty {
    display: none;
}

@media (max-width: 600px) {
    .pcd-floating-cart {
        right: max(14px, env(safe-area-inset-right)) !important;
        bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px)) !important;
        width: 56px !important;
        min-width: 56px !important;
        height: 56px !important;
        min-height: 56px !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 26px rgba(43, 29, 34, .17) !important;
    }

    .pcd-floating-cart__icon,
    .pcd-floating-cart__icon svg {
        width: 22px;
        height: 22px;
    }

    .pcd-floating-cart__count {
        top: -6px;
        right: -6px;
        min-width: 23px;
        height: 23px;
        padding: 0 6px;
        border-width: 2px;
        font-size: 10px;
    }
}

@media (max-width: 370px) {
    .pcd-floating-cart {
        right: max(12px, env(safe-area-inset-right)) !important;
        bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px)) !important;
        width: 52px !important;
        min-width: 52px !important;
        height: 52px !important;
        min-height: 52px !important;
        border-radius: 17px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pcd-floating-cart {
        transition: none !important;
    }
}



/* 1.1.5: dostawa nie jest częścią wartości koszyka przed checkoutem */
.pcd-summary__delivery-note {
    margin: 8px 0 0;
    color: rgba(24, 18, 22, .58);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .pcd-summary__delivery-note {
        margin-top: 7px;
        font-size: 11.5px;
    }
}
