#bakery-cart-root {
    padding: 0 8px;
}

.bakery-cart {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    max-width: 920px;
    margin: 0 auto 24px;
}

.bakery-cart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding-bottom: 8px;
}

.bakery-cart__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.bakery-cart__toggle {
    transition: transform 0.3s;
    color: #999;
}

.bakery-cart__toggle--collapsed {
    transform: rotate(180deg);
}

.bakery-cart__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bakery-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
}

.bakery-cart-item:last-child {
    border-bottom: none;
}

.bakery-cart-item__img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.bakery-cart-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bakery-cart-item__name {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.bakery-cart-item__meta {
    margin-top: 4px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

.bakery-cart-item__weight {
    display: inline-block;
    color: #8C857C;
    padding: 2px 7px;
    border: 1px solid #E5E0DA;
    border-radius: 40px;
    font-size: 12px;
    line-height: 1.3;
    vertical-align: middle;
    margin-right: 4px;
}

.bakery-cart-item__mods {
    display: inline;
}

.bakery-cart-item__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.bakery-cart-item__stepper {
    display: flex;
    align-items: center;
    gap: 0;
}

.bakery-cart-item__stepper-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #E5E0DA;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.bakery-cart-item__stepper-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.bakery-cart-item__stepper-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.bakery-cart-item__stepper-btn:active {
    background: #F5F1EC;
}

.bakery-cart-item__stepper-val {
    min-width: 32px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border-top: 1px solid #E5E0DA;
    border-bottom: 1px solid #E5E0DA;
}

.bakery-cart-item__remove {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C4B9AD;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.bakery-cart-item__remove:active {
    color: #e74c3c;
}

.bakery-cart-item__prices {
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.bakery-cart-item__old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    display: block;
}

.bakery-cart-item__price {
    font-size: 14px;
    font-weight: 700;
    display: block;
}

.bakery-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 4px;
    border-top: 1px solid #F1EDE8;
    font-size: 16px;
    font-weight: 700;
}

.bakery-cart__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    min-height: calc(100dvh - 320px);
}

.bakery-cart__empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.bakery-cart__empty-text {
    font-size: 16px;
    color: #8C857C;
    margin: 0 0 24px;
    max-width: 240px;
    line-height: 1.5;
}

.bakery-cart__empty-link {
    color: var(--color-primary, #332F2A);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* Order form */
.bakery-order-form-wrap {
    padding: 0 8px;
}

.bakery-order-form {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    max-width: 920px;
    margin: 0 auto 24px;
}

.bakery-order-form__empty {
    text-align: center;
    color: #8C857C;
    font-size: 14px;
    line-height: 1.5;
    padding: 24px 8px;
}

.bakery-order-form__group {
    margin-bottom: 8px;
}

.bakery-order-form__label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.bakery-order-form__req {
    color: red;
}

.bakery-order-form__char-count {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.bakery-order-form__input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--color-primary, #332F2A);
    border: 1px solid #E2E5E9;
    border-radius: 12px;
    background: #fff;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.bakery-order-form__input:focus {
    box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

.bakery-order-form__textarea {
    resize: vertical;
    min-height: 80px;
}

.bakery-order-form__row {
    display: flex;
    gap: 12px;
}

.bakery-order-form__group--half {
    flex: 1;
}

.bakery-order-form__group--third {
    flex: 1;
}

.bakery-order-form__error {
    display: block;
    font-size: 12px;
    color: red;
    margin-top: 4px;
    min-height: 0;
}

.bakery-order-form__error--global {
    display: block;
    text-align: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.bakery-order-form__stepper {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.bakery-order-form__stepper-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.bakery-order-form__stepper-btn:active {
    background: #f5f1ec;
}

.bakery-order-form__stepper-val {
    min-width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.bakery-order-form__hint {
    font-size: 13px;
    color: #999;
    margin: 0 0 16px;
}

.bakery-order-form__hint:empty {
    display: none;
}

.bakery-order-form__submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #333;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
}

.bakery-order-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bakery-order-form__submit:active:not(:disabled) {
    opacity: 0.85;
}

.bakery-order-form__validation-hint {
    font-size: 13px;
    color: var(--color-red, #FF2A2A);
    text-align: center;
    margin: 10px 0 0;
    min-height: 18px;
}

.bakery-order-form__validation-hint:empty {
    display: none;
}

.bakery-order-form__select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238C857C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Radio sections (delivery / payment) */
.bakery-radio-section {
    margin-bottom: 4px;
}

.bakery-radio-divider {
    height: 1px;
    background: #F1EDE8;
    margin: 4px 0;
}

.bakery-radio-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid #F1EDE8;
    cursor: pointer;
}

.bakery-radio-row:first-child {
    border-top: none;
}

.bakery-radio-row--header {
    border-top: none;
    padding-bottom: 8px;
}

.bakery-radio-row__label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bakery-payment-icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bakery-payment-icons img {
    height: 12px;
    width: auto;
}

.bakery-radio-row__desc {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    line-height: 1.5;
    margin: 4px 0 0;
}

/* Custom radio circle — same style as modificators modal */
.bakery-radio-circle {
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
}

.bakery-radio-circle__input {
    display: none;
}

.bakery-radio-circle__mark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #8C857C;
    background: #fff;
    position: relative;
}

.bakery-radio-circle__input:checked + .bakery-radio-circle__mark {
    border-color: #8C857C;
}

.bakery-radio-circle__input:checked + .bakery-radio-circle__mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: #8C857C;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Delivery sub-options (nested inside postal) */
.bakery-delivery-sub {
    padding-left: 16px;
    border-left: 2px solid #F1EDE8;
    margin-left: 8px;
    margin-top: 4px;
}

.bakery-delivery-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 4px;
}

/* Courier city buttons */
.bakery-courier-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 4px;
}

.bakery-courier-cities__btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    background: #F5F1EC;
    color: var(--color-primary, #332F2A);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.bakery-courier-cities__btn--active {
    background: var(--primary-color, #F5A623);
    color: #fff;
}

/* Privacy */
.bakery-privacy {
    margin-bottom: 12px;
}

.bakery-privacy__label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

.bakery-privacy__input {
    display: none;
}

.bakery-privacy__label::before {
    content: '';
    width: 22px;
    height: 22px;
    border: 2px solid #8C857C;
    border-radius: 6px;
    flex-shrink: 0;
    background: #fff;
    margin-top: 1px;
}

.bakery-privacy__input:checked + .bakery-privacy__label::before,
.bakery-privacy__label:has(.bakery-privacy__input:checked)::before {
    background-color: #8C857C;
    border-color: #8C857C;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.bakery-privacy__text {
    flex: 1;
}

.bakery-privacy__link {
    color: #8C857C;
    text-decoration: underline;
}

/* Step 3 — order success / payment */
.bakery-step3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    min-height: calc(100dvh - 320px);
}

.bakery-step3__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color, #F5C443);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bakery-step3__icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.bakery-step3__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #333;
}

.bakery-step3__subtitle {
    font-size: 14px;
    color: #8C857C;
    margin: 0 0 24px;
    line-height: 1.5;
}

.bakery-step3__subtitle b {
    color: #333;
}

.bakery-step3__download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #333;
    border-radius: 12px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 16px;
}

.bakery-step3__download-btn:active {
    background: #333;
    color: #fff;
}

.bakery-step3__link {
    color: var(--color-primary, #332F2A);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.bakery-step3__status {
    font-size: 14px;
    color: #8C857C;
    margin: 0 0 20px;
}

.bakery-step3__pay-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin-bottom: 20px;
}

.bakery-step3__pay-btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #333;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bakery-step3__pay-btn:active {
    opacity: 0.85;
}

.bakery-step3__pay-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bakery-step3__pay-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
}

.bakery-step3__change-payment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #8C857C;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    padding: 12px 0;
    border-bottom: 1px dashed #8C857C;
    margin-top: 8px;
}

.bakery-step3__change-payment:active {
    color: #333;
}

.bakery-step3__error {
    font-size: 14px;
    color: red;
    margin: 0 0 16px;
    line-height: 1.5;
}
