/* ==========================================================================
   OneCo Product Selector - Clean, Consolidated CSS
   ========================================================================== */

/* ==========================================================================
   COLOR DEFINITIONS
   ========================================================================== */
:root {
	/* Custom Colors */
	--oneco-accent: #6D1D6C;
	--oneco-success: #28a745;
	--oneco-heading: #1E1E1E;
	--oneco-text: #353335;
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.oneco-product-selector-wrapper {
	max-width: 1400px;
	margin: 0 auto;
	padding: 1rem;
}

.oneco-content-wrapper {
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 2rem;
	align-items: start;
}

.oneco-main-content {
	min-width: 0;
}

/* ==========================================================================
   TAB SYSTEM
   ========================================================================== */
.oneco-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 2rem;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.oneco-tab {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
}

.oneco-tab:not(:last-child) {
	border-right: none;
}

.oneco-tab:hover {
	background: #e9ecef;
}

.oneco-tab[data-active="true"] {
	background: var(--oneco-accent);
	color: #ffffff;
	border-color: var(--oneco-accent);
}

.oneco-tab[data-completed="true"] {
	background: var(--oneco-success);
	color: #ffffff;
	border-color: var(--oneco-success);
}

.oneco-tab[data-accessible="false"] {
	opacity: 0.5;
	cursor: not-allowed;
}

.oneco-tab-number {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 16px;
}

.oneco-tab[data-active="true"] .oneco-tab-number,
.oneco-tab[data-completed="true"] .oneco-tab-number {
	background: rgba(255, 255, 255, 0.3);
}

.oneco-tab-label {
	font-weight: 600;
	font-size: 14px;
}

.oneco-tab-status {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	margin-left: auto;
}

.oneco-tab-status.completed,
.oneco-tab-status.active {
	background: rgba(255, 255, 255, 0.3);
	color: #ffffff;
}

/* ==========================================================================
   CALCULATOR PANEL
   ========================================================================== */
.oneco-calculator-panel {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 1.5rem;
	position: sticky;
	top: 2rem;
	height: fit-content;
}

.oneco-calculator-header h3 {
	margin: 0 0 1.5rem 0;
	color: var(--oneco-heading);
	font-size: 1.25rem;
	text-align: center;
	border-bottom: 2px solid var(--oneco-accent);
	padding-bottom: 0.75rem;
}

.oneco-selection-summary {
	margin-bottom: 1.5rem;
}

.oneco-selected-product,
.oneco-selected-accessories {
	margin-bottom: 1rem;
	padding: 1rem;
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 8px;
}

.oneco-selected-product h4,
.oneco-selected-accessories h4 {
	margin: 0 0 0.5rem 0;
	color: var(--oneco-heading);
	font-size: 1rem;
	font-weight: 600;
}

.oneco-selected-product p,
.oneco-selected-accessories p {
	margin: 0;
	color: var(--oneco-text);
	font-size: 0.9rem;
}

/* ==========================================================================
   SUMMARY ITEMS
   ========================================================================== */
.oneco-summary-placeholder {
	color: var(--oneco-text);
	background: #ffffff;
	border: 1px dashed #e9ecef;
	border-radius: 8px;
	padding: 1rem;
	text-align: center;
	font-style: italic;
}

.oneco-summary-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 0;
	border-bottom: 1px solid #e9ecef;
}

.oneco-summary-item:last-child {
	border-bottom: none;
}

.oneco-summary-name {
	font-weight: 500;
	color: var(--oneco-heading);
	font-size: 0.9rem;
	flex: 1;
	margin-right: 1rem;
}

.oneco-summary-price {
	font-weight: 600;
	color: var(--oneco-accent);
	font-size: 0.9rem;
	white-space: nowrap;
}

.oneco-total-section {
	border-top: 2px solid #e9ecef;
	padding-top: 1rem;
	margin-bottom: 1.5rem;
}

.oneco-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.1rem;
	font-weight: 600;
}

.oneco-total-price {
	color: var(--oneco-accent);
	font-size: 1.25rem;
}

.oneco-calculator-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}



/* ==========================================================================
   STEP SYSTEM
   ========================================================================== */
.oneco-step {
	display: none;
}

.oneco-step-header {
	margin-bottom: 1.5rem;
	text-align: center;
}

.oneco-step-header h2 {
	margin: 0 0 0.5rem 0;
	color: var(--oneco-heading);
	font-size: 1.75rem;
}

.oneco-step-description {
	margin: 0;
	color: var(--oneco-text);
	font-size: 1rem;
}

/* ==========================================================================
   PRODUCT GRID
   ========================================================================== */
.oneco-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	margin: 1rem 0 2rem 0;
}

.oneco-product-card {
	border: 2px solid #e9ecef;
	border-radius: 12px;
	padding: 1rem;
	text-align: center;
	transition: all 0.3s ease;
	cursor: pointer;
	background: #ffffff;
	position: relative;
	display: flex;
	flex-direction: column;
}

.oneco-product-card:hover {
	border-color: var(--oneco-accent);
	box-shadow: 0 4px 12px rgba(109, 29, 108, 0.15);
}

.oneco-product-card.selected {
	border-color: var(--oneco-accent);
	background-color: rgba(109, 29, 108, 0.1);
	box-shadow: 0 4px 12px rgba(109, 29, 108, 0.2);
}

.oneco-product-card.selected::before {
	content: '✓';
	position: absolute;
	top: -8px;
	right: -8px;
	background: var(--oneco-accent);
	color: #ffffff;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 14px;
}

.oneco-product-card img {
	max-width: 100%;
	height: 140px;
	object-fit: contain;
	margin-bottom: 0.5rem;
	transition: opacity 0.3s ease;
}

.oneco-product-card h3 {
	margin: 0 0 0.5rem 0;
	color: var(--oneco-heading);
	font-size: 1.1rem;
	font-weight: 600;
}



/* ==========================================================================
   VARIANT SELECTOR
   ========================================================================== */
.oneco-variant-selector {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #e9ecef;
	text-align: left;
}

.oneco-variant-dropdown {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	background: #ffffff;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--oneco-text);
	transition: all 0.3s ease;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23353335' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 16px;
	padding-right: 2.5rem;
}

.oneco-variant-dropdown:focus {
	outline: none;
	border-color: var(--oneco-accent);
	box-shadow: 0 0 0 3px rgba(109, 29, 108, 0.1);
}

.oneco-variant-dropdown:hover {
	border-color: var(--oneco-accent);
}

.oneco-variant-dropdown option {
	padding: 0.5rem;
	font-family: inherit;
	font-size: 0.9rem;
}

.oneco-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}



/* ==========================================================================
   MEMBERSHIP MESSAGES
   ========================================================================== */
.oneco-membership-message {
	text-align: center;
	padding: 3rem 2rem;
	background: #f8f9fa;
	border-radius: 12px;
	border: 1px solid #e9ecef;
	max-width: 600px;
	margin: 0 auto;
}

.oneco-membership-message h2 {
	color: var(--oneco-text);
	margin-bottom: 1rem;
	font-size: 1.5rem;
	font-weight: 600;
}

.oneco-membership-message p {
	color: var(--oneco-text);
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}

.oneco-membership-message a {
	color: var(--oneco-accent);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
}

.oneco-membership-message a:hover {
	color: #5a1a5a;
	text-decoration: underline;
}

/* Empty message styling for individual sections */
.oneco-main-products-empty-message,
.oneco-accessories-empty-message {
	text-align: center;
	padding: 2rem;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
	margin: 1rem 0;
}

.oneco-main-products-empty-message p,
.oneco-accessories-empty-message p {
	color: var(--oneco-text);
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}

.oneco-main-products-empty-message a,
.oneco-accessories-empty-message a {
	color: var(--oneco-accent);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
}

.oneco-main-products-empty-message a:hover,
.oneco-accessories-empty-message a:hover {
	color: #5a1a5a;
	text-decoration: underline;
}

/* ==========================================================================
   ORDER RECEIVED PAGE STYLES
   ========================================================================== */
.oneco-order-received-container {
	width: min(1200px, 94vw);
	margin: 60px auto;
	padding: 0 20px;
}

/* Order Confirmation Header */
.oc-order-confirmation {
	display: flex;
	align-items: center;
	gap: 20px;
	background: #ffffff;
	padding: 24px 32px;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
	border: 1px solid #e9ecef;
	border-bottom: none;
	margin-bottom: 0;
	transition: all 0.2s ease-in-out;
}

.oc-order-confirmation:hover {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	transform: translateY(-1px);
}

.oc-order__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
	border-radius: 16px;
	color: var(--oneco-success);
	border: 1px solid #bbf7d0;
	flex-shrink: 0;
}

.oc-order__icon svg {
	width: 28px;
	height: 28px;
	stroke-width: 2.5;
}

.oc-order__content {
	flex: 1;
}

.oc-order__number {
	font-size: 0.95rem;
	color: var(--oneco-text);
	font-weight: 500;
	margin-bottom: 8px;
	letter-spacing: 0.025em;
}

.oc-order__message {
	font-size: 1.25rem;
	color: var(--oneco-heading);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.025em;
}

/* ==========================================================================
   TIMELINE STYLES
   ========================================================================== */
.oc-timeline {
	--oc-bg: #ffffff;
	--oc-fg: var(--oneco-heading);
	--oc-subtle: var(--oneco-text);
	--oc-rail: #e9ecef;
	--oc-dot: #ffffff;
	--oc-accent: var(--oneco-accent);
	--oc-accent-hover: #5a1a5a;
	--oc-radius: 12px;
	--oc-gap: clamp(24px, 4vw, 36px);
	--oc-card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
	--oc-card-shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

	color: var(--oc-fg);
	margin: 0 auto;
	padding: 32px 32px 0 32px;
	background: #ffffff;
	border-radius: 0 0 16px 16px;
	border: 1px solid #e9ecef;
	border-top: none;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.oc-timeline__header {
	text-align: left;
	margin-bottom: 32px;
	padding: 0 0 24px 0;
	border-bottom: 1px solid #e9ecef;
}

.oc-timeline__title {
	font-size: clamp(2rem, 3vw, 2.5rem);
	line-height: 1.2;
	margin: 0;
	color: var(--oc-fg);
	font-weight: 700;
	letter-spacing: -0.025em;
}

/* Grid: left = cards, right = rail/labels */
.oc-timeline__grid {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr minmax(260px, 340px);
	gap: var(--oc-gap) clamp(24px, 4vw, 40px);
	position: relative;
	padding: 32px 0 16px 0;
	margin: 0;
}

.oc-step {
	display: contents;
}

.oc-step__card {
	background: var(--oc-bg);
	border-radius: var(--oc-radius);
	padding: clamp(24px, 3vw, 32px);
	box-shadow: var(--oc-card-shadow);
	border: 1px solid #e9ecef;
	transition: all 0.2s ease-in-out;
	position: relative;
}

.oc-step__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	border-radius: 12px;
	margin-bottom: 20px;
	color: var(--oc-accent);
	border: 1px solid #e9ecef;
	transition: all 0.2s ease-in-out;
}

.oc-step__card:hover .oc-step__icon {
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	border-color: var(--oc-accent);
	transform: scale(1.05);
}

.oc-step__icon svg {
	width: 24px;
	height: 24px;
	stroke-width: 2;
}

.oc-step__card:hover {
	box-shadow: var(--oc-card-shadow-hover);
	transform: translateY(-2px);
	border-color: #e9ecef;
}

.oc-step__heading {
	font-size: clamp(1.2rem, 1.8vw, 1.5rem);
	margin: 0 0 16px 0;
	color: var(--oc-fg);
	font-weight: 600;
	line-height: 1.3;
}

.oc-step__text {
	margin: 0;
	color: var(--oc-subtle);
	font-size: 1rem;
	line-height: 1.6;
	font-weight: 400;
}

.oc-step__rail {
	position: relative;
	padding-left: 32px;
}

/* the vertical line for each step */
.oc-step__rail::before {
	content: "";
	position: absolute;
	left: 15px;
	top: -24px;
	bottom: -24px;
	width: 3px;
	background: linear-gradient(to bottom, var(--oc-rail), var(--oc-rail));
	opacity: 0.7;
	border-radius: 2px;
}

.oc-step:first-child .oc-step__rail::before { top: 0; }
.oc-step:last-child .oc-step__rail::before { bottom: 0; }

.oc-step__dot {
	position: absolute;
	left: 0;
	top: 4px;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: var(--oc-accent);
	box-shadow: 
		0 0 0 4px var(--oc-dot),
		0 2px 8px rgba(109, 29, 108, 0.3);
	transition: all 0.2s ease-in-out;
}

.oc-step__dot:hover {
	background: var(--oc-accent-hover);
	transform: scale(1.1);
}

.oc-step__label {
	font-size: 0.95rem;
	color: var(--oc-subtle);
	line-height: 1.5;
	margin-left: 12px;
	font-weight: 500;
	padding: 8px 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
	.oneco-content-wrapper {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.oneco-calculator-panel {
		position: static;
		order: -1;
	}
}

@media (max-width: 900px) {
	.oc-timeline__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.oc-step {
		display: grid;
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.oc-step__rail {
		margin-top: 0;
		padding-left: 0;
		display: flex;
		align-items: center;
		gap: 12px;
		background: #f8f9fa;
		padding: 16px 20px;
		border-radius: 8px;
		border: 1px solid #e9ecef;
	}
	
	.oc-step__rail::before {
		display: none;
	}
	
	.oc-step__dot {
		position: static;
		width: 16px;
		height: 16px;
		box-shadow: 
			0 0 0 3px var(--oc-dot),
			0 1px 3px rgba(109, 29, 108, 0.2);
	}
	
	.oc-step__label {
		margin-left: 0;
		padding: 0;
		font-weight: 600;
		color: var(--oc-fg);
		flex: 1;
	}
	
	.oc-timeline__header {
		margin-bottom: 32px;
		padding: 24px 0;
	}
}

@media (max-width: 768px) {
	.oneco-product-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: 1rem;
	}
	
	.oneco-variant-dropdown {
		font-size: 0.85rem;
		padding: 0.45rem 0.65rem;
		padding-right: 2.2rem;
		background-size: 14px;
	}
	
	.oneco-tabs {
		flex-direction: column;
	}
	
	.oneco-tab {
		border-right: none;
		border-bottom: 1px solid #e9ecef;
	}
	
	.oneco-tab:last-child {
		border-bottom: none;
	}
	
	.oneco-order-received-container {
		margin: 40px auto;
		padding: 0 16px;
	}
	
	.oc-order-confirmation {
		padding: 20px 24px;
		margin-bottom: 32px;
		gap: 16px;
	}
	
	.oc-order__icon {
		width: 48px;
		height: 48px;
	}
	
	.oc-order__icon svg {
		width: 24px;
		height: 24px;
	}
	
	.oc-order__number {
		font-size: 0.9rem;
		margin-bottom: 6px;
	}
	
	.oc-order__message {
		font-size: 1.1rem;
	}
	
	.oc-timeline__header {
		margin-bottom: 24px;
		padding: 20px 0;
	}
	
	.oc-timeline__title {
		font-size: clamp(1.8rem, 4vw, 2.2rem);
	}
	
	.oc-step__card {
		padding: 20px;
	}
	
	.oc-step__icon {
		width: 40px;
		height: 40px;
		margin-bottom: 16px;
	}
	
	.oc-step__icon svg {
		width: 20px;
		height: 20px;
	}
	
	.oc-step__heading {
		font-size: clamp(1.1rem, 4vw, 1.3rem);
		margin-bottom: 12px;
	}
	
	.oc-step__text {
		font-size: 0.95rem;
		line-height: 1.5;
	}
	
	.oc-step__rail {
		padding: 14px 16px;
	}
	
	.oc-step__label {
		font-size: 0.9rem;
	}
}

@media (max-width: 600px) {
	.oneco-order-received-container {
		margin: 32px auto;
		padding: 0 12px;
	}
	
	.oc-timeline__grid {
		gap: 16px;
	}
	
	.oc-step__card {
		padding: 18px;
	}
	
	.oc-step__icon {
		width: 36px;
		height: 36px;
		margin-bottom: 14px;
	}
	
	.oc-step__icon svg {
		width: 18px;
		height: 18px;
	}
	
	.oc-step__rail {
		padding: 12px 14px;
	}
}
