html:has(.plan_customizer[open]) {
    overflow: hidden;
}

.plan_customizer {
    width: min(1200px, calc(100% - 48px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: #fff;
    color: #080808;
    box-shadow: 0 24px 80px #0005;
    font-family: inherit;
    text-align: left;
    overscroll-behavior: contain;
}

.plan_customizer::backdrop {
    background: #0009;
}

.plan_customizer_panel {
    position: relative;
    padding: 30px 40px 34px;
}

.plan_customizer button,
.plan_customizer input {
    font-family: inherit;
}

.plan_customizer button {
    cursor: pointer;
}

.plan_customizer button:disabled {
    cursor: wait;
    opacity: .6;
}

.plan_customizer button:focus-visible,
.plan_customizer input:focus-visible {
    outline: 3px solid #ef4444;
    outline-offset: 4px;
}

.plan_customizer_close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #111;
}

.plan_customizer_close:hover {
    background: #f0f0f2;
}

.plan_customizer_header {
    padding-right: 30px;
    margin-bottom: 28px;
}

.plan_customizer_header h2 {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.25;
}

.plan_customizer_header h2:focus {
    outline: none;
}

.plan_customizer_header p {
    margin-top: 2px;
    color: #60606e;
    font-size: 18px;
    line-height: 1.5;
}

.plan_customizer_layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
    gap: 28px;
    align-items: stretch;
}

.plan_customizer_options {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.plan_customizer_fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.plan_customizer_fieldset legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.plan_customizer_step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 20px;
}

.plan_customizer_optional {
    color: #60606e;
    font-size: 16px;
    font-weight: 400;
}

.plan_customizer_plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.plan_customizer_plan {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #c9c9d1;
    border-radius: 10px;
    cursor: pointer;
}

.plan_customizer_plan.is-selected {
    border-color: #080808;
    box-shadow: inset 0 0 0 1px #080808;
}

.plan_customizer_plan input {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 7px;
    accent-color: #080808;
}

.plan_customizer_plan_name,
.plan_customizer_plan_price,
.plan_customizer_plan_fee {
    display: block;
}

.plan_customizer_plan_name {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.plan_customizer_plan_price {
    margin-top: 2px;
    font-size: 16px;
    line-height: 1.5;
}

.plan_customizer_plan_fee {
    margin-top: 3px;
    color: #60606e;
    font-size: 13px;
    line-height: 1.5;
}

.plan_customizer_addons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan_customizer_addon {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 10px 20px;
    border-bottom: 1px solid #dddde2;
    border-radius: 10px;
    cursor: pointer;
}

.plan_customizer_addon.is-selected {
    border-color: transparent;
    background: #f0f0f2;
}

.plan_customizer_addon.is-included {
    cursor: default;
}

.plan_customizer_addon input {
    appearance: none;
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border: 1px solid #686873;
    border-radius: 4px;
    background: #fff;
    cursor: inherit;
}

.plan_customizer_addon input:checked {
    border-color: #080808;
    background: #080808;
}

.plan_customizer_addon input:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 7px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.plan_customizer_addon.is-included input {
    border-color: #17803d;
    background: #17803d;
    opacity: 1;
}

.plan_customizer_addon_copy {
    flex: 1;
    min-width: 0;
}

.plan_customizer_addon_name {
    display: block;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600;
}

.plan_customizer_addon_description {
    display: block;
    color: #60606e;
    font-size: 14px;
    line-height: 1.5;
}

.plan_customizer_addon_price {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1.5;
    white-space: nowrap;
}

.plan_customizer_addon.is-included .plan_customizer_addon_price {
    color: #17803d;
    font-size: 15px;
    font-weight: 500;
}

.plan_customizer_summary {
    padding: 24px;
    border-radius: 12px;
    background: #f0f0f2;
}

.plan_customizer_summary h3 {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
}

.plan_customizer_items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 26px 0;
}

.plan_customizer_items div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 18px;
    line-height: 1.5;
}

.plan_customizer_items dd {
    margin: 0;
    white-space: nowrap;
}

.plan_customizer_total {
    padding-top: 24px;
    border-top: 1px solid #d4d4da;
}

.plan_customizer_total h4 {
    font-size: 22px;
    line-height: 1.5;
    font-weight: 600;
}

.plan_customizer_amount {
    margin-top: 4px;
    line-height: 1.3;
}

.plan_customizer_amount strong {
    font-size: 52px;
    font-weight: 600;
}

.plan_customizer_amount span {
    color: #60606e;
    font-size: 24px;
    font-weight: 600;
}

.plan_customizer_fee {
    margin-top: 2px;
    color: #60606e;
    font-size: 18px;
    line-height: 1.5;
}

.plan_customizer_continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    min-height: 54px;
    margin-top: 28px;
    padding: 12px 16px;
    border: 0;
    border-radius: 50px;
    background: #26dc36;
    color: #000;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.plan_customizer_continue svg {
    flex-shrink: 0;
}

.plan_customizer_continue:hover {
    background: #20cb2f;
}

.plan_customizer_billing {
    margin-top: 10px;
    color: #60606e;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.plan_customizer_error {
    margin-top: 12px;
    color: #bd151c;
}

.plan_customizer_empty {
    padding: 16px 0;
    color: #60606e;
}

@media (max-width: 1050px) {
    .plan_customizer_panel { padding: 28px; }
    .plan_customizer_layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
    .plan_customizer_plan { padding: 12px; gap: 10px; }
    .plan_customizer_plan_name { font-size: 18px; }
    .plan_customizer_addon { padding: 10px 12px; gap: 14px; }
    .plan_customizer_addon_name, .plan_customizer_addon_price { font-size: 16px; }
}

@media (max-width: 900px) {
    .plan_customizer_layout { grid-template-columns: minmax(0, 1fr); }
    .plan_customizer_summary { padding: 24px; }
    .plan_customizer_header h2 { font-size: 30px; }
}

@media (max-width: 600px) {
    .plan_customizer { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 16px; }
    .plan_customizer_panel { padding: 24px 18px; }
    .plan_customizer_close { top: 10px; right: 8px; }
    .plan_customizer_header h2 { font-size: 26px; }
    .plan_customizer_header p { margin-top: 8px; font-size: 15px; }
    .plan_customizer_fieldset legend { gap: 8px; font-size: 19px; margin-bottom: 16px; }
    .plan_customizer_optional { font-size: 14px; }
    .plan_customizer_step { width: 28px; height: 28px; font-size: 17px; }
    .plan_customizer_plans { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .plan_customizer_plan { align-items: center; gap: 16px; padding: 12px 16px; }
    .plan_customizer_plan input { margin: 0; }
    .plan_customizer_addon { gap: 12px; padding: 12px 10px; }
    .plan_customizer_addon_name, .plan_customizer_addon_price { font-size: 14px; }
    .plan_customizer_addon_description { font-size: 13px; }
    .plan_customizer_addon.is-included .plan_customizer_addon_price { font-size: 13px; }
    .plan_customizer_summary { padding: 20px; }
    .plan_customizer_summary h3 { font-size: 25px; }
    .plan_customizer_items div { font-size: 16px; }
    .plan_customizer_amount strong { font-size: 44px; }
    .plan_customizer_amount span { font-size: 20px; }
    .plan_customizer_continue { gap: 10px; font-size: 16px; }
}
