/* ═══════════════════════════════════════════════════════════════════
   PetGifts — My Account Redesign v2.0
   crimson #7B1535  |  gold #F5C200  |  teal #2BC4C4
   gray50 #f5f4f2  |  gray100 #ece9e4  |  gray800 #2d2a25
   ═══════════════════════════════════════════════════════════════════ */

/* ── Google Fonts (same as design) ────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800;900&family=Nunito+Sans:wght@400;500;600;700&display=swap');

/* ── Page background ─────────────────────────────────────────── */
body.woocommerce-account {
    background: #f5f4f2 !important;
}

/* ─────────────────────────────────────────────────────────────────
   HERO BANNER
   ───────────────────────────────────────────────────────────────── */

.pg-account-hero {
    background: linear-gradient(135deg, #5c0f27 0%, #7B1535 60%, #b5244e 100%);
    padding: 40px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    clear: both;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

.pg-hero-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-family: 'Nunito Sans', sans-serif;
}

.pg-hero-title {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 900 !important;
    font-size: 34px !important;
    color: #ffffff !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-transform: none !important;
    background: transparent !important;
    border: none !important;
    display: block !important;
}

.pg-hero-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
}

.pg-hero-meta a {
    color: #F5C200 !important;
    font-weight: 700;
    text-decoration: none !important;
}

.pg-hero-meta a:hover {
    text-decoration: underline !important;
}

.pg-account-hero__stats {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.pg-hero-stat {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 20px 32px;
    text-align: center;
}

.pg-hero-stat__value {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 44px;
    line-height: 1;
    display: block;
}

.pg-hero-stat__value--gold { color: #F5C200; }
.pg-hero-stat__value--teal { color: #2BC4C4; }

.pg-hero-stat__label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
    display: block;
}

/* ─────────────────────────────────────────────────────────────────
   TWO-COLUMN LAYOUT OVERRIDES
   ───────────────────────────────────────────────────────────────── */

/* Sidebar: fixed 210 px column */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: left !important;
    width: 210px !important;
    position: sticky !important;
    top: 20px !important;
    padding-top: 32px !important;
    padding-bottom: 32px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.wpil-sticky-active.woocommerce-account .woocommerce-MyAccount-navigation {
    top: var(--wpil-header-height, 70px) !important;
}

/* Content: fills remaining width with a 28px gap after the sidebar */
.woocommerce-account .woocommerce-MyAccount-content {
    float: right !important;
    width: calc(100% - 242px) !important;
    padding: 32px 0 32px 28px !important;
    box-sizing: border-box !important;
}

/* ─────────────────────────────────────────────────────────────────
   SIDEBAR NAVIGATION
   ───────────────────────────────────────────────────────────────── */

.woocommerce-MyAccount-navigation > ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    min-height: auto !important;
    border-bottom: 1px solid #f5f4f2;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

/* Base link style — override Astra's black/white button */
.woocommerce-MyAccount-navigation ul li a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    padding: 13px 18px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #6b6358 !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s !important;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #fdf0f3 !important;
    color: #7B1535 !important;
}

/* Active item */
.woocommerce-MyAccount-navigation ul li.is-active > a {
    background: #fdf0f3 !important;
    color: #7B1535 !important;
    font-weight: 700 !important;
}

/* Logout link */
.woocommerce-MyAccount-navigation-link--customer-logout > a,
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout > a {
    color: #c0392b !important;
}

.woocommerce-MyAccount-navigation-link--customer-logout > a:hover {
    background: #fff5f5 !important;
    color: #a93226 !important;
}

/* Emoji icons via ::before */
.woocommerce-MyAccount-navigation ul li a::before {
    font-style: normal;
    font-size: 15px;
    margin-right: 10px;
    flex-shrink: 0;
    line-height: 1;
    font-family: Apple Color Emoji, Segoe UI Emoji, Noto Color Emoji, sans-serif;
}

.woocommerce-MyAccount-navigation-link--dashboard         > a::before { content: '🏠'; }
.woocommerce-MyAccount-navigation-link--orders            > a::before { content: '📦'; }
.woocommerce-MyAccount-navigation-link--edit-address      > a::before { content: '📍'; }
.woocommerce-MyAccount-navigation-link--payment-methods   > a::before { content: '💳'; }
.woocommerce-MyAccount-navigation-link--edit-account      > a::before { content: '👤'; }
.woocommerce-MyAccount-navigation-link--wishlist          > a::before { content: '❤️'; }
.woocommerce-MyAccount-navigation-link--oblio-invoices    > a::before { content: '🧾'; }
.woocommerce-MyAccount-navigation-link--customer-logout   > a::before { content: '🚪'; }

/* ─────────────────────────────────────────────────────────────────
   SUB-PAGE TITLE (orders, addresses, etc.)
   ───────────────────────────────────────────────────────────────── */

.entry-title.wc-account-page-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #2d2a25;
    margin: 0 0 24px;
    padding: 0;
    text-align: left;
    text-transform: none;
    display: block !important;
}

/* ─────────────────────────────────────────────────────────────────
   LOYALTY CARD
   ───────────────────────────────────────────────────────────────── */

.pg-loyalty-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Header row */
.pg-loyalty-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.pg-loyalty-card__title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #2d2a25;
    margin: 0 0 4px;
}

.pg-loyalty-card__subtitle {
    font-size: 13px;
    color: #9a9187;
}

.pg-loyalty-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F5C200;
    border-radius: 20px;
    padding: 6px 14px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 13px;
    color: #5c0f27;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Progress bar */
.pg-loyalty-progress {
    margin-bottom: 28px;
}

.pg-loyalty-progress__labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.pg-loyalty-progress__labels span {
    font-size: 12px;
    color: #9a9187;
}

.pg-loyalty-progress__track {
    height: 8px;
    background: #ece9e4;
    border-radius: 99px;
    overflow: hidden;
}

.pg-loyalty-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #7B1535, #F5C200);
    border-radius: 99px;
    min-width: 2%;
    transition: width 0.6s ease;
}

/* Steps 2-column grid */
.pg-loyalty-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pg-loyalty-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1.5px solid #ece9e4;
    background: #f5f4f2;
}

.pg-loyalty-step--active {
    background: #7B1535 !important;
    border-color: #7B1535 !important;
}

.pg-loyalty-step__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #ffffff;
    border: 2px solid #d5d0c8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 17px;
    color: #b5afa6;
}

.pg-loyalty-step--active .pg-loyalty-step__circle {
    background: #F5C200;
    border: none;
    color: #5c0f27;
}

.pg-loyalty-step__content {
    flex: 1;
    min-width: 0;
}

.pg-loyalty-step__label {
    font-weight: 700;
    font-size: 13.5px;
    color: #6b6358;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-loyalty-step--active .pg-loyalty-step__label {
    color: #ffffff;
}

.pg-loyalty-step__sub {
    font-size: 12px;
    color: #b5afa6;
    margin-top: 2px;
}

.pg-loyalty-step--active .pg-loyalty-step__sub {
    color: rgba(255,255,255,0.65);
}

.pg-loyalty-step__check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F5C200;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #5c0f27;
    font-weight: 900;
    flex-shrink: 0;
    margin-left: auto;
}

/* Gift message */
.pg-gift-message {
    margin-top: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #7B1535 0%, #5c0f27 100%);
    border: 2px solid #F5C200;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

/* Hide default WooCommerce dashboard greeting + description paragraphs */
.woocommerce-account .woocommerce-MyAccount-content > p {
    display: none !important;
}

/* ─────────────────────────────────────────────────────────────────
   FORM & BUTTON ELEMENTS
   ───────────────────────────────────────────────────────────────── */

.woocommerce-js form .form-row input.input-text,
.woocommerce-js form .form-row textarea {
    border: 1px solid #d5d0c8 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
}

.woocommerce-js form .form-row label {
    font-weight: 400 !important;
    color: #6b6358;
}

.woocommerce-js h2 {
    font-weight: 600 !important;
    font-size: 18px;
    color: #2d2a25;
    text-transform: none;
}

/* Override Astra's black/white button styles on account pages */
.woocommerce-Button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-account .woocommerce-Button {
    background: #7B1535 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    font-family: 'Nunito', sans-serif !important;
    transition: background 0.2s ease !important;
}

.woocommerce-Button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: #5c0f27 !important;
    color: #ffffff !important;
}

/* ─────────────────────────────────────────────────────────────────
   WISHLIST TABLE
   ───────────────────────────────────────────────────────────────── */

.woocommerce table.wishlist_table thead th {
    display: none !important;
}

/* ─────────────────────────────────────────────────────────────────
   CART DISCOUNT ROW
   ───────────────────────────────────────────────────────────────── */

.loyalty-discount-info td {
    font-weight: bold;
    color: #7B1535;
}

/* ─────────────────────────────────────────────────────────────────
   HEADER LOYALTY BADGE
   ───────────────────────────────────────────────────────────────── */

.wpil-loyalty-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
}

.loyalty-badge-circle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f4f2;
    border-radius: 20px;
    padding: 6px 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}

.loyalty-badge-circle:hover {
    background: #eceae7;
}

.loyalty-badge-label {
    font-size: 13px;
    font-weight: 700;
    color: #7B1535;
}

.loyalty-badge-level {
    font-size: 13px;
    font-weight: 700;
    color: #7B1535;
}

.loyalty-badge-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7B1535 0%, #5c0f27 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(123,21,53,0.3);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.loyalty-badge-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #7B1535;
}

.loyalty-badge-tooltip p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: white !important;
}

.loyalty-badge-tooltip p + p { margin-top: 4px; }
.loyalty-badge-tooltip strong { color: #F5C200; }

.wpil-loyalty-badge:hover .loyalty-badge-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ─────────────────────────────────────────────────────────────────
   MOBILE (≤ 768px)
   ───────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {

    /* Hero */
    .pg-account-hero {
        padding: 20px 16px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .pg-hero-title {
        font-size: 22px !important;
    }

    .pg-account-hero__stats {
        width: 100%;
        gap: 10px;
    }

    .pg-hero-stat {
        flex: 1;
        padding: 10px 18px;
    }

    .pg-hero-stat__value {
        font-size: 26px;
    }

    /* Single-column layout */
    .woocommerce-account .woocommerce-MyAccount-navigation {
        position: static !important;
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
        top: auto !important;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        float: none !important;
        width: 100% !important;
        padding: 16px 0 0 !important;
    }

    /* Horizontal scroll tab-style nav */
    .woocommerce-MyAccount-navigation > ul {
        border-radius: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 0 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #ece9e4 !important;
    }

    .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }

    .woocommerce-MyAccount-navigation ul li {
        flex-shrink: 0 !important;
        border-bottom: none !important;
    }

    .woocommerce-MyAccount-navigation ul li a,
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 11px 14px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
        border-bottom: 2px solid transparent !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .woocommerce-MyAccount-navigation ul li.is-active > a {
        border-bottom-color: #7B1535 !important;
        background: transparent !important;
        color: #7B1535 !important;
    }

    /* Loyalty card */
    .pg-loyalty-card {
        padding: 18px !important;
    }

    .pg-loyalty-card__header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pg-loyalty-steps {
        grid-template-columns: 1fr !important;
    }

    /* Badge tooltip hidden on mobile */
    .loyalty-badge-tooltip { display: none; }
}

@media (max-width: 480px) {
    .pg-loyalty-step { padding: 12px 14px; }
    .pg-loyalty-step__circle { width: 34px; height: 34px; font-size: 14px; }
    .pg-loyalty-step__label { font-size: 12.5px; }
}

/* ─────────────────────────────────────────────────────────────────
   MISSIONS & BONUSES CARD
   ───────────────────────────────────────────────────────────────── */

.pg-missions-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-top: 24px;
}

/* Header */
.pg-missions-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pg-missions-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #2d2a25;
    margin: 0 0 4px;
}

.pg-missions-subtitle {
    font-size: 13px;
    color: #9a9187;
}

.pg-missions-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Wallet pill */
.pg-wallet-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f4f2;
    border-radius: 20px;
    padding: 6px 14px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #2d2a25;
    white-space: nowrap;
}

.pg-wallet-icon { font-size: 14px; }

.pg-wallet-amount {
    color: #7B1535;
    font-weight: 700;
}

/* Mission grid — 3 columns */
.pg-missions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

/* Individual mission card */
.pg-mission-card {
    background: #f5f4f2;
    border-radius: 10px;
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.pg-mission-card:not(.pg-mission-card--claimed):hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    transform: translateY(-1px);
}

.pg-mission-card--claimed {
    opacity: 0.65;
}

.pg-mission-icon {
    font-size: 26px;
    line-height: 1;
}

.pg-mission-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #2d2a25;
    line-height: 1.4;
}

.pg-mission-reward {
    font-size: 12px;
    color: #9a9187;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pg-mission-reward strong {
    color: #7B1535;
    font-weight: 700;
    font-size: 13px;
}

.pg-mission-footer {
    margin-top: auto;
}

/* Claim button */
.pg-btn-claim {
    background: #7B1535;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
    font-family: 'Nunito Sans', sans-serif;
    line-height: 1;
}

.pg-btn-claim:hover:not(:disabled) {
    background: #5c0f27;
    transform: scale(1.02);
}

.pg-btn-claim:disabled {
    background: #c5c5c5;
    cursor: default;
}

/* Claimed badge */
.pg-claimed-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 7px 14px;
    border-radius: 20px;
}

/* Inactive card */
.pg-mission-card--inactive {
    opacity: 0.55;
}

.pg-mission-card--inactive:hover {
    box-shadow: none !important;
    transform: none !important;
}


/* Wallet Ticket Banner — Ticket Burgundy */
.pg-wallet-ticket {
    background: #7B1535;
    color: #fbf6f1;
    border-radius: 16px;
    padding: 22px 26px 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px -22px rgba(61,15,23,0.55);
}

.pg-wallet-ticket::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0; height: 6px;
    background-image: radial-gradient(circle at 6px 50%, #f5f4f2 2.4px, transparent 2.6px);
    background-size: 12px 12px;
    background-repeat: repeat-x;
}

.pg-wallet-ticket__coin {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #F5C200;
    color: #5c0f27;
    display: grid;
    place-items: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 17px;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), 0 0 0 3px rgba(245,194,0,0.2);
    flex-shrink: 0;
}

.pg-wallet-ticket__body {
    line-height: 1.45;
}

.pg-wallet-ticket__eyebrow {
    font-family: ui-monospace, 'Courier New', monospace;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e9bcc4;
    margin-bottom: 4px;
}

.pg-wallet-ticket__copy {
    font-size: 15px;
    color: #fbf6f1;
}

.pg-wallet-ticket__copy strong {
    color: #ffffff;
    font-weight: 700;
    background: rgba(255,255,255,0.1);
    padding: 1px 6px;
    border-radius: 4px;
}

.pg-wallet-ticket__pill {
    background: #fbf6f1;
    color: #5a1622;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 999px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pg-wallet-ticket__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7B1535;
    flex-shrink: 0;
}

/* Toast notifications */
.pg-toast-wrap {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.pg-toast {
    background: #2d2a25;
    color: #ffffff;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pgSlideIn 0.3s ease;
    transition: opacity 0.4s ease;
}

.pg-toast-icon { font-size: 18px; }

.pg-toast-amount {
    color: #F5C200;
    font-weight: 700;
}

@keyframes pgSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Responsive — missions */
@media (max-width: 900px) {
    .pg-missions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pg-missions-card { padding: 18px !important; }
    .pg-missions-header { gap: 10px; }
    .pg-missions-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pg-toast-wrap { bottom: 16px; right: 16px; left: 16px; }
    .pg-toast { font-size: 13px; }

    .pg-wallet-ticket {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 14px;
        padding: 18px 18px 24px;
        border-radius: 14px;
    }
    .pg-wallet-ticket__pill {
        grid-column: 1 / -1;
        justify-content: center;
        padding: 12px;
    }
    .pg-wallet-ticket__copy { font-size: 14px; }
}

@media (max-width: 480px) {
    .pg-missions-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────
   CHECKOUT — vertically center label + value in all totals rows
   ───────────────────────────────────────────────────────────────── */

.wp-block-woocommerce-checkout-order-summary-totals-block .wc-block-components-totals-item,
#pg-loyalty-display .wc-block-components-totals-item,
#pg-wallet-display .wc-block-components-totals-item,
#pg-voucher-display .wc-block-components-totals-item {
    align-items: center !important;
}

/* ─────────────────────────────────────────────────────────────────
   CHECKOUT — fixed-width icon column for all totals rows
   ───────────────────────────────────────────────────────────────── */

.pg-totals-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────
   CHECKOUT — Sameday logo in shipping row
   ───────────────────────────────────────────────────────────────── */

.pg-sameday-logo {
    height: 22px !important;
    width: auto;
    flex-shrink: 0;
    margin-right: 6px;
}

/* ─────────────────────────────────────────────────────────────────
   CHECKOUT — original price (crossed out) next to footer total
   ───────────────────────────────────────────────────────────────── */

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    flex-wrap: nowrap;
}

.pg-original-price {
    text-decoration: line-through;
    font-size: 0.82em;
    color: #9a9187;
    font-weight: 400;
    white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────
   CHECKOUT — totals strong: no uppercase
   ───────────────────────────────────────────────────────────────── */

.wc-block-components-totals-shipping .wc-block-components-totals-item strong,
.wc-block-components-totals-item__value strong {
    text-transform: none !important;
}

/* ─────────────────────────────────────────────────────────────────
   CHECKOUT — hide coupon panel toggle button
   ───────────────────────────────────────────────────────────────── */

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-coupon-form-block .wc-block-components-panel__button {
    display: none !important;
}


/* ─────────────────────────────────────────────────────────────────
   WALLET CART / CHECKOUT SECTION
   ───────────────────────────────────────────────────────────────── */

#pg-wallet-cart {
    padding: 12px 0 4px !important;
    margin: 0 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

#pg-wallet-cart .pg-wallet-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #f7f3f4 !important;
    border: 1.5px solid #eadfe2 !important;
    border-radius: 14px !important;
    padding: 13px 16px !important;
    margin: 0 !important;
    box-shadow: none !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#pg-wallet-cart .pg-wallet-icon {
    font-size: 20px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    display: block !important;
}

#pg-wallet-cart .pg-wallet-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: block !important;
}

#pg-wallet-cart .pg-wallet-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #3a3a3a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

#pg-wallet-cart .pg-wallet-balance {
    font-size: 11px !important;
    color: #888 !important;
    margin-top: 2px !important;
    display: block !important;
    line-height: 1.3 !important;
}

#pg-wallet-cart .pg-wallet-balance strong {
    color: #7a1535 !important;
    font-weight: 700 !important;
}

#pg-wallet-cart .pg-wallet-row--applied .pg-wallet-balance strong {
    color: #2e7d32 !important;
}

/* Primary button — Aplică */
#pg-wallet-cart .pg-btn-wallet,
#pg-wallet-cart .pg-btn-wallet:link,
#pg-wallet-cart .pg-btn-wallet:visited {
    pointer-events: auto !important;
    background: #8b1a34 !important;
    background-color: #8b1a34 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 10px 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    opacity: 0.85 !important;
    transition: opacity 0.18s !important;
    font-family: inherit !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    text-decoration: none !important;
    outline: none !important;
}

#pg-wallet-cart .pg-btn-wallet:hover:not(:disabled),
#pg-wallet-cart .pg-btn-wallet:focus:not(:disabled) {
    background: #8b1a34 !important;
    background-color: #8b1a34 !important;
    color: #fff !important;
    opacity: 1 !important;
}

#pg-wallet-cart .pg-btn-wallet:disabled {
    opacity: 0.45 !important;
    cursor: default !important;
}

/* Remove button — outlined */
#pg-wallet-cart .pg-btn-wallet--remove,
#pg-wallet-cart .pg-btn-wallet--remove:link,
#pg-wallet-cart .pg-btn-wallet--remove:visited {
    background: transparent !important;
    background-color: transparent !important;
    color: #8b1a34 !important;
    border: 1.5px solid #8b1a34 !important;
    opacity: 1 !important;
}

#pg-wallet-cart .pg-btn-wallet--remove:hover,
#pg-wallet-cart .pg-btn-wallet--remove:focus {
    background: #8b1a34 !important;
    background-color: #8b1a34 !important;
    color: #fff !important;
    opacity: 1 !important;
}
