.hb-page .hb-calculation {
    position: relative;
    margin-top: 8px;
    color: #21162e;
}
.hb-page .hb-calculation[open] {
    border: 1px solid #eed9ec;
    border-radius: 17px;
    background: #fff;
}
.hb-calculation summary {
    cursor: pointer;
    list-style: none;
}
.hb-calculation summary::-webkit-details-marker { display: none; }
.hb-calculation summary:focus-visible {
    outline: 2px solid #78238a;
    outline-offset: -3px;
}
.hb-calculation > .hb-calculation-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 4px 8px;
    border-radius: 10px;
    color: #9500e8;
    font-size: 13px;
    font-weight: 750;
}
.hb-calculation-toggle > .hb-icon { width: 15px; height: 15px; }
.hb-calculation:not([open]) .hb-calculation-expanded,
.hb-calculation[open] .hb-calculation-collapsed { display: none; }
.hb-calculation[open] > .hb-calculation-toggle {
    justify-content: space-between;
    min-height: 48px;
    padding: 8px 48px 8px 12px;
    color: #21162e;
    font-size: clamp(14px, 4vw, 22px);
    font-weight: 800;
}
.hb-calculation-expanded {
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.25;
}
.hb-calculation[open] > summary > .hb-icon { transform: rotate(180deg); }
.hb-calculation-expanded .hb-icon { color: #bd2899; }
.hb-calculation-body { padding: 5px 10px 10px; }
.hb-calculation dl, .hb-calculation dd { margin: 0; }
.hb-price-info > summary {
    position: absolute;
    inset-block-start: 2px;
    inset-inline-end: 2px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
}
.hb-price-help {
    margin-bottom: 9px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #faf3fb;
    color: #594565;
    font-size: 12px;
    line-height: 1.55;
}
.hb-price-help p { margin: 0; }
.hb-price-help p + p { margin-top: 5px; }
.hb-calculation-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 9px;
}
.hb-shopee-price, .hb-actual-price {
    min-width: 0;
    padding: 8px;
    border: 1px solid #eee7f1;
    border-radius: 11px;
    font-size: clamp(11px, 3.25vw, 15px);
    line-height: 1.3;
}
.hb-shopee-price {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f6f2f7;
    color: #4d4354;
}
.hb-shopee-price .hb-icon { color: #ee4d2d; }
.hb-shopee-price strong {
    display: block;
    margin-top: 4px;
    font-size: clamp(12px, 4vw, 24px);
    font-weight: 700;
    overflow-wrap: anywhere;
}
.hb-actual-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
    background: #fff;
    border-color: #efb1d5;
    cursor: text;
    font-weight: 750;
}
.hb-actual-price:focus-within {
    border-color: #e50079;
    box-shadow: 0 0 0 1px #e50079;
}
.hb-actual-price-value {
    position: relative;
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 3px;
    color: #a0065f;
    font-size: clamp(12px, 4vw, 24px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.hb-actual-price-value input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    caret-color: #e50079;
    outline: none;
}
.hb-actual-price-value input::placeholder { color: #77707d; opacity: 1; font-weight: 500; }
.hb-actual-price-value:has(input:placeholder-shown) { color: #77707d; font-weight: 500; }
.hb-actual-price-value:has(input:placeholder-shown:not(:focus))::before {
    position: absolute;
    inset: 0 auto 0 -3px;
    border-left: 1px solid #e50079;
    content: '';
    pointer-events: none;
    animation: hb-price-caret 1s step-end 3;
}
@keyframes hb-price-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .hb-actual-price-value:has(input:placeholder-shown:not(:focus))::before { animation: none; }
}
.hb-actual-price-status {
    margin: 0 0 8px;
    color: #7c345c;
    font-size: 12px;
    line-height: 1.4;
}
.hb-calculation .hb-icon { width: 17px; height: 17px; flex: none; }
.hb-calculation-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    border-top: 1px solid #eedfed;
    font-size: clamp(11px, 3.25vw, 16px);
    line-height: 1.35;
}
.hb-calculation-line > dt, .hb-calculation-cost { display: flex; align-items: center; gap: 7px; }
.hb-calculation-line > dd, .hb-calculation-split dd {
    text-align: right;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    max-width: 15ch;
    overflow-wrap: anywhere;
}
.hb-calculation-line .hb-icon, .hb-calculation-cost .hb-icon { color: #bd2899; }
.hb-calculation-commission > summary {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    font-weight: 800;
}
.hb-calculation-commission:not([open]) > summary .hb-icon:last-child { transform: rotate(-90deg); }
.hb-calculation-split {
    margin-bottom: 6px;
    padding: 5px 8px;
    border-radius: 9px;
    background: #f8edf8;
    font-size: clamp(11px, 3.2vw, 14px);
    line-height: 1.4;
}
.hb-calculation-split > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 7px;
    padding: 2px 0;
}
.hb-calculation-split small, .hb-calculation-member small { color: #6d5a77; }
.hb-calculation-member > dd {
    color: #c00069;
    font-weight: 800;
}
.hb-calculation-cost {
    margin-top: 5px;
    padding: 8px;
    border-radius: 10px;
    background: #fbe7f5;
    font-size: clamp(11px, 3.25vw, 16px);
    font-weight: 750;
}
.hb-calculation-cost > span { flex: 1; }
.hb-calculation-cost strong {
    color: #bf087d;
    text-align: right;
    font-size: clamp(13px, 4.15vw, 23px);
    max-width: 15ch;
    overflow-wrap: anywhere;
}
.hb-calculation-note {
    margin: 0;
    padding: 0 10px 10px;
    color: #695776;
    font-size: 11px;
    line-height: 1.45;
}
@media (max-width: 360px) {
    .hb-calculation-overview .hb-icon { width: 14px; height: 14px; }
}

.hb-calculation-promotion[hidden] { display: none; }
.hb-calculation-promotion small { color: #6d5a77; }
.hb-calculation-promotion > dd { color: #aa1468; font-weight: 700; }
