/**
 * Rapidshyp Connect – Frontend Styles
 * Serviceability widget & My Account tracking.
 *
 * @package RapidshypConnect
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* ── Serviceability Widget (Compact) ─────────────────────────────────────── */
.rsp-serviceability-widget {
	margin: 10px 0;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	background: #fff;
	font-size: 13px;
}

/* Compact inline header — icon + label + form all on one line */
.rsp-widget-header {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	background: #000000;
	color: #fff;
	border-radius: 7px 7px 0 0;
}
.rsp-widget-icon { font-size: 14px; line-height: 1; }
.rsp-widget-header h4 {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	color: #ffffff !important;
}

.rsp-widget-form { padding: 8px 10px; }

.rsp-pincode-row {
	display: flex;
	gap: 6px;
	align-items: center;
}

.rsp-pincode-input {
	flex: 1;
	padding: 6px 10px;
	border: 1.5px solid #d1d5db;
	border-radius: 6px;
	font-size: 13px;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
	font-family: inherit;
	background: #fafafa;
	height: 32px;
	box-sizing: border-box;
}
.rsp-pincode-input:focus {
	border-color: #000000;
	box-shadow: 0 0 0 2px rgba(0,0,0,.15);
	background: #fff;
}

.rsp-check-btn {
	padding: 0 12px;
	height: 32px;
	background: #ff0000;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s, box-shadow .15s;
	font-family: inherit;
	white-space: nowrap;
	line-height: 32px;
}
.rsp-check-btn:hover  { opacity: .88; box-shadow: 0 2px 8px rgba(255,0,0,.3); }
.rsp-check-btn:active { opacity: 1; }
.rsp-check-btn.rsp-loading { opacity: .65; cursor: not-allowed; }

/* ── Result (compact inline strip) ───────────────────────────────────────── */
.rsp-widget-result {
	margin-top: 6px;
	border-radius: 6px;
	overflow: hidden;
	animation: rspFadeIn .2s ease;
}

@keyframes rspFadeIn {
	from { opacity: 0; transform: translateY(3px); }
	to   { opacity: 1; transform: translateY(0); }
}

.rsp-result-serviceable {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 6px;
	padding: 6px 10px;
}
.rsp-result-not-serviceable {
	background: #fff1f2;
	border: 1px solid #fecdd3;
	border-radius: 6px;
	padding: 6px 10px;
}

/* Title row — icon + message on same line, no big gap */
.rsp-result-title {
	display: flex;
	align-items: center;
	gap: 5px;
	font-weight: 600;
	font-size: 12px;
	margin-bottom: 5px;
}
.rsp-icon-check  { color: #16a34a; font-size: 13px; }
.rsp-icon-cross  { color: #dc2626; font-size: 13px; }
.rsp-result-msg-ok  { color: #15803d; }
.rsp-result-msg-err { color: #b91c1c; }

/* Details: single horizontal row instead of 2×2 grid */
.rsp-result-details {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
}
.rsp-result-item {
	display: flex;
	align-items: center;
	gap: 4px;
}
.rsp-result-item-label {
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #6b7280;
}
.rsp-result-item-label::after { content: ':'; }
.rsp-result-item-value {
	font-size: 11px;
	font-weight: 600;
	color: #111;
}
.rsp-badge-yes { color: #16a34a; }
.rsp-badge-no  { color: #dc2626; }

/* ── My Account Tracking ─────────────────────────────────────────────────── */
.rsp-myaccount-track { font-family: 'Inter', sans-serif; font-size: 12px; }
.rsp-track-na        { color: #9ca3af; }
.rsp-track-status {
	display: inline-block;
	padding: 2px 8px;
	background: #eff6ff;
	color: #1d4ed8;
	border-radius: 20px;
	font-size: 10px;
	font-weight: 600;
	text-transform: capitalize;
	margin-bottom: 5px;
}
.rsp-track-details { margin-top: 4px; }
.rsp-track-summary {
	cursor: pointer;
	font-size: 12px;
	color: #6366f1;
	font-weight: 500;
	user-select: none;
}
.rsp-track-awb { font-family: monospace; font-size: 11px; opacity: .8; }
.rsp-track-info { margin-top: 8px; padding: 10px; background: #f8fafc; border-radius: 8px; }
.rsp-track-info p { margin: 0 0 6px; font-size: 11px; }
.rsp-mini-timeline { display: flex; flex-direction: column; gap: 5px; }
.rsp-mini-event {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11px;
	padding: 4px 0;
	border-bottom: 1px solid #e5e7eb;
}
.rsp-mini-event:last-child { border-bottom: none; }
.rsp-mini-status { font-weight: 500; color: #374151; }
.rsp-mini-time   { color: #9ca3af; font-size: 10px; }

/* ── Checkout Courier Selection ───────────────────────────────────────────── */
.dizi-checkout-courier-section {
	font-family: 'Inter', sans-serif;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.dizi-courier-card {
	position: relative;
	border: 1.5px solid #cbd5e1;
	background: #ffffff;
	border-radius: 8px;
	padding: 12px 14px;
	transition: all 0.2s ease;
	cursor: pointer;
}
.dizi-courier-card:hover {
	border-color: #93c5fd !important;
	background: #f8fafc !important;
}
.dizi-courier-card.dizi-card-selected {
	border-color: #2563eb !important;
	background: #f0f7ff !important;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.dizi-badge {
	font-size: 10px;
	font-weight: 700;
	background: #e0f2fe;
	color: #0369a1;
	padding: 2px 8px;
	border-radius: 12px;
	margin-left: 8px;
	letter-spacing: 0.02em;
}
.dizi-chosen-courier-badge {
	font-family: 'Inter', sans-serif;
}
