#payment-view { background: #f8f4eb; color: #24241e; min-height: 75vh; scroll-margin-top: 5rem; }
#payment-view[hidden] { display: none !important; }
#payment-view *, #payment-view *::before, #payment-view *::after { box-sizing: border-box; }
#payment-view :is(h1,h2,p,dl,dd,fieldset,legend) { margin: 0; }
#payment-view :is(input,button,select,a) { font: inherit; }
#payment-view :is(button,a,select,input):focus-visible { outline: 3px solid #9f7029; outline-offset: 4px; }
#payment-view [data-payment-heading]:focus { outline: none; }
.cp-wrap { max-width: 1100px; width: calc(100% - clamp(40px,10vw,140px)); margin-inline: auto; padding-block: clamp(26px,4vw,52px) clamp(64px,8vw,108px); }
.cp-trail { display: flex; align-items: center; flex-wrap: wrap; gap: .44rem .65rem; min-height: 32px; font-size: .89rem; color: #665c4c; }
.cp-trail a, .cp-links > a:not(.cp-btn) { color: #695132; text-decoration: underline; text-underline-offset: .22em; }
.cp-trail a { padding-block: .3rem; }
#payment-view h1 { margin-block: clamp(16px,3vw,42px) clamp(20px,2.8vw,38px); font-size: clamp(2.1rem,4.4vw,3.9rem); letter-spacing: -.04em; line-height: 1.16; font-weight: 650; }
html[lang="en"] #payment-view h1 { font-family: Cinzel,Georgia,serif; font-weight: 500; }
.cp-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.86fr); grid-template-areas: "fields summary" "submit summary"; align-items: start; gap: 1.6rem clamp(28px,7vw,95px); }
.cp-fields { grid-area: fields; min-width: 0; }
.cp-label, .cp-methods legend { display: block; font-size: 1.1rem; font-weight: 650; padding: 0; }
#cp-item { display: block; width: 100%; min-height: 48px; border: 1px solid #b5a88f; background: #fffaf0; color: #2e2b23; border-radius: 5px; padding: .5rem .65rem; margin-block-start: .55rem; }
#payment-view .cp-methods { padding: 0; border: 0; min-width: 0; margin-block-start: 1.65rem; }
.cp-choice { display: flex; align-items: center; min-height: 53px; padding: .58rem .8rem; gap: .68rem; cursor: pointer; border: 1px solid #d3c9b7; background: #faf7f0; border-radius: 6px; margin-block-start: .52rem; }
.cp-choice:has(input:checked) { border-color: #987438; background: #f1e8d8; }
.cp-choice input { inline-size: 17px; block-size: 17px; margin: 0; accent-color: #715525; }
.cp-paymark { margin-inline-start: auto; min-width: 42px; height: 23px; padding: 0 4px; border: 1px solid #c5b99e; background: #fffdfa; border-radius: 4px; font-size: 13px; line-height: 21px; font-family: Arial,sans-serif; font-weight: 700; color: #2a2e29; text-align: center; }
.cp-mada { color: #246644; font-style: normal; }
.cp-visa { color: #23356c; }
.cp-applepay { color: #161616; font-style: normal; }
.cp-summary { grid-area: summary; padding: clamp(22px,3.3vw,44px); background: #262820; color: #fcf6e9; border-radius: 12px; }
.cp-summary h2 { font-size: 1.4rem; font-weight: 650; line-height: 1.35; }
.cp-item-name { display: block; margin-block: .6rem 1.45rem; font-size: 1.12rem; font-weight: 500; color: #e7d8bd; }
.cp-summary dl > div, .cp-record > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1.15rem; padding-block: .8rem; border-block-end: 1px solid #514f40; }
.cp-summary dt { color: #e6dcc8; }
.cp-summary dd, .cp-record dd { text-align: end; font-weight: 600; }
.cp-summary .cp-total { border: 0; padding-block-end: 0; }
.cp-summary .cp-total dd { font-size: clamp(1.4rem,2.2vw,1.9rem); color: #efc77e; }
#payment-view .cp-terms { margin-block-start: 1.3rem; padding-block-start: .85rem; border-block-start: 1px solid #514f40; color: #ddd4bf; font-size: .9rem; line-height: 1.65; }
.cp-submit { grid-area: submit; }
.cp-notice { border-inline-start: 3px solid #b48e50; padding-inline-start: .8rem; line-height: 1.65; color: #574c39; }
.cp-notice strong, .cp-notice span { display: block; }
.cp-btn { min-height: 46px; padding: .63rem 1.25rem; border: 1px solid transparent; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 650 !important; text-decoration: none; }
.cp-solid { background: #29291f; color: #fff9eb; }
.cp-solid:hover { background: #484537; }
.cp-line { background: transparent; border-color: #a49477; color: #51452e; }
.cp-submit .cp-btn { margin-block-start: 1.15rem; }
.cp-complete, .cp-unavailable { max-width: 750px; margin-block-start: clamp(22px,4vw,50px); border: 1px solid #d7cbb5; border-radius: 12px; padding: clamp(22px,4vw,54px); background: #f1eadd; }
#payment-view .cp-complete h1, #payment-view .cp-unavailable h1 { margin-block: .8rem; font-size: clamp(1.85rem,3.8vw,3rem); }
.cp-complete-mark { width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid #a58f61; color: #6f572c; border-radius: 50%; font-size: 1.4rem; }
.cp-explanation, .cp-unavailable p { color: #61594c; line-height: 1.65; }
#payment-view .cp-record { margin-block: 1.2rem; }
.cp-record > div { border-color: #d9ceba; }
.cp-record dd { overflow-wrap: anywhere; }
.cp-record .cp-debit dd { color: #654a1d; font-size: 1.3rem; }
.cp-links { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-block-start: 1rem; }
.cp-feedback { margin-block-start: 1.4rem; background: transparent; border: 0; min-height: 44px; padding: 0; color: #695132; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
@media (max-width: 700px) {
  .cp-wrap { width: calc(100% - 36px); }
  .cp-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: "fields" "summary" "submit"; gap: 1.2rem; }
}
#payment-view .cp-coupon { margin-block: 1.5rem 0; }
#payment-view .cp-coupon > p { margin-block: .3rem; font-size: .88rem; color: #645b4c; line-height: 1.55; }
.cp-coupon-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.cp-coupon-row input { flex: 1 1 6rem; min-width: 0; max-width: 17rem; min-height: 44px; border: 1px solid #b5a88f; background: #fffaf0; color: #25231f; border-radius: 5px; padding: .45rem .7rem; }
.cp-coupon-row input[readonly] { background: #f2ecdd; color: #5b4d34; }
.cp-coupon-row input[aria-invalid="true"] { border-color: #9e3a30; }
.cp-coupon-row button { min-height: 44px; padding: .45rem .85rem; border: 1px solid #ab9873; border-radius: 5px; color: #58452a; background: transparent; cursor: pointer; }
.cp-coupon-row button:hover { background: #efe4d3; }
#payment-view .cp-coupon .cp-coupon-error { color: #983a2d; }
.cp-tabby { color: #174739; background: #dcf3e4; font-style: normal; }
.cp-tamara { color: #56344c; background: #f5e3e8; font-style: normal; }
.cp-installments { margin-block-start: 1rem; border-block-start: 1px solid #7b725f; padding-block-start: .9rem; }
#payment-view .cp-installments h3 { font-size: 1.02rem; margin: 0; }
#payment-view .cp-installments p { margin-block: .35rem .65rem; font-size: .87rem; line-height: 1.6; }
.cp-installments ol { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; margin: 0; gap: .45rem; }
.cp-installments li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .1rem .4rem; border: 1px solid #8b806c; padding: .4rem .5rem; border-radius: 4px; font-size: .85rem; }
