/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ============================================
   My Account — Orders (horizontal rows)
   ============================================ */
.myfly-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Each order = horizontal row */
.myfly-order-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}
.myfly-order-row:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Left: thumbnail + product info */
.myfly-order-row__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}
.myfly-order-row__thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.myfly-order-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.myfly-order-row__thumb--placeholder {
    border: 1px dashed #ddd;
}
.myfly-order-row__info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.myfly-order-row__product {
    font-size: 0.95em;
    color: #1c4431;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.myfly-order-row__meta {
    font-size: 0.78em;
    color: #999;
}

/* Center: date + total + badge */
.myfly-order-row__center {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.myfly-order-row__date {
    font-size: 0.85em;
    color: #888;
    white-space: nowrap;
}
.myfly-order-row__total {
    font-size: 0.9em;
    font-weight: 600;
    color: #1c4431;
    white-space: nowrap;
}

/* Badge */
.myfly-order-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Right: action buttons */
.myfly-order-row__actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* Empty state */
.myfly-orders-empty {
    text-align: center;
    padding: 3rem 1rem;
}
.myfly-orders-empty svg {
    margin-bottom: 1rem;
}
.myfly-orders-empty p {
    margin-bottom: 1.25rem;
    color: #666;
    font-size: 1em;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .myfly-order-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .myfly-order-row__left {
        flex: 1 1 100%;
    }
    .myfly-order-row__center {
        flex: 1 1 100%;
        gap: 0.75rem;
    }
    .myfly-order-row__actions {
        flex: 1 1 100%;
    }
    .myfly-order-row__actions .myfly-esim-btn {
        flex: 1;
        text-align: center;
    }
}

/* ============================================
   My Account — Dashboard
   ============================================ */

/* Welcome section */
.myfly-dash-welcome {
    margin-bottom: 1.5rem;
}
.myfly-dash-welcome__title {
    font-size: 1.5em;
    font-weight: 700;
    color: #1c4431;
    margin: 0 0 0.25rem;
}
.myfly-dash-welcome__subtitle {
    font-size: 0.95em;
    color: #888;
    margin: 0;
}

/* Stats cards */
.myfly-dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.myfly-dash-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.myfly-dash-stat:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #72b68d;
}
.myfly-dash-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.myfly-dash-stat__icon--orders {
    background: #eef7f1;
    color: #72b68d;
}
.myfly-dash-stat__icon--esims {
    background: #eef1f7;
    color: #5b8cc9;
}
.myfly-dash-stat__icon--account {
    background: #f7f2ee;
    color: #c9915b;
}
.myfly-dash-stat__content {
    display: flex;
    flex-direction: column;
}
.myfly-dash-stat__number {
    font-size: 1.4em;
    font-weight: 700;
    color: #1c4431;
    line-height: 1.2;
}
.myfly-dash-stat__label {
    font-size: 0.82em;
    color: #888;
    font-weight: 500;
}

/* Section titles */
.myfly-dash-section-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #1c4431;
    margin: 0 0 0.75rem;
}

/* Quick actions grid */
.myfly-dash-actions {
    margin-bottom: 2rem;
}
.myfly-dash-actions__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.myfly-dash-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.myfly-dash-action:hover {
    border-color: #72b68d;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.myfly-dash-action__icon {
    font-size: 1.6em;
    line-height: 1;
}
.myfly-dash-action__text {
    font-size: 0.85em;
    font-weight: 500;
    color: #1c4431;
    text-align: center;
}

/* Last order */
.myfly-dash-lastorder {
    margin-bottom: 1.5rem;
}
.myfly-dash-lastorder__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.myfly-dash-lastorder__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.myfly-dash-lastorder__info strong {
    color: #1c4431;
    font-size: 0.95em;
}
.myfly-dash-lastorder__meta {
    font-size: 0.8em;
    color: #999;
}
.myfly-dash-lastorder__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Dashboard responsive */
@media (max-width: 768px) {
    .myfly-dash-stats {
        grid-template-columns: 1fr;
    }
    .myfly-dash-actions__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .myfly-dash-lastorder__card {
        flex-direction: column;
        align-items: flex-start;
    }
    .myfly-dash-lastorder__right {
        width: 100%;
        justify-content: space-between;
    }
}