/**
 * Formular Checkout Cadou — Stiluri frontend.
 *
 * Layout-ul cardurilor este controlat prin inline styles
 * direct pe elementele HTML pentru compatibilitate maximă
 * cu orice temă (Shoptimizer etc.).
 *
 * Acest fișier gestionează doar stările dinamice:
 * hover, selectare, animație, bifă, responsive.
 *
 * @package FormularCheckoutCadou
 */

/* ─── Hover pe card ─── */
.fcc-card:hover {
    border-color: #4CAF50 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* ─── Card activ (selectat) ─── */
.fcc-card.fcc-card--active {
    border-color: #4CAF50 !important;
    background: #f9fef9 !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.12) !important;
}

/* Bifă pe cardul selectat */
.fcc-card.fcc-card--active::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 6px;
    width: 16px;
    height: 16px;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.fcc-card {
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

/* Animație puls la selectare */
.fcc-card--animate {
    animation: fcc-pulse 0.3s ease;
}

@keyframes fcc-pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ─── Icon card ─── */
.fcc-card__icon {
    font-size: 20px !important;
    line-height: 1 !important;
    flex-shrink: 0;
}

.fcc-card__icon.dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
}

/* ─── Titluri secțiuni (injectate/actualizate de JS) ─── */
h3.fcc-billing-header,
h3.fcc-shipping-header {
    font-size: 1.1em;
    font-weight: 600;
    margin: 20px 0 4px;
    padding: 0;
    color: #333;
}

/* ─── Subtitlu secțiune (sub h3) ─── */
.fcc-section-subtitle {
    font-size: 0.88em;
    color: #777;
    margin: 0 0 14px;
    padding: 0;
    font-weight: 400;
    line-height: 1.4;
}

/* ─── Responsive (mobile) ─── */
@media (max-width: 480px) {
    #fcc-card-wrapper {
        max-width: 100% !important;
    }

    .fcc-cards {
        flex-direction: column !important;
    }
}

/* ─── Badge admin — lista de comenzi ─── */
.fcc-badge {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-weight: 600;
}
