/* ======================
   Mi Caja Frontend — Minimal
   ====================== */

/* Menu icon in My Account */
.woocommerce-MyAccount-navigation-link--mi-caja a::before {
    content: '\f290' !important;
    font-family: FontAwesome !important;
}

.mi-caja-container {
    padding: 0;
}


.mc-empty-state {
    text-align: center;
    padding: 48px 20px;
}

.mc-empty-state svg {
    display: block;
    margin: 0 auto 12px;
}

.mc-empty-state p {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 16px;
}

/* Box Cards Grid */
.mc-boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.mc-box-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px;
    transition: box-shadow 0.2s;
}

.mc-box-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Box Header */
.mc-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.mc-box-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #111;
}

/* Status Pill */
.mc-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    color: #444;
    border: 1px solid #ccc;
}

/* Box Meta (date) */
.mc-box-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f8f8f8;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
}

/* Tracking Button */
.mc-tracking-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #111;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 16px;
    transition: background 0.2s;
    box-sizing: border-box;
}

.mc-tracking-btn:hover {
    background: #333;
    color: #fff !important;
    text-decoration: none !important;
}

/* Products Section */
.mc-products {
    margin: 20px 0;
}

.mc-products-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 12px 14px;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: background 0.2s;
    color: #555;
}

.mc-products-toggle:hover {
    background: #f0f0f0;
}

.mc-products-toggle svg:first-child {
    flex-shrink: 0;
}

.mc-products-toggle span {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mc-chevron {
    color: #555;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mc-products.open .mc-chevron {
    transform: rotate(180deg);
}

.mc-products-list {
    display: none;
    padding-top: 10px;
}

.mc-products-list .mc-product-card {
    margin-bottom: 10px;
}

.mc-products-list .mc-product-card:last-child {
    margin-bottom: 0;
}

/* Product Card */
.mc-product-card {
    background: #f8f8f8 !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    transition: border-color 0.2s !important;
}

.mc-product-card:hover {
    border-color: #ccc !important;
}

.mc-product-img {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    height: 80px !important;
    overflow: hidden !important;
    background: #fff !important;
    flex-shrink: 0 !important;
}

.mc-product-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.mc-product-info {
    padding: 12px 16px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.mc-product-info h5 {
    font-size: 14px !important;
    margin: 0 !important;
    color: #111 !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

.mc-product-cat {
    font-size: 11px !important;
    color: #999 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
}

/* Content Extra */
.mc-content-extra {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 8px;
}

.mc-content-extra h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 10px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mc-content-extra p {
    margin: 0 0 8px;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

.mc-content-extra p:last-child { margin-bottom: 0; }

/* Buttons */
.mc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.mc-btn-outline {
    width: 100%;
    border-color: #ccc;
    color: #555;
}

.mc-btn-outline:hover {
    border-color: #999;
    background: #fafafa;
}

.mc-btn-dark {
    background: #111;
    color: #fff;
    border-color: #111;
}

.mc-btn-dark:hover {
    background: #333;
    border-color: #333;
}

.mc-btn-dark:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mc-btn-ghost {
    background: transparent;
    border-color: #ddd;
    color: #888;
}

.mc-btn-ghost:hover {
    background: #f5f5f5;
}

/* Feedback */
.mc-feedback {
    margin-top: 20px;
}

.feedback-form {
    margin-top: 10px;
}

.mc-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    color: #333;
}

.mc-textarea:focus {
    outline: none;
    border-color: #999;
}

.mc-feedback-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

.mc-feedback-sent {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f8f8f8;
    border-left: 3px solid #888;
    border-radius: 0 6px 6px 0;
    color: #888;
}

.mc-feedback-sent > svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.mc-feedback-sent-body strong {
    color: #555;
    font-size: 13px;
    font-weight: 500;
}

.mc-feedback-sent-body p {
    margin: 4px 0 0;
    color: #555;
    line-height: 1.5;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .mc-boxes-grid {
        grid-template-columns: 1fr;
    }

    .mc-product-img {
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        height: 70px !important;
    }

    .mc-product-info {
        padding: 10px 12px !important;
    }

    .mc-product-info h5 {
        font-size: 13px !important;
    }
}
