.yg-cart-page {
    --yg-cart-navy: #062760;
    --yg-cart-blue: #1E70E0;
    --yg-cart-ink: #10243D;
    --yg-cart-text: #66758A;
    --yg-cart-line: #DFE8F2;
    --yg-cart-soft: #F4F8FD;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    color: var(--yg-cart-ink);
    background: #F4F7FB;
}

.yg-cart-page,
.yg-cart-page * {
    box-sizing: border-box;
}

.yg-cart-page a {
    text-decoration: none;
}

.yg-cart-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 58px 0 78px;
    color: #fff;
    background:
        radial-gradient(circle at 6% -65%, rgba(65, 145, 245, .28) 0, transparent 42%),
        radial-gradient(circle at 94% 155%, rgba(30, 112, 224, .18) 0, transparent 38%),
        linear-gradient(112deg, #0e4a99 0%, #0a3778 46%, #062760 100%);
}

.yg-cart-hero::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    opacity: .1;
    background-image: url("../images/ottoman-breadcrumb-monochrome.svg");
    background-repeat: no-repeat;
    background-position: calc(100% + 175px) 50%;
    background-size: 900px 900px;
    -webkit-mask-image: linear-gradient(90deg, transparent 12%, rgba(0, 0, 0, .08) 32%, rgba(0, 0, 0, .42) 62%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 12%, rgba(0, 0, 0, .08) 32%, rgba(0, 0, 0, .42) 62%, #000 100%);
    content: "";
}

.yg-cart-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E70E0 0 36%, rgba(255, 255, 255, .3) 36% 100%);
    content: "";
}

.yg-cart-hero > * {
    position: relative;
    z-index: 1;
}

.yg-cart-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 44px;
    min-width: 0;
}

.yg-cart-hero-copy {
    min-width: 0;
    max-width: 670px;
}

.yg-cart-hero-copy > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.yg-cart-hero-copy > span::before {
    width: 6px;
    height: 6px;
    background: #70C8F1;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(112, 200, 241, .12);
    content: "";
}

.yg-cart-hero h1 {
    margin: 11px 0 10px;
    color: #fff;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 760;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.yg-cart-hero p {
    max-width: 570px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}

.yg-cart-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin: 0 0 4px;
    padding: 0;
    list-style: none;
}

.yg-cart-steps li {
    position: relative;
    display: grid;
    min-width: 92px;
    justify-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .52);
    font-size: 11px;
    font-weight: 700;
}

.yg-cart-steps li:not(:last-child)::after {
    position: absolute;
    top: 16px;
    left: calc(50% + 23px);
    width: calc(100% - 46px);
    height: 1px;
    background: rgba(255, 255, 255, .22);
    content: "";
}

.yg-cart-steps b {
    display: inline-flex;
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    font-size: 12px;
}

.yg-cart-steps .is-active {
    color: #fff;
}

.yg-cart-steps .is-active b {
    color: var(--yg-cart-navy);
    background: #fff;
    border-color: #fff;
}

.yg-cart-content {
    position: relative;
    z-index: 2;
    margin-top: -34px;
    padding: 0 0 92px;
}

.yg-cart-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 410px);
    gap: 28px;
    align-items: start;
    min-width: 0;
}

.yg-cart-list,
.yg-cart-summary,
.yg-cart-empty {
    background: #fff;
    border: 1px solid var(--yg-cart-line);
    border-radius: 22px;
}

.yg-cart-list {
    min-width: 0;
    padding: 28px;
    box-shadow: 0 18px 60px rgba(6, 39, 96, .055);
}

.yg-cart-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.yg-cart-list-head > div > span,
.yg-cart-summary-head > span,
.yg-cart-empty > span:not(.yg-cart-empty-mark) {
    display: block;
    margin-bottom: 5px;
    color: var(--yg-cart-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.yg-cart-list-head h2 {
    margin: 0;
    color: var(--yg-cart-ink);
    font-size: 25px;
    font-weight: 740;
    line-height: 1.2;
}

.yg-cart-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 14px;
    color: #65758A;
    background: #F7F9FC;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    transition: color .2s ease, background .2s ease;
}

.yg-cart-clear:hover {
    color: #B42318;
    background: #FFF0EE;
}

.yg-cart-clear:disabled {
    cursor: wait;
    opacity: .55;
}

.yg-cart-items {
    display: grid;
    gap: 12px;
}

.yg-cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    min-width: 0;
    padding: 14px;
    background: #FBFDFF;
    border: 1px solid #E6EDF5;
    border-radius: 17px;
    transition: opacity .18s ease, transform .18s ease, border-color .2s ease;
}

.yg-cart-item:hover {
    border-color: #CADCEF;
}

.yg-cart-item.is-removing {
    opacity: 0;
    transform: translateX(-10px);
}

.yg-cart-product {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.yg-cart-product-media {
    display: block;
    flex: 0 0 102px;
    width: 102px;
    height: 92px;
    overflow: hidden;
    background: var(--yg-cart-soft);
    border-radius: 13px;
}

.yg-cart-product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

.yg-cart-product-media:hover img {
    transform: scale(1.03);
}

.yg-cart-product-media.is-fallback img {
    padding: 18px;
    object-fit: contain;
}

.yg-cart-product-copy {
    min-width: 0;
}

.yg-cart-category {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--yg-cart-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.yg-cart-product-copy h3 {
    margin: 0;
    color: var(--yg-cart-ink);
    font-size: 16px;
    font-weight: 760;
    line-height: 1.35;
}

.yg-cart-product-copy h3 a {
    color: inherit;
    transition: color .2s ease;
}

.yg-cart-product-copy h3 a:hover {
    color: var(--yg-cart-blue);
}

.yg-cart-product-copy p {
    margin: 8px 0 0;
    color: #8492A5;
    font-size: 11.5px;
    font-weight: 550;
}

.yg-cart-product-copy p strong {
    color: #617085;
    font-weight: 700;
}

.yg-cart-item-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.yg-cart-qty {
    display: grid;
    grid-template-columns: auto 18px;
    gap: 6px;
    align-items: end;
    margin: 0;
}

.yg-cart-control-label,
.yg-cart-line-total > span {
    display: block;
    grid-column: 1 / -1;
    margin-bottom: 5px;
    color: #8A98AA;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.yg-cart-qty-control {
    display: grid;
    grid-template-columns: 34px 42px 34px;
    height: 38px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #DCE7F1;
    border-radius: 10px;
}

.yg-cart-qty-control button,
.yg-cart-qty-control input {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    color: var(--yg-cart-ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-family: inherit;
    text-align: center;
}

.yg-cart-qty-control button {
    color: #617085;
    cursor: pointer;
    font-size: 17px;
    transition: color .2s ease, background .2s ease;
}

.yg-cart-qty-control button:hover {
    color: var(--yg-cart-blue);
    background: #EFF6FF;
}

.yg-cart-qty-control input {
    border-right: 1px solid #E6EDF5;
    border-left: 1px solid #E6EDF5;
    font-size: 13px;
    font-weight: 750;
    appearance: textfield;
}

.yg-cart-qty-control input::-webkit-inner-spin-button,
.yg-cart-qty-control input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.yg-cart-qty-state {
    align-self: center;
    width: 18px;
    height: 18px;
}

.yg-cart-qty-state[data-state="loading"] {
    border: 2px solid #D8E4F0;
    border-top-color: var(--yg-cart-blue);
    border-radius: 50%;
    animation: yg-cart-spin .7s linear infinite;
}

.yg-cart-qty-state[data-state="done"]::before,
.yg-cart-qty-state[data-state="error"]::before {
    font-family: "remixicon";
    font-size: 18px;
    line-height: 1;
}

.yg-cart-qty-state[data-state="done"]::before {
    color: #11875D;
    content: "\eb7b";
}

.yg-cart-qty-state[data-state="error"]::before {
    color: #B42318;
    content: "\eb99";
}

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

.yg-cart-line-total {
    min-width: 92px;
}

.yg-cart-price {
    display: block;
    color: var(--yg-cart-navy);
    font-size: 15px;
    font-weight: 800;
    line-height: 38px;
    white-space: nowrap;
}

.yg-cart-remove {
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    color: #78879A;
    background: #fff;
    border: 1px solid #E2EAF3;
    border-radius: 50%;
    font-size: 16px;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.yg-cart-remove:hover {
    color: #B42318;
    background: #FFF0EE;
    border-color: #FFD6D0;
}

.yg-cart-remove.is-loading {
    opacity: .55;
    pointer-events: none;
}

.yg-cart-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 22px 4px 0;
    color: var(--yg-cart-navy);
    font-size: 13px;
    font-weight: 750;
}

.yg-cart-back i {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: var(--yg-cart-blue);
    background: #EDF5FF;
    border-radius: 50%;
    transition: transform .2s ease;
}

.yg-cart-back:hover i {
    transform: translateX(-3px);
}

.yg-cart-summary {
    position: sticky;
    top: 102px;
    overflow: hidden;
    box-shadow: 0 22px 70px rgba(6, 39, 96, .075);
}

.yg-cart-summary::before {
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--yg-cart-navy) 0 38%, var(--yg-cart-blue) 38% 100%);
    content: "";
}

.yg-cart-summary form {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 28px;
}

.yg-cart-summary-head h2 {
    margin: 0;
    color: var(--yg-cart-ink);
    font-size: 25px;
    font-weight: 760;
    line-height: 1.18;
    letter-spacing: -.02em;
}

.yg-cart-summary-head p {
    margin: 8px 0 0;
    color: var(--yg-cart-text);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.55;
}

.yg-cart-donor-fields {
    display: grid;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid #E7EDF4;
}

.yg-cart-donor-fields legend {
    width: auto;
    margin: 0 0 1px;
    padding: 0;
    color: var(--yg-cart-ink);
    font-size: 12px;
    font-weight: 800;
}

.yg-cart-donor-fields label,
.yg-cart-note {
    display: grid;
    gap: 7px;
    min-width: 0;
    margin: 0;
}

.yg-cart-donor-fields label > span,
.yg-cart-note > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #66758A;
    font-size: 11px;
    font-weight: 750;
}

.yg-cart-note small {
    color: #9AA7B7;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.yg-cart-donor-fields input,
.yg-cart-note textarea {
    width: 100%;
    margin: 0;
    color: var(--yg-cart-ink);
    background: #F9FBFD;
    border: 1px solid #DDE7F1;
    border-radius: 11px;
    outline: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 550;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.yg-cart-donor-fields input {
    height: 46px;
    padding: 0 13px;
}

.yg-cart-note textarea {
    min-height: 88px;
    padding: 12px 13px;
    resize: vertical;
}

.yg-cart-donor-fields input:focus,
.yg-cart-note textarea:focus {
    background: #fff;
    border-color: rgba(30, 112, 224, .55);
    box-shadow: 0 0 0 3px rgba(30, 112, 224, .08);
}

.yg-cart-account-note {
    display: grid;
    gap: 3px;
    padding: 14px;
    background: #F4F8FD;
    border-radius: 12px;
}

.yg-cart-account-note strong {
    color: var(--yg-cart-ink);
    font-size: 13px;
}

.yg-cart-account-note span {
    color: var(--yg-cart-text);
    font-size: 11px;
}

.yg-cart-total-box {
    display: grid;
    gap: 12px;
    padding: 18px 0 0;
    border-top: 1px solid #E7EDF4;
}

.yg-cart-total-box > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--yg-cart-text);
    font-size: 12.5px;
    font-weight: 600;
}

.yg-cart-total-box strong {
    color: var(--yg-cart-ink);
    font-weight: 750;
}

.yg-cart-total-box .yg-cart-grand-total {
    margin-top: 3px;
    padding-top: 16px;
    color: var(--yg-cart-ink);
    border-top: 1px solid #E7EDF4;
    font-size: 15px;
    font-weight: 750;
}

.yg-cart-grand-total strong {
    color: var(--yg-cart-navy);
    font-size: 23px;
    font-weight: 820;
}

.yg-cart-pay {
    display: inline-flex;
    position: relative;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    color: #fff;
    background: var(--yg-cart-navy);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 760;
    transition: background .2s ease, transform .2s ease;
}

.yg-cart-pay:hover {
    background: var(--yg-cart-blue);
    transform: translateY(-1px);
}

.yg-cart-pay i {
    font-size: 18px;
}

.yg-cart-pay.is-loading,
.yg-cart-pay:disabled {
    cursor: wait;
    opacity: .78;
    transform: none;
}

.yg-cart-pay.is-loading i {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    font-size: 0;
    animation: yg-cart-spin .75s linear infinite;
}

.yg-cart-secure {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: -4px 0 0;
    color: #7B899C;
    font-size: 10.5px;
    font-weight: 550;
    line-height: 1.55;
}

.yg-cart-secure i {
    flex: 0 0 auto;
    color: #16885F;
    font-size: 16px;
    line-height: 1.2;
}

.yg-cart-environment {
    margin: -8px 0 0;
    padding: 9px 11px;
    color: #8A6110;
    background: #FFF8E8;
    border-radius: 9px;
    font-size: 10px;
    line-height: 1.45;
}

.yg-cart-empty {
    display: grid;
    max-width: 680px;
    min-height: 430px;
    align-content: center;
    justify-items: center;
    margin: 0 auto;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 22px 70px rgba(6, 39, 96, .07);
    width: 100%;
    min-width: 0;
}

.yg-cart-empty-mark {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--yg-cart-blue);
    background: #EAF3FF;
    border-radius: 50%;
    font-size: 31px;
}

.yg-cart-empty h2 {
    margin: 0;
    color: var(--yg-cart-ink);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 760;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.yg-cart-empty p {
    max-width: 440px;
    margin: 13px 0 0;
    color: var(--yg-cart-text);
    font-size: 14px;
    line-height: 1.7;
}

.yg-cart-empty a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 25px;
    padding: 0 22px;
    color: #fff;
    background: var(--yg-cart-navy);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
    transition: background .2s ease;
}

.yg-cart-empty a:hover {
    color: #fff;
    background: var(--yg-cart-blue);
}

@media (max-width: 1199px) {
    .yg-cart-shell {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 20px;
    }

    .yg-cart-list {
        padding: 22px;
    }

    .yg-cart-item {
        grid-template-columns: 1fr;
    }

    .yg-cart-item-actions {
        justify-content: flex-end;
        padding-top: 12px;
        border-top: 1px solid #E7EDF4;
    }
}

@media (max-width: 991px) {
    .yg-cart-hero {
        padding: 48px 0 68px;
    }

    .yg-cart-hero-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 30px;
    }

    .yg-cart-shell {
        grid-template-columns: 1fr;
    }

    .yg-cart-summary {
        position: static;
    }
}

@media (max-width: 767px) {
    .yg-cart-hero {
        padding: 38px 0 58px;
    }

    .yg-cart-hero::before {
        opacity: .08;
        background-position: calc(100% + 145px) 50%;
        background-size: 500px 500px;
        -webkit-mask-image: linear-gradient(90deg, transparent 4%, rgba(0, 0, 0, .2) 38%, #000 100%);
        mask-image: linear-gradient(90deg, transparent 4%, rgba(0, 0, 0, .2) 38%, #000 100%);
    }

    .yg-cart-hero h1 {
        font-size: 35px;
    }

    .yg-cart-hero-inner,
    .yg-cart-hero-copy {
        width: 100%;
        max-width: 100%;
    }

    .yg-cart-hero p {
        font-size: 13px;
    }

    .yg-cart-steps {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .yg-cart-steps li {
        flex: 1;
        min-width: 0;
    }

    .yg-cart-steps li span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .yg-cart-content {
        margin-top: -24px;
        padding-bottom: 64px;
    }

    .yg-cart-list,
    .yg-cart-summary,
    .yg-cart-empty {
        border-radius: 17px;
    }

    .yg-cart-list {
        padding: 18px;
    }

    .yg-cart-list-head {
        align-items: flex-start;
    }

    .yg-cart-clear {
        width: 40px;
        flex: 0 0 40px;
        padding: 0;
    }

    .yg-cart-clear > span {
        display: none;
    }

    .yg-cart-item {
        gap: 14px;
        padding: 12px;
    }

    .yg-cart-product {
        align-items: flex-start;
        gap: 12px;
    }

    .yg-cart-product-media {
        flex-basis: 88px;
        width: 88px;
        height: 88px;
    }

    .yg-cart-product-copy h3 {
        font-size: 14px;
    }

    .yg-cart-item-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto 38px;
        gap: 12px;
        align-items: end;
        justify-content: stretch;
    }

    .yg-cart-qty {
        justify-self: start;
    }

    .yg-cart-line-total {
        min-width: 82px;
    }

    .yg-cart-remove {
        margin-top: 18px;
    }

    .yg-cart-summary form {
        padding: 23px 20px 24px;
    }

    .yg-cart-empty {
        min-height: 380px;
        padding: 45px 22px;
    }

    .yg-cart-empty h2 {
        font-size: 27px;
    }
}

@media (max-width: 420px) {
    .yg-cart-steps li span {
        font-size: 9px;
    }

    .yg-cart-product-media {
        flex-basis: 76px;
        width: 76px;
        height: 80px;
    }

    .yg-cart-item-actions {
        grid-template-columns: 1fr 38px;
    }

    .yg-cart-qty {
        grid-column: 1 / -1;
    }

    .yg-cart-line-total {
        grid-column: 1;
    }

    .yg-cart-remove {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yg-cart-item,
    .yg-cart-product-media img,
    .yg-cart-pay,
    .yg-cart-back i {
        transition: none;
    }
}
