.amouroi-ec-checkout-page,
.amouroi-ec-cart-page {
    color: #2d2925;
    background: #f8f5ef;
    padding: 56px 22px 80px;
}

.amouroi-ec-checkout-inner,
.amouroi-ec-cart-page .amouroi-ec-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.amouroi-ec-page-heading {
    max-width: 760px;
    margin-bottom: 38px;
}

.amouroi-ec-page-heading h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1;
    letter-spacing: .04em;
    font-weight: 500;
}

.amouroi-ec-page-heading > p:last-child {
    max-width: 620px;
    color: #716960;
    line-height: 1.8;
}

.amouroi-ec-kicker,
.amouroi-ec-section-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #806d5d;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.amouroi-ec-rule {
    display: inline-block;
    width: 42px;
    height: 1px;
    background: currentColor;
    opacity: .5;
}

.amouroi-ec-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: 28px;
    align-items: start;
}

.amouroi-ec-checkout-form,
.amouroi-ec-checkout-summary,
.amouroi-ec-cart-page-summary {
    padding: 28px;
    background: #fffdf9;
    border: 1px solid #e1d8cc;
    box-shadow: 0 18px 50px rgba(83, 65, 48, .07);
}

.amouroi-ec-checkout-form fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 28px;
}

.amouroi-ec-checkout-form legend {
    width: 100%;
    padding: 0 0 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e7ded3;
    font-size: 17px;
    font-weight: 600;
}

.amouroi-ec-checkout-form label {
    display: block;
    margin: 16px 0 7px;
    font-size: 13px;
    font-weight: 600;
}

.amouroi-ec-checkout-form label span {
    color: #a05243;
}

.amouroi-ec-checkout-form input,
.amouroi-ec-checkout-form select {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    border: 1px solid #cfc3b6;
    border-radius: 2px;
    padding: 10px 12px;
    color: #2d2925;
    background: #fff;
    font: inherit;
}

.amouroi-ec-checkout-form input:focus,
.amouroi-ec-checkout-form select:focus {
    outline: 2px solid #806d5d;
    outline-offset: 1px;
}

.amouroi-ec-checkout-form.was-validated input:invalid,
.amouroi-ec-checkout-form.was-validated select:invalid {
    border-color: #a05243;
}

.amouroi-ec-checkout-form-note,
.amouroi-ec-cart-caption {
    color: #716960;
    font-size: 12px;
    line-height: 1.75;
}

.amouroi-ec-primary-button {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #2d2925;
    border-radius: 0;
    padding: 14px 18px;
    color: #fffdf9;
    background: #2d2925;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    letter-spacing: .08em;
    text-align: left;
    text-decoration: none;
}

.amouroi-ec-primary-button:hover,
.amouroi-ec-primary-button:focus {
    color: #2d2925;
    background: #fffdf9;
}

.amouroi-ec-primary-button:disabled {
    cursor: wait;
    opacity: .55;
}

.amouroi-ec-checkout-status,
.amouroi-ec-status {
    min-height: 1.4em;
    margin: 14px 0 0;
    color: #716960;
    font-size: 13px;
    line-height: 1.6;
}

.amouroi-ec-checkout-status.is-error {
    color: #a05243;
}

.amouroi-ec-checkout-summary {
    position: sticky;
    top: 24px;
}

.amouroi-ec-checkout-summary-heading h2 {
    margin: 8px 0 22px;
    font-size: 22px;
    letter-spacing: .06em;
}

.amouroi-ec-checkout-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #e7ded3;
}

.amouroi-ec-checkout-item img,
.amouroi-ec-checkout-item-placeholder {
    width: 64px;
    height: 76px;
    object-fit: cover;
    background: #ece4da;
}

.amouroi-ec-checkout-item-placeholder {
    display: grid;
    place-items: center;
    color: #806d5d;
}

.amouroi-ec-checkout-item h3,
.amouroi-ec-checkout-item p {
    margin: 0;
}

.amouroi-ec-checkout-item h3 {
    font-size: 14px;
    line-height: 1.4;
}

.amouroi-ec-checkout-item p {
    margin-top: 5px;
    color: #716960;
    font-size: 12px;
}

.amouroi-ec-checkout-item > strong {
    font-size: 13px;
    white-space: nowrap;
}

.amouroi-ec-checkout-totals {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #2d2925;
}

.amouroi-ec-total-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    font-size: 13px;
}

.amouroi-ec-grand-total-row {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e7ded3;
    font-size: 16px;
}

.amouroi-ec-checkout-empty a,
.amouroi-ec-checkout-back a,
.amouroi-ec-cart-page-back a {
    color: #5e5044;
    text-decoration: underline;
}

.amouroi-ec-checkout-back,
.amouroi-ec-cart-page-back {
    margin-top: 22px;
    font-size: 13px;
}

.amouroi-ec-cart-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 28px;
    align-items: start;
}

.amouroi-ec-cart-page-items {
    min-width: 0;
    padding: 18px 26px;
    background: #fffdf9;
    border: 1px solid #e1d8cc;
}

.amouroi-ec-cart-page-items:empty {
    display: none;
}

.amouroi-ec-cart-page .amouroi-ec-cart-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e7ded3;
}

.amouroi-ec-cart-page .amouroi-ec-cart-item:last-child {
    border-bottom: 0;
}

.amouroi-ec-cart-page .amouroi-ec-cart-item-image img {
    display: block;
    width: 92px;
    height: 112px;
    object-fit: cover;
    background: #ece4da;
}

.amouroi-ec-cart-page .amouroi-ec-cart-item h4,
.amouroi-ec-cart-page .amouroi-ec-cart-item p {
    margin: 0;
}

.amouroi-ec-cart-page .amouroi-ec-cart-item h4 {
    font-size: 16px;
}

.amouroi-ec-cart-page .amouroi-ec-cart-item p {
    margin-top: 7px;
    color: #716960;
    font-size: 12px;
}

.amouroi-ec-cart-page .amouroi-ec-cart-item-price {
    font-size: 14px;
    white-space: nowrap;
}

.amouroi-ec-cart-page .amouroi-ec-cart-item-actions {
    display: flex;
    gap: 7px;
    margin-top: 14px;
}

.amouroi-ec-cart-page .amouroi-ec-cart-item-actions button {
    min-width: 30px;
    min-height: 28px;
    border: 1px solid #cfc3b6;
    border-radius: 0;
    color: #2d2925;
    background: #fffdf9;
    cursor: pointer;
    font-size: 12px;
}

.amouroi-ec-cart-page .amouroi-ec-cart-item-actions button:last-child {
    padding: 0 9px;
    font-size: 10px;
    letter-spacing: .08em;
}

.amouroi-ec-cart-page-summary {
    position: sticky;
    top: 24px;
}

.amouroi-ec-cart-page-summary .amouroi-ec-primary-button {
    margin-top: 18px;
}

.amouroi-ec-cart-empty {
    grid-column: 1 / -1;
    padding: 56px 24px;
    border: 1px dashed #cfc3b6;
    text-align: center;
}

.amouroi-ec-cart-empty h2,
.amouroi-ec-cart-empty p {
    margin: 8px 0;
}

.amouroi-ec-cart-empty .amouroi-ec-primary-button {
    width: auto;
    min-width: 220px;
    margin-top: 20px;
}

@media (max-width: 780px) {
    .amouroi-ec-checkout-grid,
    .amouroi-ec-cart-page-layout {
        grid-template-columns: 1fr;
    }

    .amouroi-ec-checkout-summary,
    .amouroi-ec-cart-page-summary {
        position: static;
    }
}

@media (max-width: 520px) {
    .amouroi-ec-checkout-page,
    .amouroi-ec-cart-page {
        padding: 38px 14px 56px;
    }

    .amouroi-ec-checkout-form,
    .amouroi-ec-checkout-summary,
    .amouroi-ec-cart-page-summary {
        padding: 20px;
    }

    .amouroi-ec-cart-page-items {
        padding: 8px 16px;
    }

    .amouroi-ec-cart-page .amouroi-ec-cart-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .amouroi-ec-cart-page .amouroi-ec-cart-item-image img {
        width: 64px;
        height: 82px;
    }

    .amouroi-ec-cart-page .amouroi-ec-cart-item-price {
        grid-column: 2;
    }
}

/* AMOUROI VOGUE STYLE: 注文情報と空カートの共通レイアウト。 */
.amouroi-ec-checkout-page,
.amouroi-ec-cart-page {
    --aec-checkout-ink: #171717;
    --aec-checkout-muted: #77736d;
    --aec-checkout-paper: #f6f2eb;
    --aec-checkout-card: #fffdf9;
    --aec-checkout-line: rgba(23, 23, 23, .14);
    background: var(--aec-checkout-paper);
    color: var(--aec-checkout-ink);
    font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Arial, sans-serif;
}

.amouroi-ec-checkout-page h1,
.amouroi-ec-cart-page h1,
.amouroi-ec-checkout-page h2,
.amouroi-ec-cart-page h2,
.amouroi-ec-checkout-page h3,
.amouroi-ec-cart-page h3 {
    font-family: "Cormorant Garamond", "Times New Roman", "Yu Mincho", YuMincho, serif;
    font-weight: 500;
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: normal;
}

.amouroi-ec-page-heading h1 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    letter-spacing: -.02em;
    line-height: 1.05;
    margin-bottom: 0;
}

.amouroi-ec-heading-en {
    color: var(--aec-checkout-ink);
    font-size: 1em;
    white-space: nowrap;
}

.amouroi-ec-heading-ja {
    color: var(--aec-checkout-muted);
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, sans-serif;
    font-size: clamp(13px, 1.5vw, 17px);
    font-weight: 400;
    letter-spacing: .08em;
    line-height: 1.5;
}

.amouroi-ec-checkout-form legend {
    align-items: baseline;
    display: flex;
    gap: 12px;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.amouroi-ec-checkout-form legend small {
    color: var(--aec-checkout-muted);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .05em;
    text-transform: none;
}

.amouroi-ec-checkout-guidance {
    border-top: 1px solid var(--aec-checkout-line);
    display: grid;
    gap: 18px;
    margin: 6px 0 22px;
    padding-top: 20px;
}

.amouroi-ec-checkout-guidance section {
    border-bottom: 1px solid var(--aec-checkout-line);
    padding-bottom: 16px;
}

.amouroi-ec-guidance-label {
    color: #806d5d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .17em;
    margin: 0;
}

.amouroi-ec-checkout-guidance h2 {
    color: var(--aec-checkout-ink);
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    margin: 5px 0 0;
}

.amouroi-ec-checkout-guidance section > p:last-child {
    color: var(--aec-checkout-muted);
    font-size: 12px;
    line-height: 1.85;
    margin: 5px 0 0;
}

.amouroi-ec-checkout-form .amouroi-ec-primary-button {
    align-items: center;
    background: var(--aec-checkout-ink);
    color: var(--aec-checkout-card);
    font-weight: 600;
    letter-spacing: .1em;
    white-space: nowrap;
}

.amouroi-ec-button-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.amouroi-ec-button-copy strong {
    font-size: 12px;
    letter-spacing: .13em;
    line-height: 1.2;
    white-space: nowrap;
}

.amouroi-ec-button-copy small {
    color: rgba(255, 253, 249, .72);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .04em;
    line-height: 1.35;
}

.amouroi-ec-checkout-form .amouroi-ec-primary-button:hover .amouroi-ec-button-copy small,
.amouroi-ec-checkout-form .amouroi-ec-primary-button:focus-visible .amouroi-ec-button-copy small {
    color: rgba(255, 253, 249, .9);
}

.amouroi-ec-checkout-empty p,
.amouroi-ec-checkout-empty p small {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.amouroi-ec-checkout-empty p strong {
    color: var(--aec-checkout-ink);
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: 22px;
    font-weight: 500;
}

.amouroi-ec-checkout-empty p small {
    color: var(--aec-checkout-muted);
    font-size: 12px;
}

.amouroi-ec-checkout-empty a {
    display: inline-block;
    font-size: 10px;
    letter-spacing: .12em;
    margin-top: 12px;
    white-space: nowrap;
}

.amouroi-ec-checkout-back a {
    color: var(--aec-checkout-muted);
    letter-spacing: .1em;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .amouroi-ec-page-heading h1 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .amouroi-ec-checkout-form legend {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .amouroi-ec-checkout-guidance {
        gap: 14px;
        margin-top: 0;
    }

    .amouroi-ec-checkout-form .amouroi-ec-primary-button {
        min-height: 60px;
    }

    .amouroi-ec-button-copy strong {
        font-size: 11px;
    }
}
