.sfc-cart-widget {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    font-family: inherit;
}

.sfc-cart-widget__notices {
    display: none;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    background-color: #fff7ed;
    color: #92400e;
    font-size: 0.95rem;
}

.sfc-cart-widget__notices.is-visible {
    display: block;
}

.sfc-cart-widget__items {
    display: grid;
    gap: 2rem;
}

.sfc-cart-widget--empty .sfc-cart-widget__footer,
.sfc-cart-widget--empty .sfc-cart-widget__actions {
    display: none;
}

.sfc-cart-widget__empty {
    margin: 0;
    font-size: 1.05rem;
    color: #4b5563;
}

.sfc-cart-widget__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sfc-cart-widget__item:hover {
    border-radius: 20px;
}

.sfc-cart-widget__item.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.sfc-cart-widget__image {
    aspect-ratio: 7 / 3;
}

.sfc-cart-widget__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
}

.sfc-cart-widget__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 1.75rem 2rem 2rem;
    background: #f7f5f2;
    border-radius: 0 0 20px 20px;
}

.sfc-cart-widget__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
}

.sfc-cart-widget__quantity {
    display: inline-flex;
    align-items: center;
}

.sfc-cart-widget__qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    background: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.sfc-cart-widget__qty-btn--minus {
    color: #5f6368;
    background: #ffffff;
}

.sfc-cart-widget__qty-btn--plus {
    color: #ffffff;
    background: #f18500;
}

.sfc-cart-widget__qty-btn:focus-visible {
    outline: 2px solid #f18500;
    outline-offset: 2px;
}

.sfc-cart-widget__qty-btn:active {
    transform: scale(0.96);
}

.sfc-cart-widget__qty-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.sfc-cart-widget__qty-input {
    display: inline-flex;
}

.oversight-item-in {
    padding: 0!important;
    border: none!important;
    background: transparent!important;
}

.sfc-cart-widget__qty-field {
    width: 2.5rem;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1.15rem;
    color: #2f343b;
    padding: 0;
    -moz-appearance: textfield;
}

.sfc-cart-widget__qty-field:focus {
    outline: none;
}

.sfc-cart-widget__qty-field::-webkit-outer-spin-button,
.sfc-cart-widget__qty-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sfc-cart-widget__title {
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 0;
    color: #30343a;
}

.sfc-cart-widget__price {
    color: #2f343b;
    white-space: nowrap;
}

.sfc-cart-widget__description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5f6368;
}

.sfc-cart-widget__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #ece5d9;
    border-radius: 18px;
    padding: 1.25rem 1.75rem;
    color: #2f343b;
}

.sfc-cart-widget__total-value {
    font-size: 1.35rem;
    color: #1f252c;
}

.sfc-cart-widget__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sfc-cart-widget__actions .button,
.sfc-cart-widget__actions .sfc-cart-widget__button {
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sfc-cart-widget__actions .button-primary,
.sfc-cart-widget__actions .sfc-cart-widget__button--primary {
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #fff;
    border: none;
}

.sfc-cart-widget__actions .button-secondary,
.sfc-cart-widget__actions .sfc-cart-widget__button {
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .sfc-cart-widget__body {
        padding: 1rem 1.5rem 1rem;
    }
}

@media (max-width: 767px) {
    .sfc-cart-widget__body {
        padding: 1.5rem 1.5rem 1.75rem;
    }

    .sfc-cart-widget__header {
        grid-template-columns: 1fr;
        row-gap: 0.75rem;
    }

    .sfc-cart-widget__quantity {
        justify-self: flex-start;
    }

    .sfc-cart-widget__price {
        font-size: 1.15rem;
        justify-self: flex-start;
    }
}

.sfc-cart-overview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sfc-cart-overview__heading {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #9c1a2a;
}

.sfc-cart-overview__items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sfc-cart-overview__item {
    padding: 0.2rem 0;
}

.sfc-cart-overview__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1rem;
}

.sfc-cart-overview__details {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
}

.sfc-cart-overview__product {
    font-weight: 500;
    color: #1f2933;
    line-height: 1.4;
    min-width: 0;
    word-break: break-word;
}

.sfc-cart-overview__price {
    white-space: nowrap;
}

.sfc-cart-overview .sfc-cart-widget__quantity {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
}

.sfc-cart-overview .sfc-cart-widget__qty-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
    border-radius: 50%;
    background: #ffffff;
    color: #9c1a2a;
    border: 1px solid #e5e7eb;
}

.sfc-cart-overview .sfc-cart-widget__qty-btn--plus {
    background: #9c1a2a;
    color: #ffffff;
    border-color: #9c1a2a;
}

.sfc-cart-overview .sfc-cart-widget__qty-btn:disabled {
    opacity: 0.55;
}

.sfc-cart-overview__quantity-display {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    color: #1f2933;
    min-width: 2rem;
    justify-content: center;
}

.sfc-cart-overview__quantity-times {
    font-weight: 400;
    color: #6b7280;
}

.sfc-cart-overview .sfc-cart-widget__qty-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
}

.sfc-cart-overview__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.sfc-cart-overview__total-label {
    color: #111827;
}

.sfc-cart-overview__total-value {
    font-size: 1.2rem;
}

.sfc-cart-overview__empty {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
}

.sfc-cart-overview--empty .sfc-cart-overview__footer {
    display: none;
}

.sfc-cart-overview__notices {
    font-size: 0.95rem;
}

.sfc-cart-disclaimer, .sfc-cart-disclaimer-button {
    margin-top: 40px;
}

@media (max-width: 640px) {
    .sfc-cart-overview__line {
        align-items: flex-start;
    }

    .sfc-cart-overview__details {
        align-items: flex-start;
    }
}
