/**
 * Package Protect — cart / checkout widget
 * Brand: navy #02203A, orange #FE8F00
 */

.kpp-widget-container {
	box-sizing: border-box;
	max-width: 100%;
	margin: 1rem 0;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	font-family: inherit;
}

.kpp-widget-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.kpp-widget-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1 1 auto;
	min-width: 0;
}

.kpp-icon {
	flex-shrink: 0;
}

.kpp-icon img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.kpp-text {
	min-width: 0;
}

.kpp-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0 0 0.25rem;
	font-size: 1rem;
	font-weight: 700;
	color: #02203A;
	line-height: 1.3;
}

.kpp-title-leaf {
	display: inline-flex;
	vertical-align: middle;
	line-height: 0;
}

.kpp-title-leaf img {
	width: 1.125rem;
	height: 1.125rem;
	display: block;
}

.kpp-description {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.4;
}

.kpp-info-trigger {
	display: inline;
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	font: inherit;
	color: #6b7280;
	cursor: pointer;
	text-align: left;
	text-decoration: none;
}

.kpp-info-trigger:hover {
	color: #02203A;
}

.kpp-info-icon {
	margin-left: 0.15rem;
	color: #9ca3af;
	font-size: 0.9em;
}

.kpp-widget-right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.kpp-price {
	font-size: 1rem;
	font-weight: 700;
	color: #02203A;
}

.kpp-price .woocommerce-Price-amount {
	font-weight: 700;
}

/* Toggle switch */
.kpp-switch {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 26px;
	flex-shrink: 0;
}

.kpp-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.kpp-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #d1d5db;
	transition: 0.2s;
	border-radius: 26px;
}

.kpp-slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.2s;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.kpp-switch input:checked + .kpp-slider {
	background-color: #fe8f00;
}

.kpp-switch input:focus + .kpp-slider {
	box-shadow: 0 0 0 2px rgba(2, 32, 58, 0.2);
}

.kpp-switch input:checked + .kpp-slider:before {
	transform: translateX(22px);
}

.kpp-disclaimer {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #f3f4f6;
	font-size: 0.75rem;
	line-height: 1.45;
	color: #6b7280;
}

/* Info modal */
.kpp-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.kpp-modal.kpp-modal-open {
	display: flex;
}

.kpp-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 32, 58, 0.55);
}

.kpp-modal-panel {
	position: relative;
	z-index: 1;
	max-width: 430px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	padding: 1.5rem 1.5rem 1.25rem;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
	border-top: 4px solid #fe8f00;
}

.kpp-modal-brand {
	margin: 0 0 1rem;
	padding-right: 1.75rem;
}

.kpp-modal-logo {
	display: block;
	width: 100%;
	max-width: 280px;
	height: auto;
}

.kpp-modal-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
	border-radius: 6px;
}

.kpp-modal-close:hover {
	background: #f3f4f6;
	color: #02203a;
}

.kpp-modal-title {
	margin: 0 0 1rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: #02203a;
}

.kpp-modal-body {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #374151;
}

.kpp-modal-body p {
	margin: 0 0 1.25rem!important;
}

.kpp-modal-body p:last-child {
	margin-bottom: 0;
}
