/* 색상·안내·주요 버튼·금액 표시는 장바구니, 폼 컨트롤은 공통 키햐 스킨을 사용합니다. */
.kh-party {
    display: flow-root;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--kh-cart-bg);
    color: var(--kh-cart-ink);
    text-align: left;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.kh-party *, .kh-party *::before, .kh-party *::after {box-sizing: border-box;}
.kh-party [hidden], .kh-party #kbDoneAlert:empty {display: none !important;}
.kh-party #kbApplication, .kh-party #kbDone {padding-top: 12px;}
.kh-party :focus-visible {outline: 2px solid var(--kh-cart-primary-dark); outline-offset: 3px;}
.kh-party h1:focus:not(:focus-visible) {outline: none;}
.kh-party .kb-panel {margin: 0 12px 12px; border: 1px solid var(--kh-cart-line); border-radius: 14px; background: var(--kh-cart-surface);}
.kh-party .kb-panel-title {margin: 0; border-bottom: 1px solid var(--kh-cart-line); padding: 13px 15px; color: var(--kh-cart-ink); font-size: 15px; font-weight: 700; line-height: 1.4;}
.kh-party .kb-intro {margin-bottom: 12px; background: var(--kh-cart-surface); border-bottom: 1px solid var(--kh-cart-line);}
.kh-party .kb-intro-art {display: block; height: auto;}
.kh-party .kb-intro-body {padding: 18px 16px 10px;}
.kh-party .kb-intro-body h1 {margin: 0 0 6px; color: var(--kh-cart-ink); font-size: 22px; font-weight: 700; line-height: 1.35;}
.kh-party .kb-intro-body p, .kh-party details p {margin: 0; color: var(--kh-cart-copy); font-size: 13px; line-height: 1.6;}
.kh-party .kb-intro-note {display: flex; align-items: center; gap: 7px; margin: 0; padding: 0 16px 15px; color: var(--kh-cart-copy); font-size: 12px; line-height: 1.5;}
.kh-party .kb-intro-note i {color: var(--kh-cart-muted);}
.kh-party .kh-cart-actions button:disabled, .kh-party .kb-story:disabled {opacity: .6; cursor: default;}
.kh-party .kb-stories, .kh-party .kb-faq details {margin: 0 15px;}
.kh-party .kb-story {display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; width: 100%; gap: 12px; padding: 15px 0; align-items: center; border: 0; background: transparent; text-align: left;}
.kh-party .kb-story .kh-cart-guide-icon {align-self: start;}
.kh-party .kb-story + .kb-story, .kh-party .kb-faq details + details {border-top: 1px solid var(--kh-cart-line);}
.kh-party .kb-story strong {display: block; color: var(--kh-cart-ink); font-size: 14px; line-height: 1.5;}
.kh-party .kb-story span span {display: block; margin-top: 3px; color: var(--kh-cart-copy); font-size: 13px; line-height: 1.55;}
.kh-party .kb-story .bi-chevron-right, .kh-party summary::after {flex: none; color: var(--kh-cart-muted); font-size: 12px;}
.kh-party summary {display: flex; min-height: 44px; padding: 9px 0; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; color: var(--kh-cart-ink); font-size: 13px; font-weight: 600; line-height: 1.5;}
.kh-party summary::-webkit-details-marker {display: none;}
.kh-party summary::after {content: ''; display: block; width: 7px; height: 7px; margin: -3px 3px 0 0; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg);}
.kh-party details[open] > summary::after {transform: rotate(225deg); margin-top: 3px;}
.kh-party details p {padding: 0 0 13px;}
.kh-party .kb-faq summary {display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; min-height: 50px;}
.kh-party .kb-faq summary .bi {color: var(--kh-cart-copy); font-size: 16px;}
.kh-party .kb-faq details p {padding-left: 28px;}
.kh-party .kh-cart-guide h1 {margin: 1px 0 4px; color: var(--kh-cart-ink); font-size: 16px; font-weight: 700; line-height: 1.35;}
.kh-party .kb-fields {display: grid; gap: 18px; padding: 15px;}
.kh-party .kb-field {display: grid; min-width: 0; gap: 6px; margin: 0; padding: 0; border: 0;}
.kh-party .kb-field > label:first-child, .kh-party .kb-field legend {margin: 0; color: var(--kh-cart-ink); font-size: 14px; font-weight: 700; line-height: 1.5;}
.kh-party .kb-field legend {float: none; width: auto; padding: 0; margin-bottom: 3px;}
.kh-party .kb-field label small {color: var(--kh-cart-muted); font-size: 12px; font-weight: 400;}
.kh-party .form-control, .kh-party .form-select {min-width: 0; max-width: 100%; min-height: 44px; height: auto; font-size: 16px;}
.kh-party textarea.form-control {resize: vertical;}
.kh-party :is(.form-check-input[type=checkbox], .form-check-input[type=radio]) {position: static; display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; margin: 0; opacity: 1; visibility: visible;}
.kh-party .kb-budget {display: grid; grid-template-columns: minmax(86px, 24%) minmax(0, 1fr); gap: 8px;}
.kh-party .kb-choices {display: flex; flex-wrap: wrap; gap: 0 16px;}
.kh-party .kb-choices label, .kh-party .kb-check {display: flex; align-items: center; gap: 7px; min-height: 36px; margin: 0; color: var(--kh-cart-copy); font-size: 13px; line-height: 1.45; cursor: pointer;}
.kh-party .kb-hint, .kh-party .kb-option p {margin: 0; color: var(--kh-cart-muted); font-size: 12px; line-height: 1.55;}
.kh-party .kb-option {padding: 10px 0;}
.kh-party .kb-option:first-child {padding-top: 0;}
.kh-party .kb-option:last-child {padding-bottom: 0;}
.kh-party .kb-option + .kb-option {border-top: 1px solid var(--kh-cart-line);}
.kh-party .kb-option-title {display: flex; gap: 8px; min-height: 36px; align-items: center; margin: 0; color: var(--kh-cart-ink); font-size: 14px; cursor: pointer;}
.kh-party .kb-option-title strong {margin-left: auto; font-size: 13px; white-space: nowrap;}
.kh-party .kb-option p {margin-left: 26px;}
.kh-party .kb-option-settings {display: grid; gap: 8px; margin-top: 9px; padding: 12px; background: var(--kh-cart-bg); border-radius: 10px; font-size: 13px;}
.kh-party .kb-option-settings label {display: grid; gap: 4px; margin: 0;}
.kh-party .my_buy.kh-cart-summary.kb-estimate {margin: 0; box-shadow: none;}
.kh-party .kb-estimate dl.total {margin: 0 0 8px; padding: 0; border-top: 0;}
.kh-party .kb-estimate dl.total dd {text-align: right;}
.kh-party .kb-consent {border-top: 1px solid var(--kh-cart-line); padding-top: 8px;}
.kh-party .kb-consent summary {justify-content: start; font-weight: 400; color: var(--kh-cart-copy);}
.kh-party #kbPrivacyNotice {white-space: pre-wrap;}
.kh-party .kb-form-actions {display: grid; gap: 8px;}
.kh-party .kb-form-actions a {text-decoration: none;}
.kh-party .kb-alert {margin: 0 12px 12px; padding: 12px; border: 1px solid var(--kh-cart-red-border); border-radius: 10px; color: var(--kh-cart-primary-dark); background: var(--kh-cart-red-soft); font-size: 13px; line-height: 1.55; white-space: pre-line;}
.kh-party .kb-field-error {display: block; color: var(--kh-cart-primary-dark); font-size: 12px;}
.kh-party [aria-invalid=true] {border-color: var(--kh-cart-primary-dark);}
.kh-party #kbDoneId {color: var(--kh-cart-ink); font-weight: 700; overflow-wrap: anywhere;}
.kh-party #kbDone .kh-cart-summary dl {gap: 12px; align-items: baseline;}
.kh-party #kbDone .kh-cart-summary dt {flex-shrink: 0;}
.kh-party #kbDone .kh-cart-summary dd {min-width: 0; margin: 0; text-align: right; white-space: pre-line; overflow-wrap: anywhere;}
.kh-party #kbDone .kh-cart-summary dl:last-child {margin-bottom: 0;}
.kh-party #kbEdit {min-height: 40px; padding-inline: 12px;}
.kh-party #kbDone .kb-form-actions > * {display: flex; height: 52px; width: 100%; border-radius: 12px; align-items: center; justify-content: center;}

.kh-party .kb-product-open {min-height: 44px; justify-self: start; padding-inline: 15px;}
.kh-party .kb-product-open i {margin-right: 4px;}
.kh-party .kb-product-dialog {
    position: fixed;
    inset: 0;
    width: min(calc(100% - 24px), 480px);
    max-width: none;
    max-height: calc(100% - 24px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--kh-cart-line);
    border-radius: 14px;
    background: var(--kh-cart-surface);
    color: var(--kh-cart-ink);
    text-align: left;
}
.kh-party .kb-product-dialog::backdrop {background: rgb(0 0 0 / 50%);}
.kh-party .kb-product-dialog:not([open]), .kh-party .kb-product-backdrop {display: none;}
.kh-party .kb-product-dialog[data-fallback][open] {display: block; z-index: 1055; height: fit-content;}
.kh-party .kb-product-dialog[data-fallback][open] + .kb-product-backdrop {display: block;}
.kh-party .kb-product-sheet {display: flex; flex-direction: column; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);}
.kh-party .kb-product-header {display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--kh-cart-line);}
.kh-party .kb-product-header h2 {margin: 0; font-size: 17px; font-weight: 700;}
.kh-party .kb-product-header button {width: 44px; height: 44px;}
.kh-party .kb-product-body {min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px;}
.kh-party .kb-product-label {display: block; margin: 0 0 7px; font-size: 14px; font-weight: 700; line-height: 1.5;}
.kh-party .kb-product-list {margin: 0; padding: 0; list-style: none;}
.kh-party .kb-product-list:empty {display: none;}
.kh-party #kbProductSearchStatus {margin: 12px 0;}
.kh-party .kb-product-draft {margin-top: 16px;}
.kh-party .kb-product-label[for="kbProductManual"] {margin-top: 18px;}
.kh-party .kb-product-row {display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--kh-cart-line);}
.kh-party .kb-product-info {flex: 1; min-width: 0;}
.kh-party .kb-product-name {color: var(--kh-cart-ink); font-size: 14px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere;}
.kh-party .kb-product-action {flex: none; min-width: 44px; min-height: 44px; margin-left: auto;}
.kh-party .kb-product-sheet > .kh-cart-actions {flex: none;}
