.wcpmd-badges {
    margin-top: 8px;
}

.wcpmd-badge {
    display: inline-flex;
    font-family: var(--wcpmd-font, 'Plus Jakarta Sans', sans-serif);
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e8f7ee;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid #bbf7d0;
}

.wcpmd-shortcode-text {
    padding: 12px 14px;
    font-family: var(--wcpmd-font, 'Plus Jakarta Sans', sans-serif);
    border-radius: 10px;
    background: #f5fff8;
    border: 1px solid #c7f3d4;
    color: #14532d;
    font-weight: 600;
}


 .wcpmd-checkout-notice {
    margin: 0 0 14px;
    font-family: var(--wcpmd-font, 'Plus Jakarta Sans', sans-serif);
    padding: 14px 18px;
    border: 1px solid var(--wcpmd-border, #3b82f6);
    border-left-width: 5px;
    border-radius: 12px;
    background: var(--wcpmd-bg, #f3f4f6);
    color: var(--wcpmd-title, #1f3b72);
}

.wcpmd-checkout-notice__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.wcpmd-checkout-notice__title {
    font-size: 19px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 4px;
}

.wcpmd-checkout-notice__text {
    margin: 0;
    color: var(--wcpmd-text, #2a4d88);
    font-size: 13px;
    line-height: 1.35;
}

.wcpmd-checkout-notice__saving {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--wcpmd-pill-bg, #4f8cdc);
    color: var(--wcpmd-pill-text, #ffffff);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.wcpmd-checkout-notice__groups {
    display: grid;
    gap: 8px;
}

.wcpmd-checkout-notice__group {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(59, 130, 246, 0.16);
    border-radius: 10px;
    padding: 10px 12px;
}

.wcpmd-checkout-notice__group-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--wcpmd-title, #1f3b72);
    margin-bottom: 5px;
}

.wcpmd-checkout-notice__list {
    margin: 0;
    padding-left: 16px;
}

.wcpmd-checkout-notice__list li {
    margin: 5px 0;
}

.wcpmd-checkout-notice__item-head {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
}

.wcpmd-checkout-notice__discount {
    font-weight: 800;
    color: var(--wcpmd-title, #1f3b72);
}

.wcpmd-checkout-notice__item-desc {
    color: var(--wcpmd-text, #2a4d88);
    font-size: 12px;
    line-height: 1.35;
    margin-top: 2px;
}

.wcpmd-checkout-notice__pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    margin-left: 0;
    border-radius: 999px;
    background: var(--wcpmd-pill-bg, #4f8cdc);
    color: var(--wcpmd-pill-text, #ffffff);
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .wcpmd-checkout-notice {
        padding: 12px 14px;
    }

    .wcpmd-checkout-notice__head {
        display: block;
    }

    .wcpmd-checkout-notice__title {
        font-size: 17px;
    }

    .wcpmd-checkout-notice__saving {
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }

    .wcpmd-checkout-notice__group {
        padding: 9px 10px;
    }
}

.wcpmd-discount-price {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    line-height: 1.25;
}

.wcpmd-discount-price__label {
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    opacity: .8;
}

.wcpmd-discount-price__original {
    opacity: .65;
    font-size: .92em;
}

.wcpmd-discount-price__discounted {
    text-decoration: none;
    font-weight: 700;
}

/* Modal de formas de pagamento na página do produto */
.wcpmd-payment-modal-wrap {
    display: block;
    margin: 14px 0;
    font-family: var(--wcpmd-font, 'Plus Jakarta Sans', sans-serif);
}

.wcpmd-payment-modal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 420px;
    border: 1px solid #ff5a00;
    background: #ffffff;
    color: #ff5a00;
    border-radius: 10px;
    padding: 13px 16px;
    font-family: var(--wcpmd-font, 'Plus Jakarta Sans', sans-serif);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: all .2s ease;
}

.wcpmd-payment-modal-button:hover,
.wcpmd-payment-modal-button:focus {
    background: #fff4ed;
    color: #ff5a00;
    border-color: #ff5a00;
    outline: none;
}

.wcpmd-payment-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 44px 16px;
}

.wcpmd-payment-modal.is-open {
    display: flex;
}

.wcpmd-payment-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .58);
}

.wcpmd-payment-modal__dialog {
    position: relative;
    width: min(480px, 100%);
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 5px;
    padding: 28px 24px 24px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}

.wcpmd-payment-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #ff5a00;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.wcpmd-payment-modal__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 44px 18px 0;
    color: #3f444d;
    font-family: var(--wcpmd-font, 'Plus Jakarta Sans', sans-serif);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    text-transform: uppercase;
}

.wcpmd-payment-modal__title span {
    color: #ff5a00;
    font-size: 18px;
}

.wcpmd-payment-option {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 15px 14px;
    margin-top: 14px;
    background: #ffffff;
}

.wcpmd-payment-option--featured {
    border-color: #ff5a00;
}

.wcpmd-payment-option__header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.wcpmd-payment-option__icon {
    min-width: 28px;
    color: #ff5a00;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.wcpmd-payment-option__price {
    margin-left: auto;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    color: #ff5a00;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

.wcpmd-payment-option__price span {
    color: #3f444d;
    font-size: 12px;
    font-weight: 800;
}

.wcpmd-payment-option__description {
    margin: 14px 0 8px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.45;
}

.wcpmd-modal-installments {
    margin-top: 10px;
    font-size: 12px;
    color: #3f444d;
}

.wcpmd-modal-installments__head,
.wcpmd-modal-installments__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 5px 8px;
}

.wcpmd-modal-installments__head {
    background: transparent;
    font-weight: 500;
    padding-top: 0;
}

.wcpmd-modal-installments__row:nth-child(even) {
    background: #f1f2f4;
}

.wcpmd-modal-installments__row:nth-child(odd) {
    background: #fafafa;
}

.wcpmd-payment-option__cards {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 12px;
}

body.wcpmd-modal-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .wcpmd-payment-modal {
        padding: 20px 10px;
    }

    .wcpmd-payment-modal__dialog {
        max-height: calc(100vh - 40px);
        padding: 24px 16px 18px;
    }

    .wcpmd-payment-option__header {
        align-items: flex-start;
    }

    .wcpmd-payment-option__price {
        flex-direction: column;
        align-items: flex-end;
        gap: 1px;
    }

    .wcpmd-modal-installments__head,
    .wcpmd-modal-installments__row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* Aviso visual compacto no checkout */
.wcpmd-checkout-notice {
    padding: 12px 14px;
    border-left-width: 4px;
}

.wcpmd-checkout-notice__head {
    margin-bottom: 8px;
}

.wcpmd-checkout-notice__main {
    min-width: 0;
}

.wcpmd-checkout-notice__title {
    font-size: 16px;
    margin-bottom: 2px;
}

.wcpmd-checkout-notice__text {
    font-size: 12px;
    line-height: 1.3;
}

.wcpmd-checkout-notice__saving {
    padding: 6px 9px;
    font-size: 12px;
}

.wcpmd-checkout-notice__rules {
    display: grid;
    gap: 6px;
}

.wcpmd-checkout-notice__method {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 8px 10px;
    border: 1px solid rgba(59, 130, 246, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.72);
}

.wcpmd-checkout-notice__method-name {
    color: var(--wcpmd-title, #1f3b72);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.wcpmd-checkout-notice__rule + .wcpmd-checkout-notice__rule {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(59, 130, 246, 0.18);
}

.wcpmd-checkout-notice__rule-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--wcpmd-title, #1f3b72);
    font-size: 12px;
    line-height: 1.25;
}

.wcpmd-checkout-notice__conditions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 3px;
    color: var(--wcpmd-text, #2a4d88);
    font-size: 11px;
    line-height: 1.3;
}

.wcpmd-checkout-notice__details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--wcpmd-title, #1f3b72);
    font-family: var(--wcpmd-font, 'Plus Jakarta Sans', sans-serif);
    font-size: 12px;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.wcpmd-checkout-rules-modal .wcpmd-payment-modal__dialog {
    width: min(560px, 100%);
}

.wcpmd-checkout-rules-modal__group {
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
}

.wcpmd-checkout-rules-modal__group:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.wcpmd-checkout-rules-modal__group h4 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.wcpmd-checkout-rules-modal__item {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #fafafa;
}

.wcpmd-checkout-rules-modal__item + .wcpmd-checkout-rules-modal__item {
    margin-top: 8px;
}

.wcpmd-checkout-rules-modal__item strong {
    display: block;
    color: #111827;
    font-size: 13px;
    line-height: 1.3;
}

.wcpmd-checkout-rules-modal__item p {
    margin: 6px 0 0;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .wcpmd-checkout-notice__head {
        display: flex;
        align-items: flex-start;
    }

    .wcpmd-checkout-notice__saving {
        width: auto;
        margin-top: 0;
    }

    .wcpmd-checkout-notice__method {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media (max-width: 520px) {
    .wcpmd-checkout-notice__head {
        display: block;
    }

    .wcpmd-checkout-notice__saving {
        width: 100%;
        margin-top: 7px;
    }
}

/* Banner do checkout — estrutura limpa solicitada */
.wcpmd-checkout-notice.wcpmd-checkout-notice--clean {
    margin: 0 0 14px;
    padding: 12px 16px 11px;
    border: 1px solid var(--wcpmd-border, #3b82f6);
    border-left-width: 4px;
    border-radius: 11px;
    background: var(--wcpmd-bg, #f3f4f6);
    color: var(--wcpmd-title, #1f3b72);
    font-family: var(--wcpmd-font, 'Plus Jakarta Sans', sans-serif);
}

.wcpmd-checkout-notice--clean .wcpmd-checkout-notice__title {
    margin: 0 0 2px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 850;
}

.wcpmd-checkout-notice--clean .wcpmd-checkout-notice__text {
    margin: 0 0 8px;
    color: var(--wcpmd-text, #2a4d88);
    font-size: 12px;
    line-height: 1.3;
}

.wcpmd-checkout-notice--clean .wcpmd-checkout-notice__summary-list {
    display: grid;
    gap: 6px;
}

.wcpmd-checkout-notice--clean .wcpmd-checkout-notice__summary-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 8px 10px;
    border: 1px solid rgba(59, 130, 246, .12);
    border-radius: 9px;
    background: rgba(255,255,255,.65);
}

.wcpmd-checkout-notice--clean .wcpmd-checkout-notice__method-name {
    color: var(--wcpmd-title, #1f3b72);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
}

.wcpmd-checkout-notice--clean .wcpmd-checkout-notice__count {
    color: var(--wcpmd-title, #1f3b72);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
}

.wcpmd-checkout-notice--clean .wcpmd-checkout-notice__conditions-inline {
    color: var(--wcpmd-text, #2a4d88);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
}

.wcpmd-checkout-notice--clean .wcpmd-checkout-notice__saving {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--wcpmd-pill-bg, #4f8cdc);
    color: var(--wcpmd-pill-text, #ffffff);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.wcpmd-checkout-notice--clean .wcpmd-checkout-notice__details-button {
    display: inline-flex;
    align-items: center;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--wcpmd-title, #1f3b72);
    font-family: var(--wcpmd-font, 'Plus Jakarta Sans', sans-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: underline;
    cursor: pointer;
}

.wcpmd-checkout-notice--clean .wcpmd-checkout-notice__details-button:hover,
.wcpmd-checkout-notice--clean .wcpmd-checkout-notice__details-button:focus {
    background: transparent;
    color: var(--wcpmd-title, #1f3b72);
    outline: none;
    opacity: .85;
}

@media (max-width: 767px) {
    .wcpmd-checkout-notice.wcpmd-checkout-notice--clean {
        padding: 11px 12px 10px;
    }

    .wcpmd-checkout-notice--clean .wcpmd-checkout-notice__summary-row {
        align-items: flex-start;
    }

    .wcpmd-checkout-notice--clean .wcpmd-checkout-notice__saving {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }
}

/* Modal do checkout — explicação da aplicação dos descontos */
.wcpmd-checkout-rules-modal__intro {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    border-radius: 9px;
    background: #eff6ff;
}

.wcpmd-checkout-rules-modal__intro strong {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
}

.wcpmd-checkout-rules-modal__intro p,
.wcpmd-checkout-rules-modal__group-note {
    margin: 6px 0 0;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.45;
}

.wcpmd-checkout-rules-modal__group-note {
    margin: -4px 0 10px;
}

/* Modal do checkout — versão compacta */
.wcpmd-checkout-rules-modal .wcpmd-payment-modal__dialog {
    width: min(520px, 100%);
}

.wcpmd-checkout-rules-modal__intro {
    margin-bottom: 10px;
    padding: 8px 10px;
}

.wcpmd-checkout-rules-modal__intro p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
}

.wcpmd-checkout-rules-modal__group {
    padding: 8px 0;
}

.wcpmd-checkout-rules-modal__group h4 {
    margin-bottom: 8px;
}

.wcpmd-checkout-rules-modal__item {
    padding: 9px 10px;
}

.wcpmd-checkout-rules-modal__item + .wcpmd-checkout-rules-modal__item {
    margin-top: 6px;
}

.wcpmd-checkout-rules-modal__item p {
    margin-top: 4px;
    line-height: 1.35;
}

.wcpmd-checkout-rules-modal__products {
    margin-top: 5px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.35;
}

.wcpmd-checkout-rules-modal__products summary {
    color: var(--wcpmd-title, #1f3b72);
    font-weight: 800;
    cursor: pointer;
}

.wcpmd-checkout-rules-modal__products p {
    margin-top: 5px;
}
