/* DiTrip eSIM Frontend Styles */

.ditrip-esim-dashboard {
    max-width: 800px;
    margin: 0 auto;
}

.ditrip-esim-dashboard h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.ditrip-esim-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.esim-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.esim-order-no {
    font-weight: 600;
    color: #495057;
    font-size: 0.95em;
}

.esim-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.esim-status--success { background: #d4edda; color: #155724; }
.esim-status--pending { background: #fff3cd; color: #856404; }
.esim-status--failed  { background: #f8d7da; color: #721c24; }

.esim-card-body {
    padding: 20px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.esim-qr-wrap {
    flex-shrink: 0;
}

.esim-qr-img {
    width: 160px;
    height: 160px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    display: block;
}

.esim-details {
    flex: 1;
    min-width: 200px;
}

.esim-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.esim-detail-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.85em;
    min-width: 80px;
}

.esim-lpa {
    font-size: 0.8em;
    background: #f1f3f5;
    padding: 2px 8px;
    border-radius: 4px;
    word-break: break-all;
}

.esim-copy-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}

.esim-copy-btn:hover { background: #005a87; }
.esim-copy-btn.copied { background: #46b450; }

.esim-refresh-btn {
    background: none;
    border: 1px solid #dee2e6;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    color: #495057;
    margin-top: 8px;
    transition: all 0.2s;
}

.esim-refresh-btn:hover {
    background: #f8f9fa;
    border-color: #0073aa;
    color: #0073aa;
}

.esim-guide {
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.esim-guide details summary {
    cursor: pointer;
    font-weight: 600;
    color: #0073aa;
    font-size: 0.9em;
}

.esim-guide ol {
    margin: 10px 0 0 20px;
    font-size: 0.9em;
    color: #495057;
    line-height: 1.7;
}

.esim-pending-msg,
.esim-error-msg {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

/* Order page eSIM section */
.ditrip-esim-section {
    margin-top: 30px;
}

/* WooCommerce order email */
.ditrip-esim-section h2 {
    font-size: 1.2em;
}

@media (max-width: 600px) {
    .esim-card-body { flex-direction: column; }
    .esim-qr-img { width: 140px; height: 140px; }
}
