/* ================================================================
   Dashboard Card Grid Layout — macfw-dashboard-cards
   ================================================================ */

/* On the dashboard page when card mode is active:
   hide the sidebar navigation and stretch content full-width. */
.macfw-dashboard-cards-mode .woocommerce-MyAccount-navigation {
    display: none !important;
}

.macfw-dashboard-cards-mode .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
}

/* ----------------------------------------------------------------
   Card grid container
   ---------------------------------------------------------------- */
.macfw-dashboard-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 4px 0 24px;
    list-style: none;
    margin: 0;
}

/* ----------------------------------------------------------------
   Individual card
   ---------------------------------------------------------------- */
.macfw-dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 36px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-decoration: none !important;
    color: #111827 !important;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    cursor: pointer;
}

.macfw-dashboard-card:hover {
    background: #f9fafb;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
    text-decoration: none !important;
    color: #111827 !important;
}

/* ----------------------------------------------------------------
   Card icon
   ---------------------------------------------------------------- */
.macfw-dc-icon {
    font-size: 38px !important;
    width: 38px !important;
    height: 38px !important;
    line-height: 1 !important;
    color: #1f2937 !important;
    display: block;
}

/* ----------------------------------------------------------------
   Card label
   ---------------------------------------------------------------- */
.macfw-dc-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    line-height: 1.3;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .macfw-dashboard-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .macfw-dashboard-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .macfw-dashboard-card {
        padding: 24px 10px;
        gap: 10px;
        border-radius: 10px;
    }

    .macfw-dc-icon {
        font-size: 30px !important;
        width: 30px !important;
        height: 30px !important;
    }
}
