.pc-box,
.pc-club-page .pc-card,
.pc-club-page .pc-hero,
.pc-club-page .pc-points-card {
    box-sizing: border-box;
}

.pc-box {
    border: 1px solid #e7e1dc;
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 14px 32px rgba(0,0,0,.035);
}

.pc-box-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.pc-box-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
    color: #777;
    margin-bottom: 8px;
}

.pc-box h3 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.05;
}

.pc-box p {
    margin: 0;
}

.pc-inline-link {
    color: #171717;
    text-decoration: underline;
    white-space: nowrap;
}

.pc-rewards {
    display: grid;
    gap: 14px;
    margin: 18px 0;
}

.pc-reward {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid #e7e1dc;
    border-radius: 14px;
    padding: 16px 18px;
    cursor: pointer;
    background: #fff;
}

.pc-reward input {
    margin-top: 4px;
    flex: 0 0 auto;
}

.pc-reward-content {
    display: block;
    min-width: 0;
    width: 100%;
}

.pc-reward-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.pc-reward-top strong {
    font-size: 22px;
    line-height: 1.2;
}

.pc-reward-top em {
    font-style: normal;
    font-size: 22px;
    font-weight: 700;
}

.pc-reward-meta {
    display: block;
    color: #777;
    margin-top: 8px;
    font-size: 14px;
}

.pc-notice {
    border-left: 4px solid #111;
    padding: 10px 12px;
    background: #faf7f4;
    margin: 0 0 14px;
}

.pc-empty-state {
    background: #faf7f4;
    border: 1px solid #efe6df;
    border-radius: 14px;
    padding: 18px;
}

.pc-empty-state small {
    display: block;
    color: #777;
    margin-top: 6px;
}

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

.pc-actions .button.alt,
.pc-button {
    display: inline-block;
    background: #171717;
    color: #fff !important;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    border: 0;
}

.pc-club-page {
    --pc-bg: #fbf6f2;
    --pc-ink: #171717;
    --pc-muted: #777;
    --pc-line: #e8dfd8;
    --pc-soft: #fff;
    --pc-accent: #171717;
    color: var(--pc-ink);
    max-width: 1120px;
    margin: 0 auto;
}

.pc-hero {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 300px);
    gap: 24px;
    align-items: stretch;
    padding: 36px;
    background: var(--pc-bg);
    border-radius: 24px;
    margin-bottom: 24px;
}

.pc-eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .14em;
    color: var(--pc-muted);
    display: inline-block;
    margin-bottom: 10px;
}

.pc-hero h1 {
    font-size: clamp(34px, 5vw, 62px);
    line-height: .95;
    margin: 0 0 16px;
    letter-spacing: -0.05em;
}

.pc-hero p {
    max-width: 620px;
    font-size: 18px;
    color: var(--pc-muted);
    margin: 0;
}

.pc-points-card {
    background: var(--pc-soft);
    border: 1px solid var(--pc-line);
    border-radius: 22px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    box-shadow: 0 18px 40px rgba(0,0,0,.05);
}

.pc-points-card span,
.pc-points-card small {
    color: var(--pc-muted);
}

.pc-points-card strong {
    display: block;
    font-size: 56px;
    line-height: 1;
    margin: 10px 0 4px;
}

.pc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.pc-card {
    background: #fff;
    border: 1px solid var(--pc-line);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 14px 32px rgba(0,0,0,.035);
    margin-bottom: 24px;
}

.pc-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.pc-current-tier {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--pc-ink);
    color: #fff;
    padding: 9px 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.pc-progress {
    width: 100%;
    height: 12px;
    background: #eee7e1;
    border-radius: 999px;
    overflow: hidden;
    margin: 18px 0 8px;
}

.pc-progress span {
    display: block;
    height: 100%;
    background: var(--pc-accent);
    border-radius: 999px;
    transition: width .3s ease;
}

.pc-clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.pc-clean-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pc-line);
}

.pc-clean-list li:last-child {
    border-bottom: 0;
}

.pc-clean-list span {
    color: var(--pc-muted);
    text-align: right;
}

.pc-tier-roadmap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.pc-tier-step {
    position: relative;
    border: 1px solid var(--pc-line);
    border-radius: 18px;
    padding: 18px;
    min-height: 150px;
    background: #fff;
    opacity: .55;
}

.pc-tier-step.is-active {
    opacity: 1;
    background: #fbf6f2;
    border-color: #171717;
}

.pc-tier-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #171717;
    background: #fff;
    margin-bottom: 14px;
}

.pc-tier-step.is-active .pc-tier-dot {
    background: #171717;
}

.pc-tier-step strong,
.pc-tier-step span,
.pc-tier-step small {
    display: block;
}

.pc-tier-step span {
    margin: 6px 0 10px;
    color: var(--pc-muted);
}

.pc-tier-step small {
    color: var(--pc-muted);
    line-height: 1.45;
}

.pc-history {
    width: 100%;
    border-collapse: collapse;
}

.pc-history td {
    padding: 14px 0;
    border-bottom: 1px solid var(--pc-line);
    vertical-align: top;
}

.pc-history td:last-child {
    text-align: right;
    color: var(--pc-muted);
}

@media (max-width: 800px) {
    .pc-hero,
    .pc-grid,
    .pc-tier-roadmap {
        grid-template-columns: 1fr;
    }

    .pc-hero {
        padding: 24px;
    }

    .pc-box-head,
    .pc-reward-top,
    .pc-clean-list li,
    .pc-history tr,
    .pc-history td {
        display: block;
        text-align: left !important;
    }

    .pc-inline-link {
        white-space: normal;
    }
}


.pc-is-loading {
    position: relative;
    opacity: .68;
    pointer-events: none;
}

.pc-ajax-message {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 14px;
}

.pc-ajax-message.is-success {
    background: #f1f8f1;
    border: 1px solid #cfe8cf;
}

.pc-ajax-message.is-error {
    background: #fff4f4;
    border: 1px solid #f0cccc;
}


/* v0.3.7 — ajustes leves de espaçamento e histórico */
.pc-club-page .pc-hero {
    margin-bottom: 18px;
    padding: 30px;
}

.pc-club-page .pc-grid {
    gap: 18px;
    margin-bottom: 18px;
}

.pc-club-page .pc-card {
    margin-bottom: 18px;
    padding: 24px;
}

.pc-club-page .pc-tier-roadmap {
    gap: 14px;
}

.pc-club-page .pc-points-card {
    min-height: 155px;
}

.pc-club-page .pc-points-card strong {
    font-size: 50px;
}

.pc-history-card {
    overflow: hidden;
}

.pc-history {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.pc-history tr {
    background: #fbf6f2;
    transition: transform .18s ease, box-shadow .18s ease;
}

.pc-history tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

.pc-history td {
    border-bottom: 0;
    padding: 14px 16px;
    background: #fbf6f2;
}

.pc-history td:first-child {
    border-radius: 14px 0 0 14px;
    width: 145px;
}

.pc-history td:last-child {
    border-radius: 0 14px 14px 0;
    white-space: nowrap;
}

.pc-history-points {
    display: block;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.1;
}

.pc-history td small {
    display: block;
    margin-top: 3px;
    color: var(--pc-muted);
    font-size: 11px;
}

.pc-history-positive .pc-history-points {
    color: #1f7a3f;
}

.pc-history-negative .pc-history-points {
    color: #9d2f2f;
}

@media (max-width: 800px) {
    .pc-club-page .pc-hero,
    .pc-club-page .pc-card {
        padding: 20px;
    }

    .pc-history {
        border-spacing: 0 10px;
    }

    .pc-history tr,
    .pc-history td {
        display: block;
        width: auto;
    }

    .pc-history td:first-child {
        border-radius: 14px 14px 0 0;
    }

    .pc-history td:last-child {
        border-radius: 0 0 14px 14px;
        white-space: normal;
    }
}


/* v0.4.0 — rewards UI simplificada */
.pc-box-rewards .pc-box-head {
    margin-bottom: 18px;
}

.pc-box-rewards .pc-box-head p {
    color: #5f5b57;
    margin-top: 8px;
}

.pc-reward-cards {
    display: grid;
    gap: 14px;
}

.pc-reward-card {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    text-align: left;
    border: 1px solid #e7e1dc;
    background: #fff;
    border-radius: 18px;
    padding: 18px 18px 16px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .18s ease, background .2s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,.025);
}

.pc-reward-card:hover {
    transform: translateY(-1px);
    border-color: #d6ccc4;
    box-shadow: 0 14px 26px rgba(0,0,0,.05);
}

.pc-reward-card:focus {
    outline: none;
    border-color: #171717;
    box-shadow: 0 0 0 3px rgba(23,23,23,.08);
}

.pc-reward-card.is-selected {
    background: #fbf6f2;
    border-color: #171717;
    box-shadow: 0 14px 30px rgba(0,0,0,.06);
}

.pc-reward-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pc-reward-card-points {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #171717;
}

.pc-reward-card-value {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    color: #171717;
}

.pc-reward-card-help {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #7a746f;
}

.pc-reward-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    background: #171717;
    color: #fff;
    white-space: nowrap;
}

.pc-selected-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: #6a645f;
}

@media (max-width: 800px) {
    .pc-reward-card {
        padding: 16px;
    }

    .pc-reward-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .pc-reward-card-points {
        font-size: 18px;
    }
}


/* v0.4.1 — header mais compacto no carrinho/checkout */
.pc-box-head-simple {
    display: block;
    margin-bottom: 16px;
}

.pc-box-head-simple h3 {
    margin-bottom: 8px;
}


/* v0.7.1 — campo aniversário em Minha Conta */
#pc_birthday {
    max-width: 260px;
}


/* v0.7.6 — ajustar espaçamento do bloco tier/como usar na página Pooch Club */
.pc-club-page .pc-grid {
    padding-top: 4px !important;
    padding-bottom: 0 !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

.pc-club-page .pc-grid .pc-card {
    margin-bottom: 0 !important;
}

.pc-club-page .pc-grid + .pc-card,
.pc-club-page .pc-grid + section {
    margin-top: 12px !important;
}


/* v0.7.9 — ícone Pooch Club sem HTML no label do WooCommerce */
.woocommerce-MyAccount-navigation-link--pooch-club > a::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 18px;
    vertical-align: -3px;
    background-color: currentColor;
    -webkit-mask: url("../images/pooch-club-icon.svg") center / contain no-repeat;
    mask: url("../images/pooch-club-icon.svg") center / contain no-repeat;
}

.woocommerce-MyAccount-navigation-link--pooch-club.is-active > a::before,
.woocommerce-MyAccount-navigation-link--pooch-club > a:hover::before {
    background-color: currentColor;
}


/* v0.9.17 — Pooch Club menu icon as real <i>, not ::before */
.woocommerce-MyAccount-navigation-link--pooch-club > a::before {
    display: none !important;
    content: none !important;
}

.woocommerce-MyAccount-navigation-link--pooch-club > a i.pc-pooch-club-menu-icon {
    display: inline-block !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    background-color: currentColor !important;
    -webkit-mask: url("../images/pooch-club-icon.svg") center / contain no-repeat !important;
    mask: url("../images/pooch-club-icon.svg") center / contain no-repeat !important;
}
