/**
 * Müşteri Ön Yüz (Frontend) Görsel Kargo Takip Zaman Çizelgesi ve Self-Servis İade/Değişim (RMA) Portalı Stilleri.
 *
 * @package WCKargoRMA
 */

.wckr-portal-wrapper {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #0f172a;
	margin: 24px 0;
}

.wckr-portal-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 22px 24px;
	margin-bottom: 20px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.wckr-portal-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.wckr-header-icon {
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #2563eb;
}

.wckr-header-icon svg {
	width: 22px;
	height: 22px;
}

.wckr-package-box {
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	padding: 18px;
	margin-top: 16px;
	background: #f8fafc;
}

.wckr-package-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e2e8f0;
}

.wckr-package-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wckr-carrier-svg-logo {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
	background: #ffffff;
}

.wckr-carrier-svg-logo svg {
	width: 100%;
	height: 100%;
	display: block;
}

.wckr-pkg-badge {
	background: #0f172a;
	color: #ffffff;
	font-size: 10.5px;
	font-weight: 800;
	padding: 3px 9px;
	border-radius: 6px;
	margin-right: 6px;
	display: inline-block;
}

.wckr-carrier-title {
	font-size: 15px;
	font-weight: 800;
	color: #0f172a;
}

.wckr-tracking-code-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 13px;
}

.wckr-copyable-code {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #0f172a;
	padding: 5px 12px;
	border-radius: 8px;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.15s ease;
}

.wckr-copyable-code:hover {
	background: #eff6ff;
	border-color: #2563eb;
	color: #1d4ed8;
}

/* 5 Adımlı Görsel Zaman Çizelgesi (Vektör SVG Stepper) */
.wckr-stepper {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	margin: 22px 0;
	position: relative;
}

.wckr-step-item {
	text-align: center;
	position: relative;
}

.wckr-step-circle {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	margin: 0 auto 8px auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	color: #94a3b8;
	border: 2px solid #cbd5e1;
	transition: all 0.2s ease;
}

.wckr-step-svg {
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wckr-step-svg svg {
	width: 20px;
	height: 20px;
}

.wckr-step-item.is-completed .wckr-step-circle {
	background: #dcfce7;
	border-color: #16a34a;
	color: #15803d;
}

.wckr-step-item.is-current .wckr-step-circle {
	background: #2563eb;
	border-color: #1d4ed8;
	color: #ffffff;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
	transform: scale(1.06);
}

.wckr-step-label {
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
}

.wckr-step-item.is-completed .wckr-step-label,
.wckr-step-item.is-current .wckr-step-label {
	color: #0f172a;
	font-weight: 800;
}

.wckr-pkg-items-bar {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
	color: #334155;
	margin-bottom: 12px;
}

.wckr-events-timeline {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px 16px;
}

.wckr-event-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px dashed #f1f5f9;
	font-size: 12.5px;
}

.wckr-event-row:last-child {
	border-bottom: none;
}

.wckr-event-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #2563eb;
	margin-top: 5px;
	flex-shrink: 0;
}

.wckr-event-meta {
	font-size: 11px;
	color: #64748b;
	margin-top: 2px;
}

/* Müşteri RMA Kartı ve İade Kargo Kodu Vurgusu */
.wckr-rma-customer-card {
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	padding: 16px 18px;
	margin-top: 14px;
	background: #ffffff;
}

.wckr-return-code-highlight {
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	border: 2px dashed #2563eb;
	border-radius: 12px;
	padding: 18px;
	text-align: center;
	margin: 12px 0;
}

.wckr-rc-label {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.6px;
	color: #1e40af;
	text-transform: uppercase;
}

.wckr-rc-value {
	font-family: "SFMono-Regular", Consolas, monospace;
	font-size: 24px;
	font-weight: 900;
	letter-spacing: 2px;
	color: #1e3a8a;
	background: #ffffff;
	display: inline-block;
	padding: 6px 18px;
	border-radius: 10px;
	margin: 8px 0;
	box-shadow: 0 2px 6px rgba(30, 58, 138, 0.08);
}

.wckr-rc-help {
	font-size: 12.5px;
	color: #334155;
	line-height: 1.5;
}

/* Sihirbaz Form Öğeleri */
.wckr-policy-banner {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 12.5px;
	margin-bottom: 16px;
}

.wckr-wizard-item-row {
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 10px;
	background: #f8fafc;
}

.wckr-resolution-option {
	border: 1.5px solid #cbd5e1;
	border-radius: 12px;
	padding: 12px 14px;
	background: #f8fafc;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.wckr-resolution-option:hover {
	border-color: #2563eb;
	background: #eff6ff;
}

.wckr-resolution-option span {
	display: flex;
	flex-direction: column;
	font-size: 13px;
}

.wckr-resolution-option small {
	font-size: 11px;
	color: #64748b;
	margin-top: 2px;
}

.wckr-btn-primary {
	background: var(--wckr-accent, #111827);
	color: #ffffff !important;
	border: none;
	border-radius: 10px;
	padding: 10px 20px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: opacity 0.15s ease, transform 0.12s ease;
}

.wckr-btn-primary:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

/* Adım Adım (Step-by-Step) Modern İade & Değişim Sihirbazı */
.wckr-wiz-progress {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	padding: 10px 14px;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
}

.wckr-wiz-prog-step {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 700;
	color: #94a3b8;
	white-space: nowrap;
}

.wckr-wiz-prog-num {
	width: 24px;
	height: 24px;
	border-radius: 99px;
	background: #e2e8f0;
	color: #64748b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11.5px;
	font-weight: 800;
}

.wckr-wiz-prog-step.is-active {
	color: var(--wckr-accent, #111827);
}

.wckr-wiz-prog-step.is-active .wckr-wiz-prog-num {
	background: var(--wckr-accent, #111827);
	color: #ffffff;
}

.wckr-wiz-prog-step.is-done {
	color: #16a34a;
}

.wckr-wiz-prog-step.is-done .wckr-wiz-prog-num {
	background: #dcfce7;
	color: #15803d;
}

.wckr-wiz-prog-line {
	flex: 1;
	height: 2px;
	background: #e2e8f0;
	min-width: 16px;
}

.wckr-wiz-step-pane {
	margin-top: 14px;
	padding-top: 4px;
}

.wckr-wiz-step-title {
	font-size: 14.5px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 10px;
}

.wckr-wiz-resolution-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.wckr-wiz-res-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1.5px solid #e2e8f0;
	background: #ffffff;
	cursor: pointer;
	transition: all 0.16s ease;
	margin: 0;
}

.wckr-wiz-res-card:hover {
	border-color: var(--wckr-accent, #111827);
	background: #f8fafc;
}

.wckr-wiz-res-card.is-selected {
	border-color: var(--wckr-accent, #111827);
	background: #f8fafc;
	box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

.wckr-wiz-res-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #f1f5f9;
	color: var(--wckr-accent, #111827);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.wckr-wiz-res-card.is-selected .wckr-wiz-res-icon {
	background: var(--wckr-accent, #111827);
	color: #ffffff;
}

.wckr-wiz-res-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}

.wckr-wiz-res-text strong {
	font-size: 14px;
	font-weight: 800;
	color: #0f172a;
}

.wckr-wiz-res-text small {
	font-size: 11.5px;
	color: #64748b;
	line-height: 1.35;
}

.wckr-wiz-res-arrow {
	font-size: 16px;
	font-weight: 800;
	color: #94a3b8;
}

.wckr-wiz-reason-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
}

.wckr-wiz-reason-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1.5px solid #e2e8f0;
	background: #ffffff;
	color: #1e293b;
	font-size: 13px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	transition: all 0.15s ease;
}

.wckr-wiz-reason-btn:hover {
	border-color: var(--wckr-accent, #111827);
	background: #f8fafc;
}

.wckr-wiz-reason-btn.is-selected {
	border-color: var(--wckr-accent, #111827);
	background: var(--wckr-accent, #111827);
	color: #ffffff;
}

.wckr-wiz-r-emoji {
	font-size: 18px;
	line-height: 1;
}

.wckr-wiz-carrier-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
	gap: 10px;
}

.wckr-wiz-carrier-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 12px;
	border-radius: 12px;
	border: 1.5px solid #e2e8f0;
	background: #ffffff;
	text-align: left;
	cursor: pointer;
	transition: all 0.15s ease;
}

.wckr-wiz-carrier-card:hover {
	border-color: var(--wckr-accent, #111827);
}

.wckr-wiz-carrier-card.is-selected {
	border-color: var(--wckr-accent, #111827);
	background: #f8fafc;
	box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.12);
}

.wckr-wiz-c-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
}

.wckr-wiz-c-logo svg {
	max-height: 26px;
	width: auto;
}

.wckr-wiz-c-info {
	display: flex;
	flex-direction: column;
}

.wckr-wiz-c-info strong {
	font-size: 13px;
	font-weight: 800;
	color: #0f172a;
}

.wckr-wiz-c-info small {
	font-size: 11px;
	color: #16a34a;
	font-weight: 700;
}

.wckr-btn-outline-sm {
	border: 1px solid #2563eb;
	color: #2563eb !important;
	background: #ffffff;
	padding: 5px 11px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 640px) {
	.wckr-stepper {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.wckr-step-item {
		display: flex;
		align-items: center;
		gap: 12px;
		text-align: left;
	}
	.wckr-step-circle {
		margin: 0;
	}
}

/* ==========================================================================
   4 Adımlı Bağlantılı Kargo İlerleme Kartı (Etiket Yazdırıldı -> Kargoya Verildi -> Teslim Edildi -> Tamamlandı)
   ========================================================================== */

.wckr-ship-tracker-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 24px 28px;
	margin-bottom: 20px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.wckr-ship-tracker-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.wckr-ship-stage-heading {
	margin: 0 0 6px 0 !important;
	font-size: 24px !important;
	font-weight: 500 !important;
	color: #334155 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em;
}

.wckr-ship-stage-sub {
	font-size: 14px;
	color: #334155;
}

.wckr-ship-stage-sub strong {
	font-weight: 700;
	color: #0f172a;
}

/* Yönetici Hızlı Durum Kontrol Çubuğu */
.wckr-admin-stage-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 22px;
}

.wckr-admin-stage-label {
	font-size: 12px;
	font-weight: 800;
	color: #334155;
}

.wckr-admin-stage-btns {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.wckr-admin-stage-btn {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #334155;
	padding: 5px 12px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}

.wckr-admin-stage-btn:hover {
	border-color: #1d5b8c;
	color: #1d5b8c;
}

.wckr-admin-stage-btn.is-active {
	background: #1d5b8c;
	border-color: #1d5b8c;
	color: #ffffff;
}

/* 4 Yuvarlak İkonlu Bağlantılı İlerleme Çubuğu */
.wckr-connected-stepper {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin: 22px 0 26px 0;
	padding: 0 4px;
}

.wckr-connected-track {
	position: absolute;
	top: 23px;
	left: 28px;
	right: 28px;
	height: 4px;
	background: #e2e8f0;
	z-index: 1;
	border-radius: 99px;
	overflow: hidden;
}

.wckr-connected-track-fill {
	height: 100%;
	background: #1d5b8c;
	width: 0%;
	transition: width 0.3s ease;
}

.wckr-connected-node {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 72px;
}

.wckr-connected-node.is-admin-clickable {
	cursor: pointer;
}

.wckr-connected-circle {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #c4c8cc;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	box-shadow: 0 0 0 4px #ffffff;
}

.wckr-connected-circle svg {
	width: 22px;
	height: 22px;
	stroke: #ffffff;
}

.wckr-connected-node.is-completed .wckr-connected-circle,
.wckr-connected-node.is-current .wckr-connected-circle {
	background: #1d5b8c;
	color: #ffffff;
}

.wckr-connected-node.is-current .wckr-connected-circle {
	box-shadow: 0 0 0 4px #ffffff, 0 4px 12px rgba(29, 91, 140, 0.28);
}

.wckr-connected-label {
	margin-top: 8px;
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
}

.wckr-connected-node.is-completed .wckr-connected-label,
.wckr-connected-node.is-current .wckr-connected-label {
	color: #1e293b;
	font-weight: 800;
}

/* Alt Kargo Firması + Kargomu Takip Et Satırı */
.wckr-ship-tracker-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.wckr-ship-tracker-carrier {
	display: flex;
	align-items: center;
	gap: 18px;
}

.wckr-ship-carrier-logo {
	width: 54px;
	height: 54px;
	border-radius: 8px;
	border: 1px solid #f1f5f9;
	background: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	flex-shrink: 0;
}

.wckr-ship-carrier-meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.wckr-ship-carrier-name {
	font-size: 15px;
	font-weight: 500;
	color: #1e293b;
}

.wckr-ship-tracking-link {
	font-size: 15px;
	font-weight: 500;
	color: #0ea5e9 !important;
	text-decoration: none !important;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	font-family: inherit !important;
}

.wckr-ship-tracking-link:hover {
	text-decoration: underline !important;
	color: #0284c7 !important;
}

.wckr-ship-tracking-empty {
	font-size: 13px;
	color: #94a3b8;
}

.wckr-btn-track-order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #0d5c91 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 4px !important;
	padding: 12px 24px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.15s ease;
}

.wckr-btn-track-order:hover {
	background: #094770 !important;
	color: #ffffff !important;
}

/* Hesabım > Siparişler Tablosu Durum Hücresi */
.wckr-orders-table-status-cell {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
}

.wckr-order-stage-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 700;
	background: #f1f5f9;
	color: #334155;
}

.wckr-order-stage-pill.is-step-1 {
	background: #e0f2fe;
	color: #0369a1;
}

.wckr-order-stage-pill.is-step-2 {
	background: #dbeafe;
	color: #1d4ed8;
}

.wckr-order-stage-pill.is-step-3 {
	background: #dcfce7;
	color: #15803d;
}

.wckr-order-stage-pill.is-step-4 {
	background: #d1fae5;
	color: #047857;
}

.wckr-mini-4dots {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.wckr-mini-dot {
	width: 14px;
	height: 4px;
	border-radius: 99px;
	background: #cbd5e1;
}

.wckr-mini-dot.is-active {
	background: #1d5b8c;
}

.wckr-table-admin-stages {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	margin-top: 2px;
}

.wckr-tbl-stage-btn {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #475569;
	font-size: 10.5px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 5px;
	cursor: pointer;
}

.wckr-tbl-stage-btn:hover {
	border-color: #1d5b8c;
	color: #1d5b8c;
}

.wckr-tbl-stage-btn.is-active {
	background: #1d5b8c;
	border-color: #1d5b8c;
	color: #ffffff;
}

@media (max-width: 560px) {
	.wckr-ship-tracker-card {
		padding: 18px 16px;
	}
	.wckr-connected-circle {
		width: 40px;
		height: 40px;
	}
	.wckr-connected-track {
		top: 19px;
	}
	.wckr-connected-label {
		font-size: 10.5px;
	}
	.wckr-btn-track-order {
		width: 100%;
	}
}
