:root {
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

    /* cores do store 2026 */
    --store-yellow: #f8dc51;
    --store-yellow-bg: rgba(248, 220, 81, 0.16);
    --store-red: #d10019;
    --store-white: #fff;
    --store-shadow-soft: rgba(0, 0, 0, 0.09);
    --store-shadow: rgba(0, 0, 0, 0.1);
}

body.layout--store--2026 .main {
    width: 100%;
    align-items: center;
    padding: 48px 16px;
    max-width: none;
    margin: 0 auto;
}

body.layout--store--2026 .main #subs2026 {
    margin: 23px 0 48px;
}

/* esconde o banner de darkmode nesta página (override de outro CSS) */
body.layout--store--2026 #darkmode-banner {
    display: none !important;
}

/* reserva a faixa das tabs enquanto hidden (evita salto + flash da "pill" vazia) */
body.layout--store--2026 .main #subs2026 #tabs[hidden] {
    display: flex !important;
    visibility: hidden;
}

body.layout--store--2026 .main #subs2026 .tabs {
    background-color: var(--base-neutral-20);
    border: 1px solid var(--base-neutral-20);
    border-radius: 100px;
    height: 40px;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0 4px;
    margin: 0 auto 16px;
    width: max-content;
}

body.layout--store--2026 .main #subs2026 .tabs button {
    width: 118px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--base-neutral-50);
    font-family: var(--font-system);
    padding: 0;
    font-weight: 500;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 0;
    cursor: pointer;
}

@media (max-width: 889px) {
    body.layout--store--2026 .main #subs2026 .tabs button {
        width: 98px;
    }

}

@media (max-width: 600px) {
    body.layout--store--2026 .main #subs2026 .tabs button {
        width: 92px;
    }

}

body.layout--store--2026 .main #subs2026 .tabs button.active {
    background: var(--background);
    color: var(--foreground);
    box-shadow: 0 1px 1px 0 var(--store-shadow-soft);
    border-radius: 100px;
    height: 32px;
    display: flex;
    align-items: center;
}

body.layout--store--2026 .main #subs2026 .plans {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    padding: 16px 0 32px 0;
    gap: 0 32px;
    min-height: 560px;
    /* reserva espaço enquanto os cards carregam (evita "saltos") */
}

@media (max-width: 889px) {
    body.layout--store--2026 .main #subs2026 .plans {
        flex-flow: column wrap;
        align-items: center;
        gap: 16px 0;
    }

}

body.layout--store--2026 .main #subs2026 .plans .plan {
    position: relative;
    width: 100%;
    min-width: 100px;
    max-width: 364px;
    height: auto;
    min-height: 100px;
    border: 1px solid var(--base-neutral-30);
    border-radius: 14px;
    padding: 32px 24px 62px;
    display: flex;
    flex-flow: column wrap;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 0;
}

/* cancela o article:after (linha divisória) herdado de outro CSS */
body.layout--store--2026 .main #subs2026 .plans .plan::after {
    content: none;
}

body.layout--store--2026 .main #subs2026 .plans .plan.highlighted {
    background-color: var(--store-yellow-bg);
    border: 2px solid var(--store-yellow);
}

body.layout--store--2026 .main #subs2026 .plans .plan .plan-badge {
    font-family: var(--font-system);
    font-weight: 500;
    font-size: 12px;
    line-height: 114.99999999999999%;
    letter-spacing: 0;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 0 12px 0 14px;
    position: absolute;
    top: 0;
    right: 0;
}

body.layout--store--2026 .main #subs2026 .plans .plan .plan-badge.plan-badge-red {
    background-color: var(--store-red);
    color: var(--store-white);
}

body.layout--store--2026 .main #subs2026 .plans .plan .plan-badge.plan-badge-yellow {
    background-color: var(--store-yellow);
}

body.layout--store--2026 .main #subs2026 .plans .plan h3 {
    font-family: var(--font-system);
    color: var(--foreground);
    font-weight: 700;
    font-size: 22px;
    line-height: 135%;
    letter-spacing: 0;
    width: 100%;
    padding: 0 0 8px;
    margin: 0;
    text-align: justify;
}

body.layout--store--2026 .main #subs2026 .plans .plan .price {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: baseline;
    gap: 0 4px;
    padding: 0 0 24px;
}

body.layout--store--2026 .main #subs2026 .plans .plan .price .amount {
    font-weight: 600;
    font-size: 14px;
    line-height: 125%;
    letter-spacing: 0;
    color: var(--base-neutral-60);
}

body.layout--store--2026 .main #subs2026 .plans .plan .price .amount s {
    font-weight: 400;
}

body.layout--store--2026 .main #subs2026 .plans .plan .price .renewal-note {
    font-family: var(--font-system);
    font-weight: 400;
    font-size: 12px;
    line-height: 114.99999999999999%;
    letter-spacing: 0;
    padding: 4px 0 0;
    color: var(--base-neutral-50);
    width: 100%;
    text-align: justify;
}

body.layout--store--2026 .main #subs2026 .plans .plan .buttons {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 12px 0;
}

body.layout--store--2026 .main #subs2026 .plans .plan .buttons .btn-subscribe {
    width: 100%;
    background-color: var(--store-yellow);
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    font-family: var(--font-system);
    font-weight: 600;
    color: var(--base-neutral-80);
    font-size: 14px;
    line-height: 170%;
    letter-spacing: 0;
    text-decoration: none;
    cursor: pointer;
    border: none;
    padding: 0 24px;
}

body.layout--store--2026 .main #subs2026 .plans .plan .buttons .btn-google {
    width: 100%;
    background-color: var(--store-white);
    height: 40px;
    box-shadow: 0 1px 3px 0 var(--store-shadow);
    border-radius: 100px;
    background-image: url("https://static.publico.pt/s3/assinaturas/piano/templates/new-store-2026/products-store/subscreva-com-google.svg");
    background-size: 166px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    color: transparent;
    font-size: 0;
}

body.layout--store--2026 .main #subs2026 .plans .plan .cancel-note {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0 0;
    font-family: var(--font-system);
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    line-height: 114.99999999999999%;
    letter-spacing: 0;
    color: var(--foreground);
}

body.layout--store--2026 .main #subs2026 .plans .plan .benefits {
    width: 100%;
    min-height: 178px;
}

body.layout--store--2026 .main #subs2026 .plans .plan .features {
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 32px 0 0;
    display: flex;
    flex-flow: column wrap;
    align-items: flex-start;
    gap: 8px 0;
}

body.layout--store--2026 .main #subs2026 .plans .plan .features li {
    font-family: var(--font-system);
    font-weight: 400;
    font-size: 14px;
    line-height: 125%;
    letter-spacing: 0;
    padding: 0 0 0 26px;
    background-image: url("https://static.publico.pt/s3/assinaturas/piano/templates/new-store-2026/products-store/certo.svg");
    background-size: 18px;
    background-repeat: no-repeat;
    background-position-x: 0;
    background-position-y: center;
}

body.layout--store--2026 .main #subs2026 .plans .plan .features li strong,
body.layout--store--2026 .main #subs2026 .plans .plan .features li b {
    font-weight: 700;
    font-family: Helvetica, Arial, sans-serif;
}

body.layout--store--2026 .main #subs2026 .plans .plan .more-label {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 0 8px;
    font-family: var(--font-system);
    font-weight: 700;
    font-size: 14px;
    line-height: 125%;
    letter-spacing: 0;
    color: var(--base-neutral-50);
}

body.layout--store--2026 .main #subs2026 .plans .plan .more-label::before,
body.layout--store--2026 .main #subs2026 .plans .plan .more-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--base-neutral-30);
}

body.layout--store--2026 .main #subs2026 .plans .plan .more-label+.features {
    padding-top: 8px;
}

body.layout--store--2026 .main #subs2026 .page-footer {
    width: 100%;
    display: flex;
    flex-flow: column wrap;
    justify-content: flex-start;
    align-items: center;
}

body.layout--store--2026 .main #subs2026 .page-footer .cancel-headline {
    font-family: var(--font-system);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0;
    text-align: center;
    padding: 0 0 16px;
}

body.layout--store--2026 .main #subs2026 .page-footer .cancel-headline strong {
    font-weight: 700;
    font-family: Helvetica, Arial, sans-serif;
}

body.layout--store--2026 .main #subs2026 .page-footer .logos {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
}

body.layout--store--2026 .main #subs2026 .page-footer .logo {
    width: 48px;
    height: 32px;
    background-color: var(--base-neutral-10);
    border: 1px solid var(--base-neutral-40);
    border-radius: 4px;
    background-size: auto 16px;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 0;
    color: transparent;
}

body.layout--store--2026 .main #subs2026 .page-footer .logo.visa {
    background-image: url("https://static.publico.pt/s3/assinaturas/piano/templates/new-store-2026/products-store/visa.png");
}

body.layout--store--2026 .main #subs2026 .page-footer .logo.mc {
    background-image: url("https://static.publico.pt/s3/assinaturas/piano/templates/new-store-2026/products-store/mastercard.png");
}

body.layout--store--2026 .main #subs2026 .page-footer .logo.pp {
    background-image: url("https://static.publico.pt/s3/assinaturas/piano/templates/new-store-2026/products-store/paypal.png");
}

body.layout--store--2026 .main #subs2026 .page-footer .logo.mb {
    background-image: url("https://static.publico.pt/s3/assinaturas/piano/templates/new-store-2026/products-store/multibanco.png");
}

body.layout--store--2026 .main #subs2026 .page-footer .logo.mbway {
    background-image: url("https://static.publico.pt/s3/assinaturas/piano/templates/new-store-2026/products-store/mbway.png");
}

#subs2026 #disabled-modal,
#subs2026 #checkout-modal,
#subs2026 #paypal-success-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(18, 18, 20, 0.9);
    overflow-y: auto;
    /* permite scroll quando o conteúdo passa o ecrã */
    scrollbar-width: none;
    /* Firefox — esconde a barra */
    -ms-overflow-style: none;
    /* Edge/IE legacy */
}

#subs2026 #disabled-modal::-webkit-scrollbar,
#subs2026 #checkout-modal::-webkit-scrollbar,
#subs2026 #paypal-success-modal::-webkit-scrollbar {
    /* Chrome/Safari — esconde a barra */
    display: none;
}

#subs2026 #disabled-modal[hidden],
#subs2026 #checkout-modal[hidden],
#subs2026 #paypal-success-modal[hidden] {
    display: none;
}

#subs2026 .modal-box {
    width: 100%;
    max-width: 740px;
    margin: 50px auto;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* botão de fechar (o X) das modals */
a.custom_close {
    width: 30px;
    height: 30px;
    position: absolute;
    background: transparent url(https://static.publico.pt/s3/assinaturas/piano/templates/assets/svg/cross.svg) center center no-repeat;
    box-shadow: none;
    /* margin: 14px 0 0 -42px; */
    z-index: 9999999999999999;
    right: 8px;
    top: 8px;
}

#subs2026 .modal-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem .9rem;
    border-bottom: 1px solid var(--base-neutral-30);
    font-size: .85rem;
    color: var(--base-neutral-50);
}

#subs2026 .modal-bar button {
    border: 0;
    background: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--base-neutral-50);
}

#subs2026 #checkout-frame {
    border: 0;
    width: 100%;
    height: 740px;
    /* desktop (antes 640px) */
}

/* mobile: o modal ocupa o ecrã todo */
@media (max-width: 889px) {
    #subs2026 .modal-box {
        margin: 0;
        max-width: none;
        min-height: 100dvh;
    }

    #subs2026 #checkout-frame {
        height: 100dvh;
    }
}

#subs2026 #pending,
#subs2026 #success {
    background: #fff;
    border: 1px solid var(--base-neutral-30);
    border-radius: 12px;
    padding: 2rem;
}

#subs2026 #pending {
    text-align: center;
    max-width: 1024px;
    margin: auto;
}

#subs2026 #pending .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--base-neutral-30);
    border-top-color: var(--store-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#subs2026 #pending-progress {
    color: var(--base-neutral-50);
    font-size: .85rem;
    min-height: 1.3em;
}

#subs2026 #success {
    border-color: #bfe3c6;
}

#subs2026 #success h2 {
    color: #1a7a2e;
}

#subs2026 #success table {
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: .9rem;
}

#subs2026 #success td {
    padding: .35rem .8rem .35rem 0;
    color: var(--base-neutral-50);
}

#subs2026 #success td+td {
    color: #1a1a1a;
    font-family: ui-monospace, monospace;
}


#disabled-modal .plus-message-modal-wrapper,
#paypal-success-modal .plus-message-modal-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-flow: column wrap;
    background-color: var(--background);
    align-items: center;
}

#disabled-modal .plus-message-modal-wrapper .header-wrapper,
#paypal-success-modal .plus-message-modal-wrapper .header-wrapper {
    width: 100%;
    height: 157px;
    background-color: #FFFCEF;
    background-image: url("https://static.publico.pt/s3/assinaturas/piano/premium/image.png");
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-top: 2px solid var(--subscriptions-main);
}

#disabled-modal .plus-message-modal-wrapper .content-wrapper,
#paypal-success-modal .plus-message-modal-wrapper .content-wrapper {
    padding: 1.88rem 1.88rem 1rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column wrap;
    width: 100%;
}

#disabled-modal .user-plus h3.user-plus__title,
#paypal-success-modal .user-plus h3.user-plus__title {
    color: var(--neutral-90);
    font-weight: 590;
    text-transform: uppercase
}

#disabled-modal .user-plus h3.user-plus__title,
#paypal-success-modal .user-plus h3.user-plus__title {
    color: var(--neutral-90);
    text-align: center;
    font-size: 1.3rem;
    font-style: normal;
    font-weight: 590;
    line-height: normal;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 1.69rem;
    font-family: var(--font-family);
}

#disabled-modal .pn-state-line,
#paypal-success-modal .pn-state-line {
    margin: 0 0 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#disabled-modal ul,
#paypal-success-modal ul {
    list-style: none;
}

#disabled-modal .pn-state-line__item,
#paypal-success-modal .pn-state-line__item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 32px;
    border: 1px solid #cacbcc;
}

#disabled-modal .pn-state-line__item svg,
#paypal-success-modal .pn-state-line__item svg {
    fill: #cacbcc;
}

#disabled-modal .pn-state-line__divider,
#paypal-success-modal .pn-state-line__divider {
    width: 58px;
    height: 1px;
    border: none;
    background-color: #cacbcc;
}

#disabled-modal .pn-state-line__item--active,
#paypal-success-modal .pn-state-line__item--active {
    border-color: #393;
}

/* SECTION_SUBSCRIPTION */

#disabled-modal .subscription-section__content__text__description,
#paypal-success-modal .subscription-section__content__text__description {
    color: var(--neutral-80, #1A1E22);
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 135%;
    margin: 12px 0 0;
    font-family: var(--font-family);
}

#disabled-modal .terms-privacy-wrapper,
#paypal-success-modal .terms-privacy-wrapper {
    color: var(--neutral-60, #64676B);
    font-family: var(--font-family);
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    cursor: pointer;
    margin-top: 32px;
}

#disabled-modal .terms-privacy-wrapper a,
#paypal-success-modal .terms-privacy-wrapper a {
    color: inherit;
    text-decoration: none;
}

#disabled-modal .subscription-section__content__text__description,
#paypal-success-modal .subscription-section__content__text__description {
    color: #000;
    font-family: var(--font-family);
    color: #000;
    font-family: var(--font-family);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

#disabled-modal .btn-homepage,
#disabled-modal .btn-subscription,
#paypal-success-modal .btn-homepage,
#paypal-success-modal .btn-subscription {
    display: flex;
    padding: 9px 24px 10px 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 178px;
    height: 40px;
}

#disabled-modal .btn-homepage,
#paypal-success-modal .btn-homepage {
    border-radius: 100px;
    border: 1px solid var(--neutral-80, #1A1E22);
    color: var(--neutral-80, #1A1E22);
    text-align: center;
    font-family: var(--font-family);
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
}

#disabled-modal .btn-subscription,
#paypal-success-modal .btn-subscription {
    color: var(--neutral-10, #FCFCFC);
    text-align: center;
    font-family: var(--font-family);
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    border-radius: 100px;
    background: var(--brand-primary, #D10019);
    text-decoration: none;
}

@media screen and (max-width: 734px) {

    #disabled-modal .subscription-section,
    #paypal-success-modal .subscription-section {
        display: block;
    }

    #disabled-modal .plus-message-modal-wrapper .header-wrapper,
    #paypal-success-modal .plus-message-modal-wrapper .header-wrapper {
        height: 58px;
        background-image: url("https://static.publico.pt/s3/assinaturas/piano/premium/mobile_upgrade.png");
    }

    #disabled-modal .plus-message-modal-wrapper .content-wrapper,
    #paypal-success-modal .plus-message-modal-wrapper .content-wrapper {
        padding: 32px 16px 20px;
    }

    #disabled-modal .subscription-section__buttons,
    #paypal-success-modal .subscription-section__buttons {
        display: block;
        margin-top: 24px
    }

    #disabled-modal .subscription-section__buttons a,
    #paypal-success-modal .subscription-section__buttons a {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    #disabled-modal .subscription-section__buttons a:last-child,
    #paypal-success-modal .subscription-section__buttons a:last-child {
        margin-bottom: 0;
    }
}

@media screen and (min-width: 735px) {

    #disabled-modal .subscription-section__buttons,
    #paypal-success-modal .subscription-section__buttons {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 48px;
    }
}


#paypal-success-modal .plus-message-modal-wrapper .header-wrapper {
    background-image: url("https://static.publico.pt/s3/assinaturas/piano/premium/paypal_pop.png");
}

/* Estilo do Erro */
#subs2026 #error {
    color: rgb(209, 0, 25);
    max-width: 1024px;
    margin: auto;
    text-align: center;
}

/* Nova Loja mas com Layout dos produtos antigo */
body.layout--store--2026 .main #subs2026.old {
    margin-top: 0px;
}

body.layout--store--2026 .main #subs2026.old .plans {
    padding-top: 0px;
}