/**
 * Ekspedisi Cek Ongkir — Seamless WooCommerce Checkout Styling
 */

/* ─────────────────────────────────────────────────────────────
 * 1. Seamless Shipping Methods List (No Parent Border, No Card Border)
 * ───────────────────────────────────────────────────────────── */
.woocommerce-checkout #shipping_method,
.woocommerce-cart #shipping_method,
ul.woocommerce-shipping-methods,
.woocommerce-shipping-methods,
.wc-block-components-shipping-rates-control,
.wc-block-components-shipping-rates-control fieldset,
.wc-block-components-shipping-rates-control .wc-block-components-radio-control,
fieldset.wc-block-components-radio-control,
.wc-block-components-radio-control,
.wc-block-checkout__shipping-rates,
.shipping ul#shipping_method,
#order_review ul#shipping_method {
	list-style: none !important;
	padding: 0 !important;
	margin: 6px 0 12px 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}

/* Individual seamless row — completely borderless, only clean bottom divider */
.woocommerce-checkout #order_review #shipping_method li,
.woocommerce-checkout #shipping_method li,
.woocommerce-cart #shipping_method li,
ul.woocommerce-shipping-methods li,
.woocommerce-shipping-methods li,
.woocommerce-checkout .shipping-method-item,
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option,
.wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option,
.wc-block-checkout__shipping-option,
tr.shipping td ul li,
.shipping ul#shipping_method li {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	padding: 12px 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: none !important;
	border-bottom: 1px solid #f1f5f9 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	cursor: pointer !important;
	position: relative !important;
	box-sizing: border-box !important;
	width: 100% !important;
	min-height: 48px !important;
	transition: background-color 0.15s ease !important;
}

/* Completely strip all card borders, box-shadows, and outlines from WooCommerce Blocks */
.wc-block-components-radio-control__option,
.wc-block-components-radio-control__option--checked,
.wc-block-components-radio-control__option.is-selected,
.wc-block-components-radio-control__option:has(input:checked),
.wc-block-components-radio-control__option:has(.wc-block-components-radio-control__input:checked),
.wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control-accordion-option--checked,
.wc-block-checkout__shipping-option,
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option,
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option--checked,
fieldset.wc-block-components-radio-control .wc-block-components-radio-control__option,
fieldset.wc-block-components-radio-control .wc-block-components-radio-control__option--checked {
	border: none !important;
	border-bottom: 1px solid #f1f5f9 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	background: transparent !important;
	margin: 0 !important;
}

.woocommerce-checkout #shipping_method li label,
.woocommerce-cart #shipping_method li label,
ul.woocommerce-shipping-methods li label,
#shipping_method li input:checked + label {
	border: none !important;
	border-bottom: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	background: transparent !important;
}

.woocommerce-checkout #shipping_method li:last-child,
.woocommerce-cart #shipping_method li:last-child,
ul.woocommerce-shipping-methods li:last-child,
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option:last-child,
.wc-block-components-radio-control__option:last-child,
.wc-block-components-radio-control-accordion-option:last-child {
	border-bottom: none !important;
}

/* Seamless subtle hover */
.woocommerce-checkout #shipping_method li:hover,
.woocommerce-cart #shipping_method li:hover,
ul.woocommerce-shipping-methods li:hover,
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option:hover,
.wc-block-components-radio-control__option:hover,
.wc-block-components-radio-control-accordion-option:hover {
	background-color: #f8fafc !important;
	border: none !important;
	border-bottom: 1px solid #f1f5f9 !important;
	border-radius: 0 !important;
	outline: none !important;
	box-shadow: none !important;
}

/* Active / checked row — subtle highlight without ANY card border */
.woocommerce-checkout #shipping_method li:has(input[type="radio"]:checked),
.woocommerce-checkout #shipping_method li.is-selected,
ul.woocommerce-shipping-methods li:has(input[type="radio"]:checked),
ul.woocommerce-shipping-methods li.is-selected,
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option:has(input:checked),
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option--checked,
.wc-block-components-radio-control__option:has(input:checked),
.wc-block-components-radio-control__option:has(.wc-block-components-radio-control__input:checked),
.wc-block-components-radio-control__option--checked,
.wc-block-components-radio-control__option.is-selected {
	background-color: #fafaf9 !important;
	border: none !important;
	border-bottom: 1px solid #f1f5f9 !important;
	border-radius: 0 !important;
	outline: none !important;
	box-shadow: none !important;
}

/* Remove any pseudo-elements creating borders */
.wc-block-components-radio-control__option::before,
.wc-block-components-radio-control__option::after,
.wc-block-components-radio-control__option-layout::before,
.wc-block-components-radio-control__option-layout::after,
.wc-block-components-radio-control__label::before,
.wc-block-components-radio-control__label::after {
	display: none !important;
	border: none !important;
	box-shadow: none !important;
	content: none !important;
}

/* Radio button — Natural flex item on the far left, NEVER overlaps logo */
.woocommerce-checkout #order_review #shipping_method li input[type="radio"],
.woocommerce-checkout #order_review #shipping_method input.shipping_method,
.woocommerce-checkout #shipping_method li input[type="radio"],
.woocommerce-checkout #shipping_method input.shipping_method,
.woocommerce-checkout input.shipping_method,
.woocommerce-cart #shipping_method li input[type="radio"],
.woocommerce-cart #shipping_method input.shipping_method,
ul.woocommerce-shipping-methods li input[type="radio"],
ul.woocommerce-shipping-methods input.shipping_method,
.wc-block-components-radio-control__input,
.wc-block-components-shipping-rates-control input[type="radio"],
.wc-block-components-radio-control input[type="radio"],
input[name="shipping_method[0]"],
input[name^="shipping_method"] {
	position: relative !important;
	display: inline-block !important;
	float: none !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	bottom: auto !important;
	transform: none !important;
	margin: 0 14px 0 2px !important;
	padding: 0 !important;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	max-width: 18px !important;
	flex-shrink: 0 !important;
	accent-color: #0f172a !important;
	cursor: pointer !important;
	opacity: 1 !important;
	visibility: visible !important;
	box-shadow: none !important;
	outline: none !important;
	border: 1.5px solid #cbd5e1 !important;
	background: #fff !important;
	z-index: 1 !important;
}

.wc-block-components-radio-control__input-container {
	margin: 0 14px 0 2px !important;
	display: inline-flex !important;
	align-items: center !important;
	flex-shrink: 0 !important;
}

/* Full-width label across the row following the radio button */
.woocommerce-checkout #shipping_method li label,
.woocommerce-cart #shipping_method li label,
ul.woocommerce-shipping-methods li label,
.wc-block-components-radio-control__label,
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__label,
.wc-block-components-radio-control__option-layout {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex: 1 1 auto !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	background: transparent !important;
	cursor: pointer !important;
	font-size: 13.5px !important;
	font-weight: 400 !important;
	color: #1e293b !important;
	line-height: 1.4 !important;
}

/* Inner shipping row container */
.ek-shipping-label-inner {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	gap: 10px !important;
}

.ek-shipping-label-left {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 6px 8px !important;
}

/* ─────────────────────────────────────────────────────────────
 * 2. Courier Brand Badges & Clean Professional Badges
 * ───────────────────────────────────────────────────────────── */
/* Courier Official Logo Container */
.ek-courier-logo-wrap {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 24px !important;
	min-width: 44px !important;
	max-width: 76px !important;
	padding: 0 4px !important;
	background: transparent !important;
	border: none !important;
	box-sizing: border-box !important;
	flex-shrink: 0 !important;
	vertical-align: middle !important;
}

.ek-courier-logo,
.ek-courier-logo-wrap svg,
.ek-courier-logo-wrap img {
	max-height: 22px !important;
	max-width: 70px !important;
	height: 20px !important;
	width: auto !important;
	object-fit: contain !important;
	display: inline-block !important;
	vertical-align: middle !important;
	overflow: visible !important;
}

.ek-badge-courier {
	display: inline-flex !important;
	align-items: center !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	padding: 2.5px 7px !important;
	border-radius: 4px !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	white-space: nowrap !important;
	line-height: 1.35 !important;
}

.ek-tag-jne {
	background: #eef2ff !important;
	color: #3730a3 !important;
}

.ek-tag-tiki {
	background: #f0f9ff !important;
	color: #0369a1 !important;
}

.ek-tag-pos {
	background: #fff7ed !important;
	color: #c2410c !important;
}

.ek-tag-jnt {
	background: #fef2f2 !important;
	color: #b91c1c !important;
}

.ek-tag-sicepat {
	background: #fef2f2 !important;
	color: #991b1b !important;
}

.ek-tag-anteraja {
	background: #faf5ff !important;
	color: #6b21a8 !important;
}

.ek-tag-lion {
	background: #fefce8 !important;
	color: #854d0e !important;
}

.ek-tag-ninja {
	background: #f1f5f9 !important;
	color: #0f172a !important;
}

.ek-tag-default {
	background: #f1f5f9 !important;
	color: #334155 !important;
}

.ek-shipping-service-name {
	font-weight: 600 !important;
	color: #1e293b !important;
	font-size: 13.5px !important;
	letter-spacing: -0.01em !important;
}

.ek-checkout-etd {
	display: inline-flex !important;
	align-items: center !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	color: #047857 !important;
	background: #ecfdf5 !important;
	padding: 1.5px 6.5px !important;
	border-radius: 4px !important;
	white-space: nowrap !important;
	line-height: 1.35 !important;
}

.ek-shipping-price-amount {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #0f172a !important;
	white-space: nowrap !important;
	margin-left: auto !important;
	letter-spacing: -0.01em !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
}

.ek-shipping-price-amount bdi,
.ek-shipping-price-amount .woocommerce-Price-amount {
	font-weight: 600 !important;
	color: #0f172a !important;
}

/* Free Ongkir Mechanism: Strikethrough Original Price + FREE Badge */
.ek-shipping-price-free {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	white-space: nowrap !important;
}

del.ek-original-price-del,
.ek-original-price-del {
	text-decoration: line-through !important;
	color: #94a3b8 !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	letter-spacing: normal !important;
	opacity: 0.85 !important;
}

del.ek-original-price-del bdi,
del.ek-original-price-del .woocommerce-Price-amount,
.ek-original-price-del bdi,
.ek-original-price-del .woocommerce-Price-amount {
	color: #94a3b8 !important;
	text-decoration: line-through !important;
	font-weight: 400 !important;
}

.ek-badge-gratis {
	display: inline-flex !important;
	align-items: center !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	color: #047857 !important;
	background: #ecfdf5 !important;
	padding: 2px 7px !important;
	border-radius: 4px !important;
	text-transform: uppercase !important;
	line-height: 1.35 !important;
	border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

/* Discounted / Subsidized Shipping (e.g. Rp 30.000 -> Rp 5.000) */
.ek-shipping-price-discounted {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	white-space: nowrap !important;
}

.ek-shipping-price-final {
	font-weight: 700 !important;
	color: #0f172a !important;
	font-size: 13.5px !important;
}

.ek-shipping-price-final .woocommerce-Price-amount {
	color: #0f172a !important;
	font-weight: 700 !important;
}

/* ─────────────────────────────────────────────────────────────
 * 3. Town / City Dropdown on Checkout
 * ───────────────────────────────────────────────────────────── */
.ek-city-select-wrapper {
	position: relative;
}

select.ek-city-select,
.woocommerce-checkout select#billing_city,
.woocommerce-checkout select#shipping_city {
	width: 100% !important;
	height: 46px !important;
	padding: 8px 36px 8px 14px !important;
	font-size: 14px !important;
	font-family: inherit !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 8px !important;
	background-color: #ffffff !important;
	color: #0f172a !important;
	transition: all 0.2s ease !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 15px 15px !important;
}

select.ek-city-select:focus,
.woocommerce-checkout select#billing_city:focus,
.woocommerce-checkout select#shipping_city:focus {
	border-color: #0f172a !important;
	box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
	outline: none !important;
}

select.ek-city-select:disabled,
.woocommerce-checkout select#billing_city:disabled,
.woocommerce-checkout select#shipping_city:disabled {
	background-color: #f8fafc !important;
	color: #94a3b8 !important;
	cursor: not-allowed !important;
}

/* ─────────────────────────────────────────────────────────────
 * 4. Select2 / SelectWoo Overrides for Boutique Aesthetics
 * ───────────────────────────────────────────────────────────── */
.select2-container--default .select2-selection--single {
	height: 46px !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 8px !important;
	display: flex !important;
	align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 44px !important;
	padding-left: 14px !important;
	color: #0f172a !important;
	font-size: 14px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 44px !important;
	right: 10px !important;
}

.select2-dropdown {
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 8px !important;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
	overflow: hidden !important;
}

.select2-results__option {
	padding: 9px 14px !important;
	font-size: 13.5px !important;
}

.select2-results__option--highlighted[aria-selected] {
	background-color: #0f172a !important;
	color: #ffffff !important;
}

/* ─────────────────────────────────────────────────────────────
 * 5. Customer Receipt & Waybill Tracking Box
 * ───────────────────────────────────────────────────────────── */
.ekspedisi-receipt-card {
	transition: all 0.2s ease-in-out;
}

.ekspedisi-receipt-card:hover {
	border-color: #cbd5e1 !important;
	box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.06) !important;
}

.btn-copy-resi:hover {
	background-color: #f1f5f9 !important;
	border-color: #94a3b8 !important;
}

#btn-receipt-live-track:hover {
	background-color: #1e293b !important;
}

@keyframes ekspin {
	to {
		transform: rotate(360deg);
	}
}
