/* Storitev Order — scoped front-end styles.
   Everything lives under .so-* so it stays out of the theme's way. */

.so-order-btn {
	display: inline-block;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.85em 1.9em;
	border: none;
	border-radius: 999px;
	color: #fff;
	background: #2f5d50;
	background-image: linear-gradient(135deg, #3a6f60 0%, #2a5246 100%);
	box-shadow: 0 6px 18px -8px rgba(20, 50, 42, 0.6);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}
.so-order-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(20, 50, 42, 0.65); filter: brightness(1.04); }
.so-order-btn:active { transform: translateY(0); }
.so-order-btn:focus-visible { outline: 3px solid rgba(58, 111, 96, 0.4); outline-offset: 2px; }

/* Overlay */
.so-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(24, 31, 28, 0.55);
	backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}
.so-overlay.is-open { opacity: 1; visibility: visible; }

/* Modal */
.so-modal {
	box-sizing: border-box;
	width: 100%;
	max-width: 440px;
	max-height: 92vh;
	overflow-y: auto;
	background: #fdfcf9;
	color: #25302b;
	border-radius: 18px;
	padding: 30px 30px 26px;
	box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.45);
	transform: translateY(14px) scale(0.98);
	transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
	font-family: inherit;
	line-height: 1.5;
}
.so-overlay.is-open .so-modal { transform: translateY(0) scale(1); }

.so-modal *, .so-modal *::before, .so-modal *::after { box-sizing: border-box; }

.so-head { margin-bottom: 18px; padding-right: 28px; }
.so-eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a9a8f; margin: 0 0 6px; }
.so-title { font-size: 21px; font-weight: 700; margin: 0; line-height: 1.25; }
.so-subtitle { font-size: 14px; color: #5c6b63; margin: 6px 0 0; }

.so-close {
	position: absolute;
	top: 16px;
	right: 18px;
	width: 32px; height: 32px;
	border: none; border-radius: 50%;
	background: rgba(0,0,0,0.05);
	color: #4a564f;
	font-size: 20px; line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease;
}
.so-close:hover { background: rgba(0,0,0,0.1); }

.so-field { margin-top: 16px; }
.so-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: #4a564f; margin-bottom: 7px; text-transform: uppercase; }

.so-input {
	width: 100%;
	font: inherit;
	font-size: 15px;
	padding: 11px 13px;
	border: 1px solid #d6ddd6;
	border-radius: 10px;
	background: #fff;
	color: #25302b;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.so-input:focus { outline: none; border-color: #3a6f60; box-shadow: 0 0 0 3px rgba(58,111,96,0.15); }

/* Option / method cards */
.so-options { display: flex; flex-direction: column; gap: 8px; }
.so-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #d6ddd6;
	border-radius: 11px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.so-option:hover { border-color: #b6c4ba; }
.so-option.is-selected { border-color: #3a6f60; background: #f1f6f3; }
.so-option input { accent-color: #3a6f60; margin: 0; flex: 0 0 auto; }
.so-option-body { flex: 1 1 auto; }
.so-option-label { font-size: 14px; font-weight: 600; }
.so-option-price { font-size: 14px; font-weight: 700; color: #2f5d50; white-space: nowrap; }

.so-methods { display: flex; gap: 8px; }
.so-methods .so-option { flex: 1; justify-content: center; }

.so-error {
	margin-top: 14px;
	font-size: 13px;
	color: #b3261e;
	background: #fdecea;
	border-radius: 9px;
	padding: 9px 12px;
	display: none;
}
.so-error.is-visible { display: block; }

.so-submit {
	width: 100%;
	margin-top: 22px;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	padding: 14px;
	border: none;
	border-radius: 12px;
	color: #fff;
	background-image: linear-gradient(135deg, #3a6f60 0%, #2a5246 100%);
	cursor: pointer;
	transition: filter 0.15s ease, opacity 0.15s ease;
}
.so-submit:hover { filter: brightness(1.05); }
.so-submit:disabled { opacity: 0.6; cursor: progress; }

.so-secure { margin-top: 12px; text-align: center; font-size: 11px; color: #8a9a8f; }

@media (max-width: 480px) {
	.so-modal { padding: 24px 20px 20px; border-radius: 16px; }
	.so-title { font-size: 19px; }
	.so-methods { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.so-overlay, .so-modal, .so-order-btn { transition: none; }
}
