/* OnlineTech Gift Add-ons: product page box. Inherits theme fonts and colours. */

.otga-box {
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.02);
	clear: both;
	width: 100%;
	box-sizing: border-box;
}

.otga-box [hidden] {
	display: none !important;
}

.otga-title {
	margin: 0 0 10px;
	font-size: 1.05em;
	line-height: 1.3;
}

.otga-group {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.otga-group-title {
	padding: 0;
	margin: 0 0 6px;
	font-size: 0.85em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.7;
}

.otga-item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
	padding: 8px 10px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	line-height: 1.3;
	font-weight: 400;
}

.otga-item:hover {
	border-color: rgba(0, 0, 0, 0.3);
}

.otga-item.is-checked {
	border-color: currentColor;
	box-shadow: 0 0 0 1px currentColor inset;
}

.otga-item input {
	flex: 0 0 auto;
	margin: 0;
}

.otga-thumb {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 4px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.04);
}

.otga-thumb .otga-img,
.otga-thumb img {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: cover;
	margin: 0;
	max-width: none;
}

.otga-name {
	flex: 1 1 auto;
	min-width: 0;
}

.otga-price {
	flex: 0 0 auto;
	font-size: 0.92em;
	white-space: nowrap;
	opacity: 0.85;
}

.otga-once {
	font-size: 0.85em;
	opacity: 0.7;
}

.otga-none .otga-name {
	opacity: 0.7;
}

.otga-message {
	margin: 4px 0 12px;
}

.otga-message label {
	display: block;
	margin: 0 0 4px;
	font-weight: 600;
	font-size: 0.92em;
}

.otga-message textarea {
	width: 100%;
	box-sizing: border-box;
	resize: vertical;
}

.otga-counter {
	display: block;
	text-align: right;
	font-size: 0.8em;
	opacity: 0.6;
}

.otga-total {
	margin: 4px 0 0;
	padding-top: 8px;
	border-top: 1px dashed rgba(0, 0, 0, 0.2);
	font-weight: 600;
	font-size: 0.95em;
}

@media (max-width: 480px) {
	.otga-box {
		padding: 12px;
	}
	.otga-item {
		padding: 8px;
		gap: 8px;
	}
}
