.apc-points-box,
.apc-free-shipping-wrap,
.apc-account-wrap .apc-card {
    background: #fff8ef;
    border: 1px solid #ead7bd;
    padding: 18px;
    border-radius: 12px;
    margin: 0 0 20px;
}

.apc-account-wrap {
    margin-top: 10px;
}

.apc-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.apc-card-label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.apc-card strong {
    font-size: 22px;
    line-height: 1.2;
}

.apc-history-table th,
.apc-history-table td {
    vertical-align: middle;
}

.apc-primary-btn,
.apc-secondary-btn {
    border-radius: 10px !important;
    padding: 10px 16px !important;
    min-height: 42px;
}

.apc-primary-btn {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid #111 !important;
}

.apc-primary-btn:hover {
    opacity: 0.92;
}

.apc-secondary-btn {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #d5d5d5 !important;
}

.apc-free-shipping-text {
    margin-bottom: 10px;
    font-size: 15px;
}

.apc-free-shipping-bar {
    width: 100%;
    height: 10px;
    background: #ececec;
    border-radius: 999px;
    overflow: hidden;
}

.apc-free-shipping-bar span {
    display: block;
    height: 100%;
    background: #111;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.apc-price-loyalty-wrap .price {
    margin-bottom: 0;
}

.apc-price-loyalty-wrap ins {
    text-decoration: none;
}

.apc-price-loyalty-wrap del {
    opacity: 0.6;
    margin-right: 6px;
}

.apc-price-loyalty-wrap .woocommerce-Price-amount {
    line-height: 1.2;
}

.apc-loyalty-points {
    font-size: 14px;
    line-height: 1.45;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.apc-loyalty-points--archive {
    display: block;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 8px;
    padding: 10px 16px;
    background: #fff3f8;
    border: 1px solid #e3e3e3;
    border-radius: 25px;
    color: #c85b8f;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    box-sizing: border-box;
}

.apc-loyalty-points--archive strong {
    color: #b94d82;
    font-weight: 700;
}

.apc-loyalty-points--single {
    margin-top: 8px;
    margin-bottom: 12px;
    color: #69bfe8;
    font-weight: 500;
    font-size: 15px;
}

.apc-loyalty-points--single strong {
    color: #58b7e4;
    font-weight: 700;
}

.apc-loyalty-value {
    opacity: 0.95;
}

.apc-loyalty-user-balance {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

.apc-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.apc-popup-modal {
    background: #fff;
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    padding: 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.apc-popup-modal h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.2;
}

.apc-popup-modal p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.55;
}

.apc-popup-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.apc-popup-close {
    position: absolute;
    right: 10px;
    top: 8px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.apc-discount-note {
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    .apc-popup-modal {
        padding: 22px 18px;
    }

    .apc-popup-actions {
        flex-direction: column;
    }

    .apc-popup-actions .button {
        width: 100%;
        text-align: center;
    }

    .apc-loyalty-points {
        font-size: 13px;
    }

    .apc-loyalty-points--single {
        font-size: 14px;
    }

    .apc-cards-grid {
        grid-template-columns: 1fr;
    }
}
