/* iKAGOO Product Shipping Estimator
   All selectors are plugin-scoped. */

.ikg-pse,
.ikg-pse *,
.ikg-pse *::before,
.ikg-pse *::after {
	box-sizing: border-box;
}

.ikg-pse {
	width: 100%;
	max-width: 100%;
	margin: 12px 0 15px;
	border: 1px solid rgba(17, 24, 39, .11);
	border-radius: 10px;
	background: #fff;
	color: #242424;
	font-size: 13px;
	line-height: 1.45;
	overflow: hidden;
}

.ikg-pse__summary {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 15px 13px 13px;
}

.ikg-pse__icon {
	display: flex;
	flex: 0 0 27px;
	align-items: center;
	justify-content: center;
	width: 27px;
	height: 27px;
	margin-top: 1px;
	border-radius: 7px;
	background: rgba(155, 61, 255, .07);
	color: #7c3aed;
}

.ikg-pse__icon svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ikg-pse__main {
	flex: 1 1 auto;
	min-width: 0;
}

.ikg-pse__heading {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: baseline;
	margin: 0 0 8px;
	color: #666;
	line-height: 1.35;
}

.ikg-pse__heading strong {
	color: #202020;
	font-weight: 600;
}

.ikg-pse__result {
	min-width: 0;
	color: #505050;
}

.ikg-pse__muted {
	color: #777;
}

.ikg-pse__change {
	flex: 0 0 auto;
	margin: 1px 0 0 8px;
	padding: 2px 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #7c3aed;
	font: inherit;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: none;
}

.ikg-pse__change:hover,
.ikg-pse__change:focus {
	background: transparent;
	color: #6d28d9;
	text-decoration: underline;
	outline: none;
}

.ikg-pse__panel {
	padding: 11px 12px 12px;
	border-top: 1px solid rgba(17, 24, 39, .08);
	background: #fafafa;
}

.ikg-pse__panel[hidden] {
	display: none !important;
}

.ikg-pse__form {
	display: grid;
	grid-template-columns: minmax(155px, 1.35fr) minmax(125px, 1fr) minmax(110px, .9fr) auto;
	gap: 8px;
	align-items: end;
	width: 100%;
}

.ikg-pse__field {
	min-width: 0;
}

.ikg-pse__field label {
	display: block;
	margin: 0 0 5px;
	color: #666;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
}

.ikg-pse select,
.ikg-pse input[type="text"] {
	width: 100%;
	height: 38px;
	min-height: 38px;
	margin: 0;
	padding: 0 9px;
	border: 1px solid #d9d9d9;
	border-radius: 7px;
	background: #fff;
	box-shadow: none;
	color: #222;
	font-family: inherit;
	font-size: 13px;
	line-height: 38px;
	outline: none;
}

.ikg-pse select:focus,
.ikg-pse input[type="text"]:focus {
	border-color: #a259ff;
	box-shadow: 0 0 0 2px rgba(162, 89, 255, .09);
}

.ikg-pse__calculate {
	min-height: 38px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #7c3aed;
	border-radius: 7px;
	background: #7c3aed;
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 36px;
	white-space: nowrap;
	cursor: pointer;
}

.ikg-pse__calculate:hover,
.ikg-pse__calculate:focus {
	border-color: #6d28d9;
	background: #6d28d9;
	color: #fff;
	outline: none;
}

.ikg-pse__calculate:disabled {
	opacity: .62;
	cursor: wait;
}

.ikg-pse__note {
	margin: 8px 0 0;
	color: #777;
	font-size: 11px;
	line-height: 1.45;
}

.ikg-pse__rates {
	display: grid;
	gap: 6px;
}

.ikg-pse__rate,
.ikg-pse__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	max-width: 440px;
}

.ikg-pse__rate span {
	min-width: 0;
	color: #555;
}

.ikg-pse__rate strong,
.ikg-pse__total strong {
	flex: 0 0 auto;
	color: #202020;
	font-weight: 650;
}

.ikg-pse__total {
	margin-top: 5px;
	padding-top: 5px;
	border-top: 1px dashed rgba(17, 24, 39, .12);
	font-size: 12px;
}

.ikg-pse__total span {
	color: #777;
}

.ikg-pse__error {
	color: #9f3030;
}

@media (max-width: 900px) {
	.ikg-pse__form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ikg-pse__action {
		grid-column: span 2;
	}

	.ikg-pse__calculate {
		width: 100%;
	}
}

@media (max-width: 600px) {
	.ikg-pse {
		margin: 10px 0 13px;
		border-radius: 9px;
		font-size: 12.5px;
	}

	.ikg-pse__summary {
		display: grid;
		grid-template-columns: 26px minmax(0, 1fr);
		gap: 8px;
		padding: 10px 11px;
	}

	.ikg-pse__icon {
		width: 26px;
		height: 26px;
	}

	.ikg-pse__change {
		grid-column: 2;
		justify-self: start;
		margin: 1px 0 0;
		padding: 0;
		font-size: 12px;
	}

	.ikg-pse__panel {
		padding: 10px 11px 11px;
	}

	.ikg-pse__form {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.ikg-pse__action {
		grid-column: auto;
	}

	.ikg-pse select,
	.ikg-pse input[type="text"],
	.ikg-pse__calculate {
		height: 42px;
		min-height: 42px;
		font-size: 14px;
	}

	.ikg-pse__calculate {
		line-height: 40px;
	}

	.ikg-pse__rate,
	.ikg-pse__total {
		max-width: none;
	}
}

@media (max-width: 380px) {
	.ikg-pse__rate,
	.ikg-pse__total {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}
}


.ikg-pse__preview-note {
	margin: 0 0 4px;
	color: #777;
	font-size: 11px;
	line-height: 1.35;
}


.ikg-pse__rate--selectable {
	position: relative;
	width: 100%;
	max-width: 440px;
	padding: 5px 7px;
	margin: 0 -7px;
	border-radius: 7px;
	cursor: pointer;
	transition: background-color .15s ease;
}

.ikg-pse__rate--selectable:hover {
	background: rgba(124, 58, 237, .04);
}

.ikg-pse__rate--selectable.is-selected {
	background: rgba(124, 58, 237, .055);
}

.ikg-pse__rate-left {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 7px;
}

.ikg-pse__rate--selectable input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.ikg-pse__radio-ui {
	position: relative;
	flex: 0 0 15px;
	width: 15px;
	height: 15px;
	border: 1.4px solid #b9b9b9;
	border-radius: 50%;
	background: #fff;
}

.ikg-pse__rate--selectable input[type="radio"]:checked + .ikg-pse__radio-ui {
	border-color: #7c3aed;
}

.ikg-pse__rate--selectable input[type="radio"]:checked + .ikg-pse__radio-ui::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: #7c3aed;
}

.ikg-pse__rate--selectable input[type="radio"]:focus-visible + .ikg-pse__radio-ui {
	outline: 2px solid rgba(124, 58, 237, .22);
	outline-offset: 2px;
}

.ikg-pse__rate-label {
	min-width: 0;
	color: #505050;
}

@media (max-width: 600px) {
	.ikg-pse__rate--selectable {
		padding-top: 7px;
		padding-bottom: 7px;
	}
}


.ikg-pse__result {
	padding-top: 1px;
}

.ikg-pse__change {
	margin-top: 0;
}

.ikg-pse__rate--selectable:first-child {
	margin-top: 1px;
}

@media (max-width: 600px) {
	.ikg-pse__summary {
		padding: 13px 11px 12px;
	}

	.ikg-pse__heading {
		margin-bottom: 7px;
	}
}


/* v1.0.4 price hierarchy */
.ikg-pse__shipping-price {
	color: #6f35e8 !important;
	font-size: 15px;
	font-weight: 650;
}

.ikg-pse__total {
	align-items: center;
	margin-top: 9px;
	padding-top: 9px;
	border-top: 1px dashed rgba(17, 24, 39, .14);
}

.ikg-pse__total-label {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.ikg-pse__total-label > span {
	color: #333;
	font-size: 12px;
	font-weight: 600;
}

.ikg-pse__total-label > small {
	color: #8a8a8a;
	font-size: 10.5px;
	font-weight: 400;
	line-height: 1.3;
}

.ikg-pse__total > strong {
	color: #202020 !important;
	font-size: 15px;
	font-weight: 700;
}

.ikg-pse__total.is-pending > strong {
	color: #777 !important;
	font-size: 12px;
	font-weight: 500;
}

@media (max-width: 600px) {
	.ikg-pse__shipping-price {
		font-size: 14.5px;
	}

	.ikg-pse__total > strong {
		font-size: 14.5px;
	}
}

/* v1.0.6 — precise XStore sticky Add to Cart isolation.
   Scope is intentionally limited to XStore's actual sticky wrapper.
   No generic sticky/fixed/cart wildcard selectors are used. */
.etheme-sticky-cart .ikg-pse {
	display: none !important;
}
