.ocab-widget {
	width: 100%;
}

/* ---------- Variation Swatches ---------- */
.ocab-variations-wrap {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ocab-var-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ocab-var-label {
	font-weight: 600;
	font-size: 14px;
}

.ocab-var-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ocab-var-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border: 1px solid #dcdfe6;
	background: #fff;
	cursor: pointer;
	user-select: none;
	transition: all 0.15s ease;
	font-size: 14px;
	line-height: 1.3;
}

.ocab-shape-square .ocab-var-option {
	border-radius: 4px;
}

.ocab-shape-circle .ocab-var-option {
	border-radius: 50%;
	width: 44px;
	height: 44px;
	padding: 0;
}

.ocab-shape-pill .ocab-var-option {
	border-radius: 999px;
}

.ocab-var-option.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
	text-decoration: line-through;
}

.ocab-var-option.is-selected {
	font-weight: 600;
}

/* ---------- Bottom row: quantity + buttons ---------- */
.ocab-bottom-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.ocab-qty-wrap {
	display: inline-flex;
	align-items: stretch;
	box-sizing: border-box;
	border: 1px solid #dcdfe6;
	border-radius: 4px;
	overflow: hidden;
	height: 42px;
	flex-shrink: 0;
}

/* Reset any theme/plugin default styles on the inner elements so ONLY
   the wrapper's border (controlled from Elementor) is visible */
.ocab-qty-wrap * {
	box-sizing: border-box;
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	border-radius: 0 !important;
}

.ocab-qty-btn {
	background: #f2f2f2;
	width: 36px;
	min-width: 36px;
	height: 100%;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #273272;
	transition: background 0.15s ease;
	flex-shrink: 0;
}

.ocab-qty-btn:hover {
	filter: brightness(0.95);
}

.ocab-qty-input {
	width: 44px;
	height: 100%;
	padding: 0;
	margin: 0;
	text-align: center;
	font-size: 14px;
	line-height: 1;
	-moz-appearance: textfield;
	background: transparent;
	flex: 1 1 auto;
}

.ocab-qty-input::-webkit-outer-spin-button,
.ocab-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---------- Actions row ---------- */
.ocab-btn,
.ocab-btn * {
	box-sizing: border-box;
}

.ocab-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center;
	gap: 8px;
	border: 0;
	cursor: pointer;
	font-weight: 600;
	line-height: 1 !important;
	text-decoration: none;
	transition: all 0.15s ease;
	white-space: nowrap;
	position: relative;
	vertical-align: middle;
	appearance: none;
	-webkit-appearance: none;
}

.ocab-btn-text {
	display: inline-flex;
	align-items: center;
	line-height: 1 !important;
	vertical-align: middle;
}

/* "Show Below Add to Cart" option for Buy Now button */
.ocab-buy-below-yes .ocab-btn-buy {
	flex-basis: 100%;
	margin-top: 10px;
}

.ocab-btn:disabled,
.ocab-btn.is-loading {
	opacity: 0.7;
	cursor: not-allowed;
}

.ocab-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ocab-btn-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.ocab-btn-icon img {
	width: 18px;
	height: 18px;
	display: block;
	object-fit: contain;
}

.ocab-btn.is-loading .ocab-btn-text {
	visibility: hidden;
}

.ocab-btn.is-loading::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	animation: ocab-spin 0.6s linear infinite;
}

@keyframes ocab-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Message ---------- */
.ocab-message {
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 13px;
}

.ocab-message.ocab-success {
	background: #e6f7ec;
	color: #1a7f37;
	border: 1px solid #b7e4c7;
}

.ocab-message.ocab-error {
	background: #fdecea;
	color: #b3261e;
	border: 1px solid #f5c2c0;
}

@media (max-width: 480px) {
	.ocab-qty-wrap {
		flex: 0 0 auto;
		width: auto;
	}
	.ocab-btn {
		flex: 1 1 auto;
	}
}
