[data-category-wrapper].is-hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}


:root {
    --color-plan-A: #58a6a1;
    --color-plan-B: #586a96;
    --color-plan-C: #b18168;
    --color-plan-D: #c2ad6b;
    --color-plan-E: #b27f87;
    --color-plan-F: #6d4b89;
    --color-plan-X: #acb0b6;
}
.plan-A {
    --plan-color: var(--color-plan-A)
}

.plan-B {
    --plan-color: var(--color-plan-B)
}

.plan-C {
    --plan-color: var(--color-plan-C)
}

.plan-D {
    --plan-color: var(--color-plan-D)
}

.plan-E {
    --plan-color: var(--color-plan-E)
}

.plan-F {
    --plan-color: var(--color-plan-F)
}

.plan-X {
    --plan-color: var(--color-plan-X)
}

.plan-card {
    --plan-card-color: var(--plan-color);
    position: relative;
    overflow: hidden;
    background: hsl(var(--card));
    border-radius: .125rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.18s ease,box-shadow 0.18s ease
}

.plan-card.noPrice {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 165px
}

.plan-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--plan-card-color)
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.1)
}

.plan-card:focus-within {
    outline: none
}

.plan-card-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    overflow: hidden;
    white-space: nowrap;
    text-indent: 100%
}

.plan-card-link:focus-visible {
    outline: none
}

.plan-card .plan-card-row {
    display: flex;
	flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 22px 12px 28px
}

.plan-card .plan-card-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--plan-card-color);
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto
}

.plan-card .plan-card-caption {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.plan-card .plan-card-lead {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    align-items: flex-start;
    gap: 10px;
	justify-content: space-between
}

.plan-card .plan-card-pills {
    display: flex;
    gap: 5px;
    flex: 0 0 auto
}

.plan-card .plan-card-pills span {
    background: var(--plan-card-color);
    color: hsl(var(--primary-foreground));
    border-radius: 999px;
    padding: 1px 12px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap
}

.plan-card .plan-card-pricebox {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
}

.plan-card .plan-card-priceline {
    display: flex;
    align-items: center;
    gap: 18px
}

.plan-card .plan-card-regular {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 14px;
    line-height: 1.4
}

.plan-card .plan-card-regular>span {
    font-size: 10px
}

.plan-card .plan-card-regular s {
    text-decoration: line-through;
    text-decoration-color: rgba(157,32,61,0.55)
}

.plan-card .plan-card-price {
    position: relative;
    font-weight: 900;
    font-size: 32px;
    line-height: 0.9;
    color: #9d203d;
    letter-spacing: -0.01em;
    white-space: nowrap
}

.plan-card .plan-card-price small {
    position: relative;
    display: inline-block;
    font-size: 20px
}

.plan-card .plan-card-flow {
    padding: 0 22px 12px 28px
}

.plan-card-badge {
	position: relative;
    background: #9d203d;
    color: hsl(var(--primary-foreground));
    border-radius: 0.125rem 0 0 0.125rem;
    padding: 4px 16px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap
}

.plan-card-badge:before {
	content: "";
	position: absolute;
	top: 50%;
	right: -19px;
	transform: translateY(-50%);
	width: 20px;
	height: 100%;
	background-color: #9d203d;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	clip-path: polygon(0 0, 100% 50%, 0 100%) round 4px; 
}

.plan-card-badge:after {
	content: "";
	position: absolute;
	top: 50%;
	right: -5px;
	transform: translateY(-50%);
	width: 5px;
	height: 5px;
	background-color: #ffffff;
	border-radius: 999px
}

.plan-card-badge b {
    font-weight: 800;
    font-size: 18px;
	line-height: 1;
    margin: 0 2px;
    vertical-align: -1px
}

.plan-card-ribbon {
    display: flex
}

.plan-card-ribbon .seg {
    flex: 0 1 auto;
    height: 40px;
    display: flex;
	width: 100%;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--primary-foreground));
    white-space: nowrap;
    padding: 0 6px 0 14px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.16);
    clip-path: polygon( 0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%,12px 50% );
    margin-left: -12px
}

.plan-card-ribbon .seg:first-child {
    margin-left: 0;
    clip-path: polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%);
    border-radius: .125rem 0 0 .125rem
}

.plan-card-ribbon .seg:last-child {
    clip-path: polygon(0 0,100% 0,100% 100%,0 100%,12px 50%);
    border-radius: 0 .125rem .125rem 0
}

.plan-card-ribbon .seg.off {
    background: #d7dad7;
    color: #aeb2ae;
    text-shadow: none
}

.plan-card-ribbon .seg.s0 {
    background: color-mix(in srgb,var(--plan-card-color) 70%,#ffffff)
}

.plan-card-ribbon .seg.s1 {
    background: color-mix(in srgb,var(--plan-card-color) 86%,#ffffff)
}

.plan-card-ribbon .seg.s2 {
    background: var(--plan-card-color)
}

.plan-card-ribbon .seg.s3 {
    background: color-mix(in srgb,var(--plan-card-color) 84%,#14201b)
}

.plan-card-ribbon .seg.s4 {
    background: color-mix(in srgb,var(--plan-card-color) 66%,#14201b)
}

@media (max-width: 767px) {
    .plan-card .plan-card-row {
        gap: 5px;	
		padding: 16px 15px 12px 20px;
    }

    .plan-card .plan-card-name {
        font-size: 20px;
        letter-spacing: 0.02em
    }

    .plan-card.plan-original .plan-card-name {
        font-size: 15px
    }

    .plan-card .plan-card-caption {
        font-size: 11px;
    }
	
    .plan-card .plan-card-lead.hide-price {
        flex-direction: row
    }

    .plan-card .plan-card-lead.hide-price .plan-card-caption {
        font-size: 11px;
        white-space: break-spaces;
        position: relative;
        width: unset;
        left: unset;
        bottom: unset
    }

    .plan-card .plan-card-pills {
        display: flex;
        gap: 5px;
        flex: 0 0 auto
    }

    .plan-card .plan-card-pills span {
        font-size: 12px;
        padding: 0px 9px
    }

    .plan-card .plan-card-pricebox {
        gap: 14px;
        margin-top: 5px
    }

    .plan-card .plan-card-priceline {
        gap: 9px
    }

    .plan-card .plan-card-regular {
        font-size: 11px
    }

    .plan-card .plan-card-regular>span {
        font-size: 8px
    }

    .plan-card .plan-card-regular s {
        color: var(--color-text-subtle);
        text-decoration: line-through;
        text-decoration-color: rgba(157,32,61,0.55)
    }

    .plan-card .plan-card-price {
        font-size: 26px
    }

    .plan-card .plan-card-price small {
        font-size: 16px
    }

    .plan-card .plan-card-tax {
        font-size: 8px
    }

    .plan-card .plan-card-flow {
        padding: 0 15px 12px 20px
    }

    .plan-card .plan-card-ribbon .seg {
        font-size: 11px;
        height: 34px;
        padding: 0 4px 0 9px
    }

    .plan-card .plan-card-badge {
        white-space: nowrap;
        flex: 0 0 auto;
        font-size: 10.5px;
        font-weight: 600;
        padding: 2px 9px
    }
	
	.plan-card .plan-card-badge:before {
        right: -14px;
		width: 15px
    }

    .plan-card .plan-card-badge b {
        font-size: 12px;
        margin: 0 1px
    }
}


.plan-simulator {
    display: grid;
    gap: 26px;
    justify-items: center;
    background: var(--color-surface)
}

.plan-simulator h3,.plan-simulator p {
    margin: 0
}

.plan-simulator__box {
	position: relative;
    display: flex;
	flex-direction: column;
	gap: 30px;
    width: min(100%,760px);
    padding: clamp(18px,4vw,32px);
    border-radius: .25rem;
    background: linear-gradient(180deg, hsl(var(--card)), hsl(var(--secondary) / .5));
    border: 1px solid hsl(var(--gold) / .3);
    box-shadow: 0 10px 40px -16px #1f2e262e;
}

.plan-simulator_cat{
	position: relative;
    display: flex;
	flex-direction: column;
	gap: 15px;
	padding-bottom: 20px;
	border-bottom-width: 1px;
	border-style: dashed;
	border-color: hsl(var(--gold) / .3);
    transition: all 1s ease;
    overflow: hidden;
    max-height: 2000px; 
    opacity: 1;
}

.plan-simulator_cat.hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
	transition: all 1s ease;
}

.plan-simulator__result {
	position: -webkit-sticky;
	position: sticky;
	z-index: 99;
    overflow: hidden;
    border: 1px solid #9d203d;
    border-radius: .125rem;
    background: hsl(var(--primary-foreground));
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.plan-simulator__result-title {
    display: flex;
	padding: 8px 10px;
	gap: 5px;
	margin: 0;
    align-items: center;
    justify-content: flex-start;
    background: #9d203d;
    color: hsl(var(--primary-foreground));
    font-size: 1rem;
    font-weight: 500
}

.plan-simulator__total {
	position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
	font-size: 1rem;
    padding: 5px 10px 10px;
    color: #9d203d;
    font-weight: 800;
    line-height: 1
}

.plan-simulator__total-price {
    min-width: 1.5em;
    margin: 0 5px;
    font-family: Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.75rem;
    line-height: 1;
    text-align: center
}

.plan-link {
    position: absolute;
    line-height: 1;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 10px 8px 14px;
    border: 1px solid #9d203d;
    border-radius: 999px;
    color: #9d203d;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.plan-simulator-head {
    display: grid;
    grid-template-columns: 24px minmax(0,1fr);
    gap: 10px;
    align-items: center
}

.plan-simulator-head h3,.plan-simulator-head p {
    margin: 0
}

.plan-simulator__number {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: #9d203d;
    color: hsl(var(--primary-foreground));
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1
}

.plan-simulator__note {
    color: #9d203d;
    font-size: 0.875rem;
    line-height: 1.5
}

.price-switch {
    display: inline-flex;
	width: fit-content;
	margin: 0 auto;
    gap: .35rem;
    padding: .125rem;
    border-radius: 999px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--gold) / .35);
}

.price-tab {
    display: flex;
    align-items: center;
    gap: .1rem;
	font-size: 1rem;
    padding: .5rem 2rem;
    border-radius: 999px;
    cursor: pointer;
    background: transparent;
    color: hsl(var(--foreground));
    transition: background-color .4s var(--ease-elegant), color .4s var(--ease-elegant);
}

.price-tab.is-active {
    background: linear-gradient(135deg, #b63754, #9d203d);
    color: hsl(var(--primary-foreground));
}

.category-group {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px
}
.plan-simulator__item {
	position: relative;
}

.plan-simulator__choice {
	position: relative;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
	width: 100%;
    height: 88px;
    padding: 0.5rem;
    border: 2px solid hsl(var(--gold) / .125);
    border-radius: .125rem;
    background: hsl(var(--primary) / .05);
    color: var(--color-text-primary);
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
	transition: all 0.3s ease;
}

.plan-simulator__choice.is-selected {
    border-color: hsl(var(--gold));
    background: var(--color-background-wash);
    color: hsl(var(--primary))
}

.plan-simulator__choice.is-selected:before {
    position: absolute;
	display: block;
	font-family: "iconfont" !important;
	content: "\eaf1";
	text-align: center;
	font-size: 0.75rem;
	padding: 2px;
	width: 1.125rem;
	height: 1.125rem;
	top: 5px;
	right: 5px;
	border-radius: 999px;
	color: hsl(var(--primary-foreground));
	background: hsl(var(--gold))
}

.quantity-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	width: 100%;
	margin-top: 5px;
	overflow: hidden;
	background-color: #fff;
}

.stepper-btn {
	width: 48px;
	height: 32px;
	border: none;
	background-color: rgb(181 209 255 / 0.1);
	color: #d99726;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
}

.stepper-btn:hover:not(.is-disabled) {
	background-color: rgb(181 209 255 / 0.2)
}

.stepper-btn.is-disabled {
	background-color: #f0f0f0;
	color: #c0c4cc;
	cursor: not-allowed;
}

.plan-simulator__qty {
	width: 100%;
	height: 32px;
	border: none;
	text-align: center;
	font-size: 14px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.plan-simulator__qty:disabled {
  background-color: #f0f0f0;
  color: #999;
  cursor: not-allowed;
}

.plan-simulator__qty:focus {
	outline: none;
}

.plan-simulator__arrow {
    width: 0;
    height: 0;
	margin-top: 28px;
	margin-bottom: 28px;
    justify-self: center;
    border-top: 12px solid var(--color-brand-primary);
    border-right: 38px solid transparent;
    border-left: 38px solid transparent
}


@media (hover: hover) {
    .plan-simulator__choice {
        transition:border-color 0.16s ease,background-color 0.16s ease,color 0.16s ease
    }

    .plan-simulator__choice:hover {
        border-color: hsl(var(--gold) / 0.75)
    }
}

@media (min-width: 768px) {
    .category-group {
        grid-template-columns:repeat(4,minmax(0,1fr))
    }
	
	.plan-simulator__total {
		font-size: 1.3125rem;
		padding: 15px 10px 15px;
	}
	
	.plan-simulator__total-price {
		min-width: 1.8em;
		margin: 0 8px;
		font-size: 2.5rem;
	}
	
	.plan-link {
		font-size: 1rem;
		padding: 10px 16px 10px 20px;
	}
}