/* Frontend styles */

.esim-frontend-widget { max-width: 500px; margin: 0 auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 1px solid #eaeaea; font-family: inherit; }
.esim-frontend-widget h3 { margin-top: 0; font-size: 22px; color: #333; font-weight: 600; margin-bottom: 10px; }
.esim-frontend-widget p.esim-desc { color: #666; font-size: 15px; margin-bottom: 20px; line-height: 1.5; }
.esim-form-group { display: flex; gap: 10px; margin-bottom: 0; }
.esim-form-group input { flex: 1; padding: 12px 15px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; outline: none; transition: border-color 0.3s, box-shadow 0.3s; background: #fafafa; }
.esim-form-group input:focus { border-color: #2271b1; background: #fff; box-shadow: 0 0 0 3px rgba(34,113,177,0.1); }
.esim-form-group button { background: #2271b1; color: #fff; border: none; padding: 12px 24px; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; display: flex; align-items: center; justify-content: center; }
.esim-form-group button:hover { background: #135e96; transform: translateY(-1px); }
.esim-form-group button:disabled { background: #a0c4e1; cursor: not-allowed; transform: none; }

.esim-balance-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-top: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.esim-balance-card h4 { margin-top: 0; color: #172b4d; margin-bottom: 20px; font-size: 18px; border-bottom: 1px solid #f4f5f7; padding-bottom: 12px; font-weight: 600; }
.esim-status-row { display: flex; justify-content: space-between; margin-bottom: 20px; background: #f4f5f7; padding: 15px; border-radius: 6px; }
.esim-status-item { flex: 1; text-align: center; }
.esim-status-item:first-child { border-right: 1px solid #dfe1e6; }
.esim-status-label { display: block; font-size: 11px; color: #6b778c; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; margin-bottom: 6px; }
.esim-status-value { display: block; font-size: 15px; font-weight: 600; color: #172b4d; }
.esim-status-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: #e3fcef; color: #006644; }
.esim-status-badge.offline { background: #ffebe6; color: #bf2600; }
.esim-status-badge.available { background: #deebff; color: #0747a6; }

.esim-package-list { margin-top: 15px; }
.esim-package-item { border: 1px solid #dfe1e6; border-radius: 6px; padding: 16px; margin-bottom: 12px; transition: border-color 0.2s; }
.esim-package-item:hover { border-color: #2271b1; }
.esim-package-title { font-weight: 600; font-size: 15px; color: #172b4d; margin-bottom: 12px; }
.esim-progress-bar-bg { width: 100%; background: #ebecf0; height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.esim-progress-bar-fill { height: 100%; background: #0052cc; border-radius: 4px; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.esim-package-stats { display: flex; justify-content: space-between; font-size: 13px; color: #5e6c84; font-weight: 500; }
.esim-package-expiry { margin-top: 12px; font-size: 13px; color: #5e6c84; display: flex; align-items: center; gap: 6px; background: #f4f5f7; padding: 8px; border-radius: 4px; }

.esim-error-msg { background: #ffebe6; border-left: 4px solid #de350b; padding: 15px; color: #bf2600; border-radius: 4px; margin-top: 20px; font-size: 14px; line-height: 1.5; }
.esim-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4); border-radius: 50%; border-top-color: #fff; animation: esim-spin 0.8s linear infinite; margin-right: 8px; }
@keyframes esim-spin { to { transform: rotate(360deg); } }

/* Product Additional Info Tab */
.esim-additional-info { margin-top: 20px; }
.esim-info-section { margin-bottom: 25px; }
.esim-info-section h4 { margin-bottom: 10px; color: #333; font-size: 1.1em; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.esim-info-section p { color: #666; line-height: 1.6; }
.esim-info-table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
.esim-info-table th { width: 30%; text-align: left; padding: 10px; background-color: #f9f9f9; border: 1px solid #eee; color: #333; font-weight: 600; }
.esim-info-table td { padding: 10px; border: 1px solid #eee; color: #666; }
.esim-product-fields-meta { list-style: none; padding: 0; margin: 15px 0; }
.esim-product-fields-meta li { font-size: 1.1em; color: #333; }

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .esim-frontend-widget { padding: 20px; }
    .esim-form-group { flex-direction: column; }
    .esim-form-group button { width: 100%; justify-content: center; }
}