/* ==================================================
   WEBSITE PRICE CALCULATOR  (website-price-calculator.php)
   Headings, labels and sub text come from common.css;
   the order button from buttons.css.
================================================== */

.pc {
    --pc-blue: var(--cs-c-blue, #0870af);
    --pc-title: var(--cs-c-title, #393939);
    --pc-text: var(--cs-c-text, #73777a);
    --pc-line: #dfe8ee;
    --pc-selected-bg: #eaf6fd;
    --pc-selected-line: #7cc3ea;
    --pc-green: #128c4a;
    --pc-radius: 16px;

    background: var(--cs-seam, #fcfdfe);
    color: var(--pc-title);
}

.pc *,
.pc *::before,
.pc *::after {
    box-sizing: border-box;
}

/* ---------- hero ---------- */
.pc-hero {
    padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
    background: var(--cs-grad-hero, #f1fbfe);
    border-bottom: 1px solid #e6f1f7;
}

.pc-hero .cs-hero-title {
    margin-bottom: 4px;
}

.pc-hero__ticks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.pc-hero__ticks li {
    position: relative;
    padding-left: 22px;
    color: var(--pc-title);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.pc-hero__ticks li::before {
    content: "\f00c";
    position: absolute;
    top: 1px;
    left: 0;
    color: var(--pc-blue);
    font-family: "Font Awesome 6 Free";
    font-size: 0.8rem;
    font-weight: 900;
}

/* ---------- hero: service tabs ---------- */
/* hidden blocks stay hidden even where a rule sets display (e.g. .pc-option) */
.pc [hidden] {
    display: none !important;
}

.pc-tabs-wrap {
    margin-top: 30px;
}

.pc-tabs__title {
    display: block;
    margin-bottom: 12px;
    color: var(--pc-title);
    font-size: 1.0625rem;
    font-weight: 700;
}

.pc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pc-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1.5px solid var(--pc-line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--pc-title);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pc-tab i {
    color: var(--pc-blue);
    font-size: 0.9em;
    transition: color 0.2s ease;
}

@media (hover: hover) {
    .pc-tab:hover {
        border-color: var(--pc-selected-line);
    }
}

.pc-tab.is-active {
    border-color: var(--pc-blue);
    background: var(--pc-blue);
    color: #ffffff;
}

.pc-tab.is-active i {
    color: #ffffff;
}

.pc-tab:focus-visible {
    outline: 3px solid var(--pc-blue);
    outline-offset: 3px;
}

.pc-receipt__lines .pc-receipt__empty {
    display: block;
    color: var(--pc-text);
    font-size: 0.875rem;
}

.pc-order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* phones: one scrolling row of tabs instead of many wrapped lines */
@media (max-width: 767.98px) {
    .pc-tabs {
        flex-wrap: nowrap;
        padding: 2px 2px 8px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .pc-tabs::-webkit-scrollbar {
        display: none;
    }

    .pc-tab {
        flex: 0 0 auto;
        padding: 9px 14px;
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-tab,
    .pc-tab i {
        transition: none;
    }
}

/* ---------- bottom of each tab: what other services do you need? ---------- */
.pc-more {
    margin-top: var(--cs-section-y, 60px);
    padding: 24px 22px;
    border: 1.5px dashed var(--pc-selected-line);
    border-radius: var(--pc-radius);
    background: #ffffff;
}

.pc-more__title {
    margin: 0;
    color: var(--pc-title);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.pc-more__hint {
    margin: 6px 0 18px;
    color: var(--pc-text);
    font-size: 0.9rem;
}

.pc-more__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pc-more__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 11px 14px;
    border: 1.5px solid var(--pc-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--pc-title);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* the real checkbox stays focusable but invisible; the square shows its state */
.pc-more__item input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pc-more__check {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 1.5px solid #c9d6de;
    border-radius: 6px;
    background: #ffffff;
}

.pc-more__text {
    min-width: 0;
}

.pc-more__text i {
    width: 1.1em;
    margin-right: 4px;
    color: var(--pc-blue);
    text-align: center;
}

@media (hover: hover) {
    .pc-more__item:hover {
        border-color: var(--pc-selected-line);
    }
}

.pc-more__item:has(input:checked) {
    border-color: var(--pc-selected-line);
    background: var(--pc-selected-bg);
}

.pc-more__item:has(input:checked) .pc-more__check {
    border-color: var(--pc-blue);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat,
        var(--pc-blue);
}

.pc-more__item:has(input:focus-visible) {
    outline: 3px solid var(--pc-blue);
    outline-offset: 2px;
}

/* a service added from the list scrolls into view below the fixed header */
.pc [data-svc] {
    scroll-margin-top: 120px;
}

@media (max-width: 575.98px) {
    .pc-more {
        padding: 20px 16px;
    }

    .pc-more__list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-more__item {
        transition: none;
    }
}

/* ---------- layout ---------- */
.pc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: start;
    padding-bottom: var(--cs-section-y, 60px);
}

.pc-steps {
    min-width: 0;
}

.pc-step {
    padding-top: var(--cs-section-y, 60px);
}

.pc-step .cs-title {
    margin-bottom: 26px;
}

/* ---------- shared option card (packages + add-ons) ---------- */
.pc-option {
    position: relative;
    display: block;
    border: 1.5px solid var(--pc-line);
    border-radius: var(--pc-radius);
    background: #ffffff;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.pc-package,
.pc-addon__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    gap: 6px 14px;
    height: 100%;
    padding: 20px 20px 18px;
    cursor: pointer;
}

/* the real input stays focusable but invisible; the circle shows its state */
.pc-option input[type="radio"],
.pc-option input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pc-option__check {
    grid-column: 2;
    grid-row: 1;
    width: 24px;
    height: 24px;
    border: 1.5px solid #c9d6de;
    border-radius: 50%;
    background: #ffffff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pc-option__name {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    color: var(--pc-title);
    font-size: var(--cs-fs-card-title, 1.125rem);
    font-weight: 700;
    line-height: 1.3;
}

.pc-option__desc {
    grid-column: 1 / -1;
    color: var(--pc-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.pc-option__price {
    grid-column: 1 / -1;
    margin-top: 8px;
    color: var(--pc-title);
    font-size: 1.0625rem;
    font-weight: 700;
}

.pc-package__features {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.pc-package__features li {
    position: relative;
    padding-left: 20px;
    color: var(--pc-title);
    font-size: 0.875rem;
    line-height: 1.7;
}

.pc-package__features li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    color: var(--pc-blue);
    font-family: "Font Awesome 6 Free";
    font-size: 0.7rem;
    font-weight: 900;
}

/* hover / selected / keyboard focus */
@media (hover: hover) {
    .pc-option:hover {
        border-color: var(--pc-selected-line);
    }
}

.pc-option:has(input:checked) {
    border-color: var(--pc-selected-line);
    background: var(--pc-selected-bg);
    box-shadow: 0 0 0 4px rgba(124, 195, 234, 0.22);
}

.pc-option:has(input:checked) .pc-option__check {
    border-color: var(--pc-blue);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat,
        var(--pc-blue);
}

.pc-addon .pc-option__check {
    border-radius: 7px;
}

.pc-option:has(input:focus-visible) {
    outline: 3px solid var(--pc-blue);
    outline-offset: 3px;
}

/* ---------- step 1: packages ---------- */
.pc-packages,
.pc-addons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pc-package .pc-option__price {
    margin-top: auto;
    padding-top: 10px;
    font-size: 1.25rem;
}

/* ---------- step 2: pages ---------- */
.pc-pages__status {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 16px;
    color: var(--pc-title);
    font-size: 0.9375rem;
    font-weight: 600;
}

.pc-pages__note {
    color: var(--pc-text);
    font-weight: 500;
}

.pc-pages__note.is-extra {
    color: var(--pc-blue);
    font-weight: 600;
}

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

.pc-page {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px solid var(--pc-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--pc-title);
    font-size: 0.9375rem;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pc-page input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--pc-blue);
    cursor: inherit;
}

.pc-page small {
    color: var(--pc-text);
    font-size: 0.75rem;
}

.pc-page:has(input:checked) {
    border-color: var(--pc-selected-line);
    background: var(--pc-selected-bg);
}

.pc-page--locked {
    cursor: not-allowed;
}

@media (hover: hover) {
    .pc-page:not(.pc-page--locked):hover {
        border-color: var(--pc-selected-line);
    }
}

/* number pickers */
.pc-counters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.pc-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1.5px solid var(--pc-line);
    border-radius: 12px;
    background: #ffffff;
}

.pc-counter__label {
    display: block;
    color: var(--pc-title);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
}

.pc-counter__hint {
    display: block;
    margin-top: 2px;
    color: var(--pc-text);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.pc-stepper {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    border: 1.5px solid var(--pc-line);
    border-radius: 50px;
    background: #ffffff;
}

.pc-stepper button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--pc-blue);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.pc-stepper button:hover:not(:disabled) {
    background: var(--pc-selected-bg);
}

.pc-stepper button:disabled {
    color: #b8c5cd;
    cursor: default;
}

.pc-stepper input {
    width: 38px;
    border: 0;
    background: transparent;
    color: var(--pc-title);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.pc-stepper input::-webkit-outer-spin-button,
.pc-stepper input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.pc-stepper input:focus-visible,
.pc-stepper button:focus-visible {
    outline: 2px solid var(--pc-blue);
    outline-offset: 1px;
}

/* ---------- step 3: add-ons ---------- */
.pc-addon__main {
    height: auto;
}

.pc-counter--inline {
    margin: 0 14px 14px;
}

.pc-counter--inline[hidden] {
    display: none;
}

/* ---------- step 5: branding groups ---------- */
.pc-group + .pc-group {
    margin-top: 34px;
}

.pc-group__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 0 0 14px;
    color: var(--pc-title);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.pc-group__title small {
    color: var(--pc-text);
    font-size: 0.8125rem;
    font-weight: 500;
}

.pc-counter--group {
    margin-top: 18px;
}

.pc-counter--group[hidden] {
    display: none;
}

/* ---------- order summary (receipt) ---------- */
.pc-summary {
    position: sticky;
    top: 110px;
    margin-top: var(--cs-section-y, 60px);
}

.pc-receipt {
    position: relative;
    padding: 22px 22px 18px;
    border: 1px solid #e3eaef;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: #ffffff;
    box-shadow: 0 24px 50px -34px rgba(8, 60, 100, 0.45);
    font-size: 0.875rem;
}

/* torn paper edge */
.pc-receipt::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -10px;
    left: -1px;
    height: 10px;
    background:
        linear-gradient(-45deg, transparent 6.5px, #ffffff 7px) 0 0 / 12px 10px repeat-x,
        linear-gradient(45deg, transparent 6.5px, #ffffff 7px) 0 0 / 12px 10px repeat-x;
    filter: drop-shadow(0 1px 0 #e3eaef);
}

.pc-receipt__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf1f4;
}

.pc-receipt__title {
    margin: 0 0 2px;
    color: var(--pc-title);
    font-size: 1rem;
    font-weight: 700;
}

.pc-receipt__meta {
    color: var(--pc-text);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.pc-receipt__date {
    text-align: right;
    white-space: pre-line;
}

.pc-receipt__lines {
    margin: 0;
    padding: 6px 0 14px;
    border-bottom: 1px dashed #d5dfe6;
    list-style: none;
}

.pc-receipt__lines li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 9px 0;
    color: var(--pc-title);
    line-height: 1.4;
}

.pc-receipt__lines li + li {
    border-top: 1px solid #f1f4f6;
}

.pc-receipt__lines small {
    display: block;
    margin-top: 2px;
    color: var(--pc-text);
    font-size: 0.75rem;
}

.pc-receipt__lines b {
    flex: 0 0 auto;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pc-receipt__lines .is-free {
    color: var(--pc-green);
}

.pc-receipt__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 16px 0 6px;
}

.pc-receipt__total span {
    color: var(--pc-text);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pc-receipt__total strong {
    color: var(--pc-title);
    font-size: clamp(1.75rem, 1.4rem + 1vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.pc-receipt__note {
    margin: 8px 0 0;
    color: var(--pc-text);
    font-size: 0.78rem;
    line-height: 1.55;
}

.pc-receipt__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #d5dfe6;
    color: var(--pc-text);
    font-size: 0.75rem;
}

.pc-receipt__barcode {
    width: 92px;
    height: 22px;
    background: repeating-linear-gradient(90deg,
            #393939 0 2px, transparent 2px 4px,
            #393939 4px 5px, transparent 5px 8px,
            #393939 8px 11px, transparent 11px 12px);
    opacity: 0.75;
}

.pc-order {
    width: 100%;
    margin-top: 26px;
}

.pc-howto {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: pc-howto;
}

.pc-howto li {
    position: relative;
    padding: 4px 0 4px 32px;
    color: var(--pc-title);
    font-size: 0.85rem;
    line-height: 1.5;
    counter-increment: pc-howto;
}

.pc-howto li::before {
    content: counter(pc-howto);
    position: absolute;
    top: 4px;
    left: 0;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pc-title);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ---------- small desktop ---------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .pc-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 36px;
    }

    .pc-pages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- tablet & phone: summary under the steps ---------- */
@media (max-width: 991.98px) {
    .pc-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .pc-summary {
        position: static;
        max-width: 520px;
        width: 100%;
        margin-inline: auto;
    }
}

@media (max-width: 767.98px) {
    .pc-packages,
    .pc-addons,
    .pc-counters {
        grid-template-columns: minmax(0, 1fr);
    }

    .pc-pages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .pc-hero__ticks {
        gap: 8px 18px;
    }

    .pc-hero__ticks li {
        font-size: 0.875rem;
    }

    .pc-page {
        gap: 9px;
        padding: 9px 11px;
        font-size: 0.875rem;
    }

    .pc-package,
    .pc-addon__main {
        padding: 18px 16px 16px;
    }

    .pc-counter {
        padding: 10px 12px;
    }
}

@media (max-width: 359.98px) {
    .pc-pages {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-option,
    .pc-page,
    .pc-option__check {
        transition: none;
    }
}

/* ---------- regular (crossed-out) prices + offer ---------- */
.pc-was,
.pc-hero__ticks s {
    color: #9aa5ad;
    font-weight: 500;
    text-decoration-thickness: 1.5px;
}

.pc-option__price .pc-was {
    margin-right: 4px;
    font-size: 0.85em;
}

.pc-offer {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 9px;
    border-radius: 50px;
    background: #e3f6ea;
    color: var(--pc-green);
    font-size: 0.6875rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.pc-hero__was {
    display: inline-block;
    margin-left: 10px;
    color: #9aa5ad;
    font-size: 0.5em;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration-thickness: 2px;
    vertical-align: middle;
}

.pc-receipt__lines .pc-was {
    margin-right: 2px;
    font-size: 0.75rem;
}

.pc-receipt__savings {
    padding: 12px 0 0;
    font-size: 0.8125rem;
}

.pc-receipt__savings > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
    color: var(--pc-text);
}

.pc-receipt__savings s {
    font-variant-numeric: tabular-nums;
}

.pc-receipt__save {
    color: var(--pc-green) !important;
    font-weight: 600;
}

.pc-receipt__save b {
    font-variant-numeric: tabular-nums;
}

/* ==================================================
   BILL ANIMATIONS (driven by assets/js/price-calculator.js)
================================================== */

/* "Updated" badge next to the title */
.pc-receipt__title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pc-receipt__badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 50px;
    background: var(--pc-blue);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    opacity: 0;
}

.pc-receipt__badge.is-on {
    animation: pcBadge 2.6s ease forwards;
}

@keyframes pcBadge {
    0%   { opacity: 0; transform: scale(0.6); }
    10%  { opacity: 1; transform: scale(1.08); }
    18%  { transform: scale(1); }
    80%  { opacity: 1; }
    100% { opacity: 0; }
}

/* a line that just appeared slides in from the left, tinted blue */
.pc-receipt__lines li.is-new {
    animation: pcLineIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pcLineIn {
    0%   { opacity: 0; transform: translateX(-14px); background: #e6f4fc; }
    35%  { opacity: 1; transform: translateX(-4px); background: #e6f4fc; }
    100% { transform: none; background: transparent; }
}

/* a line whose amount changed flashes blue */
.pc-receipt__lines li.is-changed {
    animation: pcLineChange 0.9s ease;
}

@keyframes pcLineChange {
    0%, 30% { background: #e6f4fc; }
    100%    { background: transparent; }
}

/* tint reaches the receipt edges */
.pc-receipt__lines li.is-new,
.pc-receipt__lines li.is-changed {
    margin-inline: -10px;
    padding-inline: 10px;
    border-radius: 8px;
}

/* the total gives a small pop while it counts */
#pc-total.is-bump {
    display: inline-block;
    animation: pcBump 0.55s ease;
}

@keyframes pcBump {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.06); color: var(--pc-blue); }
    100% { transform: scale(1); }
}

/* barcode redraws left to right */
.pc-receipt__barcode.is-drawing {
    animation: pcBarcode 0.7s steps(14, end);
}

@keyframes pcBarcode {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}

/* idle shine: a diagonal band of light sweeping across the bill */
.pc-receipt__shine {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.pc-receipt__shine::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 55%;
    height: 200%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.55) 40%,
            rgba(255, 255, 255, 0.85) 50%,
            rgba(255, 255, 255, 0.55) 60%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg) translateX(0);
    opacity: 0;
}

.pc-receipt.is-shining .pc-receipt__shine::before {
    animation: pcShine 1.1s ease-in-out;
}

@keyframes pcShine {
    0%   { opacity: 1; transform: rotate(25deg) translateX(0); }
    100% { opacity: 1; transform: rotate(25deg) translateX(420%); }
}

@media (prefers-reduced-motion: reduce) {
    .pc-receipt__badge.is-on,
    .pc-receipt__lines li.is-new,
    .pc-receipt__lines li.is-changed,
    #pc-total.is-bump,
    .pc-receipt__barcode.is-drawing,
    .pc-receipt.is-shining .pc-receipt__shine::before {
        animation: none;
    }

    .pc-receipt__badge.is-on {
        opacity: 1;
    }
}

.pc-receipt__badge[hidden] {
    display: none;
}
