.purchase-intent-page {
    width: min(100% - 40px, 1280px);
    margin: 0 auto;
    padding: 42px 15px 88px;
    background: #ffffff;
}

.purchase-intent-page .order-message {
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px solid #e5e8ee;
    border-radius: 8px;
    background: #f7f8fa;
    color: #414650;
    font-size: 14px;
}

.purchase-intent-page .order-message.is-error {
    border-color: #f0c7c0;
    background: #fff7f5;
    color: #b42318;
}

.purchase-intent-card__no-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: #eef0f3;
}

.purchase-intent-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 26px;
    border-bottom: 1px solid #202124;
}

.purchase-intent-head span {
    display: block;
    color: #dd4a2c;
    font-size: 14px;
    font-weight: 500;
}

.purchase-intent-head h1 {
    margin: 4px 0 0;
    color: #202124;
    font-size: 32px;
    line-height: 1.35;
    font-weight: 600;
}

.purchase-intent-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #202124;
    border-radius: 6px;
    background: #202124;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.purchase-intent-summary-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 30px;
    border: 1px solid #e5e8ee;
    border-radius: 8px;
    overflow: hidden;
}

.purchase-intent-summary-board div {
    padding: 22px 24px;
    border-right: 1px solid #e5e8ee;
}

.purchase-intent-summary-board div:last-child {
    border-right: 0;
}

.purchase-intent-summary-board span {
    display: block;
    color: #6f7680;
    font-size: 14px;
}

.purchase-intent-summary-board strong {
    display: block;
    margin-top: 8px;
    color: #202124;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.purchase-intent-list {
    display: grid;
    margin-top: 30px;
    border-top: 1px solid #e5e8ee;
}

.purchase-intent-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #e5e8ee;
}

.purchase-intent-card__thumb {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
    aspect-ratio: 1 / 1;
}

.purchase-intent-card__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.purchase-intent-card__body {
    min-width: 0;
}

.purchase-intent-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.purchase-intent-status {
    font-size: 13px;
    font-weight: 700;
}

.purchase-intent-status--scheduled {
    color: #dd4a2c;
}

.purchase-intent-status--on-air {
    color: #238b4d;
}

.purchase-intent-status--purchased {
    color: #202124;
}

.purchase-intent-status--ended {
    color: #6f7680;
}

.purchase-intent-card__meta em,
.purchase-intent-card__body p {
    color: #8a929d;
    font-size: 14px;
    font-style: normal;
}

.purchase-intent-card__body p,
.purchase-intent-card__body h2 {
    margin: 0;
}

.purchase-intent-card__body p {
    margin-top: 8px;
}

.purchase-intent-card__body h2 {
    margin-top: 4px;
    color: #202124;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    word-break: keep-all;
}

.purchase-intent-card__body dl {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 12px 0 0;
}

.purchase-intent-card__body dl div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.purchase-intent-card__body dt,
.purchase-intent-card__body dd {
    margin: 0;
    font-size: 14px;
}

.purchase-intent-card__body dt {
    color: #6f7680;
}

.purchase-intent-card__body dd {
    color: #202124;
    font-weight: 700;
}

.purchase-intent-card__body > strong {
    display: block;
    margin-top: 10px;
    color: #5b6470;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.purchase-intent-card__actions {
    display: grid;
    gap: 8px;
    min-width: 104px;
}

.purchase-intent-card__actions a,
.purchase-intent-card__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #ffffff;
    color: #202124;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.purchase-intent-card__actions a {
    border-color: #202124;
    background: #202124;
    color: #ffffff;
}

.purchase-intent-empty {
    display: grid;
    gap: 8px;
    padding: 44px 16px;
    border-bottom: 1px solid #e5e8ee;
    text-align: center;
}

.purchase-intent-empty strong {
    color: #202124;
    font-size: 18px;
    line-height: 1.35;
}

.purchase-intent-empty p {
    margin: 0;
    color: #6f7680;
    font-size: 14px;
    line-height: 1.45;
}

.purchase-intent-edit-modal,
.purchase-intent-cancel-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
}

.purchase-intent-edit-modal.is-open,
.purchase-intent-cancel-modal.is-open {
    display: block;
}

body.is-purchase-intent-modal-open {
    overflow: hidden;
}

.purchase-intent-edit-modal__backdrop,
.purchase-intent-cancel-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 33, 36, 0.42);
}

.purchase-intent-edit-dialog,
.purchase-intent-cancel-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(100% - 40px, 420px);
    max-height: min(620px, calc(100dvh - 48px));
    overflow-y: auto;
    border-radius: 10px;
    background: #ffffff;
    transform: translate(-50%, -50%);
}

.purchase-intent-edit-dialog__head,
.purchase-intent-cancel-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid #edf0f4;
}

.purchase-intent-edit-dialog__head span,
.purchase-intent-cancel-dialog__head span {
    display: block;
    color: #dd4a2c;
    font-size: 13px;
    font-weight: 500;
}

.purchase-intent-edit-dialog__head h2,
.purchase-intent-cancel-dialog__head h2 {
    margin: 5px 0 0;
    color: #202124;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 600;
}

.purchase-intent-edit-dialog__head button,
.purchase-intent-cancel-dialog__head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #202124;
    font-size: 22px;
}

.purchase-intent-edit-product {
    padding: 20px 24px;
    border-bottom: 1px solid #edf0f4;
}

.purchase-intent-edit-product span {
    color: #dd4a2c;
    font-size: 13px;
    font-weight: 700;
}

.purchase-intent-edit-product strong {
    display: block;
    margin-top: 5px;
    color: #202124;
    font-size: 16px;
    line-height: 1.42;
    font-weight: 700;
    word-break: keep-all;
}

.purchase-intent-edit-product p {
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.45;
    word-break: keep-all;
}

.purchase-intent-edit-form {
    display: grid;
    gap: 14px;
    padding: 20px 24px 24px;
}

.purchase-intent-edit-field {
    display: grid;
    gap: 9px;
}

.purchase-intent-edit-field span {
    color: #202124;
    font-size: 14px;
    font-weight: 700;
}

.purchase-intent-edit-field input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #ffffff;
    color: #202124;
    font: inherit;
    font-size: 15px;
}

.purchase-intent-edit-form p {
    margin: 0;
    color: #6f7680;
    font-size: 13px;
    line-height: 1.45;
}

.purchase-intent-edit-actions {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
}

.purchase-intent-edit-actions button {
    min-height: 44px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #ffffff;
    color: #202124;
    font-size: 15px;
    font-weight: 700;
}

.purchase-intent-edit-actions button[type="submit"] {
    border-color: #dd4a2c;
    background: #dd4a2c;
    color: #ffffff;
}

.purchase-intent-cancel-message {
    padding: 22px 24px 18px;
}

.purchase-intent-cancel-message strong {
    display: block;
    color: #202124;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    word-break: keep-all;
}

.purchase-intent-cancel-message p {
    margin: 8px 0 0;
    color: #6f7680;
    font-size: 14px;
    line-height: 1.45;
}

.purchase-intent-cancel-actions {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
    padding: 0 24px 24px;
}

.purchase-intent-cancel-actions button {
    min-height: 44px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #ffffff;
    color: #202124;
    font-size: 15px;
    font-weight: 700;
}

.purchase-intent-cancel-actions button:last-child {
    border-color: #dd4a2c;
    background: #dd4a2c;
    color: #ffffff;
}

@media (max-width: 768px) {
    .purchase-intent-page {
        width: 100%;
        padding: 24px 15px 96px;
    }

    .purchase-intent-head {
        display: block;
    }

    .purchase-intent-head h1 {
        font-size: 24px;
    }

    .purchase-intent-head a {
        width: 100%;
        margin-top: 16px;
    }

    .purchase-intent-summary-board {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .purchase-intent-summary-board div {
        border-right: 0;
        border-bottom: 1px solid #e5e8ee;
    }

    .purchase-intent-summary-board div:last-child {
        border-bottom: 0;
    }

    .purchase-intent-card {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }

    .purchase-intent-card__actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        min-width: 0;
    }

    .purchase-intent-edit-dialog,
    .purchase-intent-cancel-dialog {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: min(620px, 86dvh);
        border-radius: 18px 18px 0 0;
        transform: none;
    }
}

@media (max-width: 480px) {
    .purchase-intent-card__body h2 {
        font-size: 16px;
    }

    .purchase-intent-card__body dl {
        display: grid;
    }

    .purchase-intent-card__actions {
        grid-template-columns: 1fr;
    }

    .purchase-intent-edit-dialog__head,
    .purchase-intent-cancel-dialog__head,
    .purchase-intent-edit-product,
    .purchase-intent-edit-form,
    .purchase-intent-cancel-message,
    .purchase-intent-cancel-actions {
        padding-right: 18px;
        padding-left: 18px;
    }

    .purchase-intent-edit-actions,
    .purchase-intent-cancel-actions {
        grid-template-columns: 1fr;
    }
}

/* mypage-sub 래핑 시 페이지 자체 폭 보정 (디자이너 내부 BEM 유지) */
.mypage-sub__content.purchase-intent-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 24px;
}
