.cp-dialog { width: min(600px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 32px); padding: 24px; border: 0; border-radius: 14px; background: #fffefa; color: #243a33; box-shadow: 0 18px 60px rgb(15 36 24 / 24%); overflow: auto; }
.cp-dialog::backdrop { background: rgb(15 26 20 / 46%); }
.cp-dialog .button { min-height: 44px; padding: 8px 12px; border: 1px solid #bdcbbf; border-radius: 8px; background: #fffefa; color: #243a33; font: inherit; cursor: pointer; }
.cp-dialog .button.primary { border-color: #17643e; background: #17643e; color: white; }
.cp-dialog .button:hover { border-color: #17643e; }
.cp-dialog ::selection { background: #d6e7da; color: #173426; }
.cp-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.cp-heading h2 { font-size: 25px; line-height: 1.4; margin: 0; }
.cp-heading p { margin: 8px 0 0; font-size: 14px; color: #526456; line-height: 1.6; }
.cp-close { width: 44px; height: 44px; flex-shrink: 0; margin: -8px -8px 0 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #425b4c; font-size: 26px; line-height: 1; }
.cp-close:hover { background: #edf4ef; }
.cp-dialog button:focus-visible, .cp-dialog input:focus-visible { outline: 2px solid #17643e; outline-offset: 3px; }
.cp-plans { display: grid; gap: 10px; padding: 0; margin: 0; border: 0; }
.cp-plans legend { width: 100%; font-size: 15px; font-weight: 700; padding: 0; margin-bottom: 12px; }
.cp-plans legend > span { vertical-align: middle; }
.cp-detail-link { float: right; color: #17643e; min-height: 32px; padding: 0 4px; margin-top: -4px; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.cp-plan { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px; border: 1px solid #cbd7ce; border-radius: 12px; cursor: pointer; }
.cp-plan:has(input:checked) { border-color: #17643e; background: #edf5ef; }
.cp-plan:hover { border-color: #17643e; }
.cp-plan input { margin: 0; width: 18px; height: 18px; accent-color: #17643e; flex-shrink: 0; }
.cp-plan strong { display: block; font-size: 17px; }
.cp-plan small { display: block; margin-top: 5px; color: #526456; font-size: 13px; line-height: 1.6; }
.cp-plan-price { margin-left: auto; text-align: right; white-space: nowrap; }
.cp-plan-price > strong { font-size: 27px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.cp-plan-price > strong > span { font-size: 14px; font-weight: 400; margin-left: 4px; }
.cp-agent { margin-top: 24px; }
.cp-agent > label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.cp-agent > label > span { color: #526456; font-size: 13px; font-weight: 400; margin-left: 6px; }
.cp-agent input { width: 100%; min-height: 44px; border: 1px solid #bdcbbf; border-radius: 8px; padding: 10px 12px; color: #243a33; background: white; font-size: 15px; caret-color: #17643e; }
.cp-agent input::placeholder { color: #627467; opacity: 1; }
.cp-status { margin: 8px 0 0; min-height: 22px; color: #425b4c; font-size: 13px; line-height: 1.7; }
.cp-error { color: #9a3027; }
.cp-account { margin-top: 24px; padding-top: 20px; border-top: 1px solid #d9e1dc; }
.cp-account summary { cursor: pointer; font-size: 15px; font-weight: 700; line-height: 1.7; }
.cp-account[open] dl { margin-top: 12px; }
.cp-account dl, .cp-order-summary { margin: 0; }
.cp-account dl > div, .cp-order-summary > div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; margin-top: 8px; font-size: 14px; line-height: 1.7; }
.cp-account dt, .cp-order-summary dt { color: #526456; }
.cp-account dd, .cp-order-summary dd { margin: 0; overflow-wrap: anywhere; }
.cp-total { margin-top: 24px; padding-top: 20px; border-top: 1px solid #d9e1dc; }
.cp-total > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cp-total strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.cp-total p, .cp-note { margin: 8px 0 0; color: #526456; font-size: 13px; line-height: 1.7; }
.cp-dialog .cp-submit { width: 100%; margin-top: 20px; min-height: 46px; border: 0; background: #17643e; color: white; font-size: 16px; }
.cp-dialog .cp-submit:hover { background: #104a2d; }
.cp-dialog .cp-submit:disabled { background: #e0e7e1; color: #526456; cursor: wait; }
.cp-dialog [hidden] { display: none; }
.cp-redeem-entry { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; padding-top: 12px; color: #526456; font-size: 14px; }
.cp-redeem-entry button { min-height: 44px; padding: 8px; color: #17643e; text-decoration: underline; text-underline-offset: 3px; }
.cp-benefits { display: block; width: 100%; text-align: left; margin-top: 24px; padding: 16px 0; border: 0; border-top: 1px solid #d9e1dc; background: transparent; color: #17643e; font-weight: 600; cursor: pointer; }
#member-membership-panel > h3 { margin: 24px 0 8px; }
#cp-confirmation h3 { font-size: 21px; margin: 0 0 12px; }
#cp-confirmation > p { line-height: 1.8; }
.cp-order-summary { padding-block: 12px; }
#cp-confirmation > button { margin-top: 20px; }
.cp-rights-dialog { width: min(1040px, calc(100vw - 24px)); }
.cp-rights-dialog .cp-heading { position: sticky; top: -24px; z-index: 2; padding-block: 8px; background: #fffefa; }
.cp-table-scroll { overflow: auto; scrollbar-color: #a2b3a6 #edf4ef; }
.cp-table-scroll:focus-visible { outline: 2px solid #17643e; outline-offset: 3px; }
.cp-rights-table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.6; }
.cp-rights-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cp-rights-table th, .cp-rights-table td { padding: 10px 12px; border-bottom: 1px solid #d9e1dc; text-align: center; }
.cp-rights-table tr > :first-child { text-align: left; width: 43%; }
.cp-rights-table thead th { position: sticky; top: 0; z-index: 1; background: #edf4ef; color: #234338; font-size: 17px; }
.cp-rights-table thead th:nth-child(3) { background: #e1eee5; }
.cp-rights-table thead th:nth-child(4) { background: #1d4937; color: #fffefa; }
.cp-rights-table thead strong, .cp-rights-table thead small { display: block; }
.cp-rights-table thead strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.cp-rights-table thead small { font-size: 13px; font-weight: 400; }
.cp-rights-category th { background: #e5ece7; font-size: 15px; }
.cp-rights-table td:nth-child(3) { color: #17643e; font-weight: 600; }
.cp-rights-table td:nth-child(4) { color: #765622; font-weight: 600; }
.cp-rights-table tbody tr:not(.cp-rights-category):nth-child(even) { background: #f7f9f6; }
.cp-rights-notes { padding-left: 20px; margin-top: 20px; color: #526456; font-size: 13px; line-height: 1.8; }
.cp-rights-notes li + li { margin-top: 4px; }
.cp-rights-back { margin-top: 16px; min-height: 44px; }
.cp-mobile-hint { display: none; font-size: 13px; color: #526456; }
.cp-plan-kinds { display: flex; gap: 8px; margin-bottom: 20px; }
.cp-plan-kinds button { flex: 1; min-height: 44px; padding: 8px 12px; border: 1px solid #cbd7ce; border-radius: 8px; background: #fffefa; color: #425b4c; cursor: pointer; font: inherit; }
.cp-plan-kinds button[aria-pressed="true"] { border-color: #17643e; background: #edf5ef; color: #17643e; font-weight: 700; }
.cp-plan-kinds button:hover { border-color: #17643e; }
.cp-redeem-dialog { width: min(440px, calc(100vw - 24px)); }
.cp-redeem-dialog .member-redeem-row { display: flex; gap: 12px; }
.cp-redeem-dialog input { min-width: 0; flex: 1; min-height: 44px; font-size: 16px; }
.cp-redeem-dialog button[type="submit"] { min-height: 44px; flex-shrink: 0; }
.cp-team-binding { margin-top: 24px; }
.cp-team-binding > label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 15px; }
.cp-team-binding > input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #bdcbbf; border-radius: 8px; font-size: 16px; color: #243a33; background: white; caret-color: #17643e; }
.cp-team-binding > input::placeholder { color: #627467; opacity: 1; }
.cp-team-binding > button { margin-top: 8px; min-height: 44px; }
.cp-owner-invite { margin: 0 0 24px; padding: 24px; background: #edf5ef; border: 1px solid #bdcfc1; border-radius: 12px; color: #243a33; }
.cp-owner-invite h2 { margin: 0 0 8px; font-size: 24px; }
.cp-owner-invite p { line-height: 1.8; }
.cp-owner-invite label { display: block; margin: 20px 0 8px; font-weight: 600; }
.cp-owner-invite > div { display: flex; flex-wrap: wrap; gap: 12px; }
.cp-owner-invite input { flex: 1 1 240px; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #bdcbbf; border-radius: 8px; background: white; color: #243a33; font-size: 16px; }
.cp-owner-invite button { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 8px; background: #17643e; color: white; cursor: pointer; font: inherit; font-weight: 700; }
.cp-owner-invite button:hover { background: #104a2d; }
.cp-owner-invite button:focus-visible { outline: 2px solid #17643e; outline-offset: 3px; }
@media (max-width: 700px) { .cp-mobile-hint { display: block; } }
@media (max-width: 420px) { .cp-dialog { padding: 20px 16px; } .cp-heading h2 { font-size: 22px; } .cp-plan { padding: 12px; gap: 9px; } .cp-plan strong { font-size: 16px; } .cp-plan small { font-size: 12px; } .cp-plan-price > strong { font-size: 25px; } .cp-account dl > div, .cp-order-summary > div { grid-template-columns: 60px 1fr; } }

.cp-order-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cp-order-actions a { display: inline-flex; align-items: center; text-decoration: none; }
.cp-order-actions button:disabled { background: #e0e7e1; color: #526456; cursor: not-allowed; }
.cp-cancelled-order { min-height: 44px; padding: 8px 0; color: #17643e; text-decoration: underline; text-underline-offset: 3px; }
.cp-payment-code { display: grid; justify-items: center; gap: 8px; margin-top: 16px; padding-top: 20px; border-top: 1px solid #d9e1dc; }
.cp-payment-code img { display: block; box-sizing: border-box; width: min(240px, 100%); height: auto; aspect-ratio: 1; padding: 12px; border: 1px solid #d9e1dc; background: #fff; }
.cp-payment-code .cp-status { max-width: 36ch; margin: 0; text-align: center; overflow-wrap: anywhere; }
.cp-team-redeem-dialog { width: min(440px, calc(100vw - 24px)); }
.cp-dialog input:disabled { opacity: 0.7; }
