/* =========================================================================
   RoidOcean — My Account + Login/Register (Phase 7)
   Blue Sky structure, restyled to the RoidOcean ocean theme.
   Tokens: navy #103178 · orange #F59E0B · section bg #f8faff · Jost.
   ========================================================================= */

:root {
	--ro-navy: #103178;
	--ro-navy-600: #1c449b;
	--ro-orange: #F59E0B;
	--ro-orange-600: #d98905;
	--ro-bg: #f8faff;
	--ro-line: #dce6f5;
	--ro-radius: 14px;
	--ro-radius-sm: 12px;
}

/* ---- Account page shell -------------------------------------------------- */
.woocommerce-account .woocommerce {
	font-family: "Jost", "PT Sans", Raleway, Roboto, system-ui, sans-serif;
	color: var(--ro-navy);
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px 18px 56px;
}

.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
	box-sizing: border-box;
}

/* Two-column layout: sidebar + content */
.woocommerce-account .woocommerce-MyAccount-navigation {
	width: 274px;
	float: left;
}
.woocommerce-account .woocommerce-MyAccount-content {
	width: calc(100% - 274px);
	float: right;
	padding-left: 32px;
}
@media (max-width: 860px) {
	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content {
		width: 100%;
		float: none;
		padding-left: 0;
	}
	.woocommerce-account .woocommerce-MyAccount-content { margin-top: 22px; }
}

/* ---- Sidebar user card --------------------------------------------------- */
.ro-acct-user {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(135deg, var(--ro-navy) 0%, var(--ro-navy-600) 100%);
	color: #fff;
	border-radius: var(--ro-radius);
	padding: 16px 16px;
	margin-bottom: 14px;
	box-shadow: 0 8px 24px rgba(16, 49, 120, .18);
}
.ro-acct-user__avatar {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ro-acct-user__avatar .ro-ico { width: 22px; height: 22px; color: #fff; }
.ro-acct-user__meta { display: flex; flex-direction: column; min-width: 0; }
.ro-acct-user__hi { font-size: 12px; opacity: .8; letter-spacing: .3px; }
.ro-acct-user__name {
	font-size: 17px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---- Sidebar navigation -------------------------------------------------- */
.ro-acct-nav ul {
	list-style: none;
	margin: 0;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--ro-line);
	border-radius: var(--ro-radius);
	box-shadow: 0 4px 16px rgba(16, 49, 120, .06);
}
.ro-acct-nav li { margin: 0; }
.ro-acct-nav li + li { margin-top: 2px; }
.ro-acct-nav li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	color: var(--ro-navy);
	font-size: 15.5px;
	font-weight: 500;
	text-decoration: none;
	line-height: 1.1;
	white-space: nowrap;          /* labels never wrap (prior defect) */
	transition: background .15s, color .15s;
}
.ro-acct-nav__ico {
	flex: 0 0 auto;
	display: inline-flex;
	color: var(--ro-navy);
	opacity: .55;
	transition: opacity .15s, color .15s;
}
.ro-acct-nav__label {
	flex: 1 1 auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ro-acct-nav li a:hover {
	background: var(--ro-bg);
}
.ro-acct-nav li a:hover .ro-acct-nav__ico { opacity: 1; color: var(--ro-orange); }
.ro-acct-nav li.is-active a {
	background: linear-gradient(135deg, var(--ro-navy) 0%, var(--ro-navy-600) 100%);
	color: #fff;
}
.ro-acct-nav li.is-active a .ro-acct-nav__ico { color: var(--ro-orange); opacity: 1; }

/* ---- Content headings ---------------------------------------------------- */
.ro-acct-head {
	font-size: 24px;
	font-weight: 600;
	color: var(--ro-navy);
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--ro-line);
}

/* ---- Dashboard ----------------------------------------------------------- */
.ro-dash-hello { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.ro-dash-intro { color: #47597e; line-height: 1.6; margin: 0 0 22px; }

.ro-dash-tiles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin-bottom: 24px;
}
@media (max-width: 520px) { .ro-dash-tiles { grid-template-columns: 1fr; } }
.ro-dash-tile {
	display: block;
	background: #fff;
	border: 1px solid var(--ro-line);
	border-radius: var(--ro-radius);
	padding: 18px;
	text-decoration: none;
	color: var(--ro-navy);
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ro-dash-tile:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(16, 49, 120, .1);
	border-color: var(--ro-orange);
}
.ro-dash-tile__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--ro-bg);
	color: var(--ro-orange);
	margin-bottom: 10px;
}
.ro-dash-tile__ico .ro-ico { width: 20px; height: 20px; }
.ro-dash-tile__t { display: block; font-size: 16px; font-weight: 600; }
.ro-dash-tile__d { display: block; font-size: 13px; color: #6a7ba0; margin-top: 2px; }

.ro-dash-card {
	background: #fff;
	border: 1px solid var(--ro-line);
	border-radius: var(--ro-radius);
	overflow: hidden;
}
.ro-dash-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	background: var(--ro-bg);
	border-bottom: 1px solid var(--ro-line);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .3px;
	color: var(--ro-navy);
}
.ro-dash-card__ico { color: var(--ro-orange); display: inline-flex; }
.ro-dash-card__body { padding: 18px; }
.ro-dash-contact__name { font-weight: 600; margin: 0 0 3px; }
.ro-dash-contact__mail { color: #6a7ba0; margin: 0 0 10px; }
.ro-dash-links a { color: var(--ro-navy-600); font-weight: 600; text-decoration: none; }
.ro-dash-links a:hover { color: var(--ro-orange); }
.ro-dash-links__sep { color: #b9c6de; margin: 0 6px; }

/* ---- Wish List (static) -------------------------------------------------- */
.ro-wishlist-empty {
	text-align: center;
	padding: 44px 20px;
	background: #fff;
	border: 1px dashed var(--ro-line);
	border-radius: var(--ro-radius);
}
.ro-wishlist-empty .ro-ico { width: 42px; height: 42px; color: var(--ro-orange); opacity: .8; }
.ro-wishlist-empty p { color: #6a7ba0; margin: 12px 0 18px; }

/* ---- Edit account / forms ------------------------------------------------ */
.ro-acc-fieldset {
	border: 1px solid var(--ro-line);
	border-radius: var(--ro-radius);
	padding: 18px 18px 6px;
	margin: 0 0 20px;
}
.ro-acc-fieldset legend {
	font-weight: 600;
	color: var(--ro-navy);
	padding: 0 8px;
	font-size: 15px;
}
.ro-acc-row { margin-bottom: 16px; }
.ro-acc-row label,
.ro-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--ro-navy);
	margin-bottom: 6px;
}
.woocommerce-account .ro-acc-row input.input-text,
.woocommerce-account .ro-edit-account input.input-text {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--ro-line);
	border-radius: var(--ro-radius-sm);
	font-size: 16px;
	color: var(--ro-navy);
	background: #fff;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.woocommerce-account .ro-acc-row input.input-text:focus,
.woocommerce-account .ro-edit-account input.input-text:focus {
	border-color: var(--ro-orange);
	box-shadow: 0 0 0 3px rgba(245, 158, 11, .25);
}
.ro-acc-toggle { margin: 4px 0 14px; }
.ro-acc-toggle label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ro-navy-600); cursor: pointer; }

.ro-acc-actions { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.ro-acc-back { color: var(--ro-navy-600); font-weight: 600; text-decoration: none; }
.ro-acc-back:hover { color: var(--ro-orange); }

/* ---- Shared CTA button --------------------------------------------------- */
.ro-btn-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--ro-orange);
	color: #fff !important;
	border: 0;
	border-radius: var(--ro-radius-sm);
	padding: 13px 26px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s, transform .1s;
}
.ro-btn-cta:hover { background: var(--ro-orange-600); }
.ro-btn-cta:active { transform: translateY(1px); }

/* ---- Orders / addresses tables (Woo defaults, tinted) -------------------- */
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .shop_table {
	border: 1px solid var(--ro-line);
	border-radius: var(--ro-radius);
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
}
.woocommerce-account .woocommerce-orders-table thead th,
.woocommerce-account .shop_table thead th {
	background: var(--ro-bg);
	color: var(--ro-navy);
	font-weight: 600;
}
.woocommerce-account .woocommerce-Address {
	background: #fff;
	border: 1px solid var(--ro-line);
	border-radius: var(--ro-radius);
	padding: 18px;
}
.woocommerce-account .woocommerce-Button,
.woocommerce-account .button {
	background: var(--ro-navy);
	color: #fff;
	border-radius: var(--ro-radius-sm);
}
.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account .button:hover { background: var(--ro-navy-600); }
.woocommerce-account .ro-btn-cta.button:hover { background: var(--ro-orange-600); }

/* =========================================================================
   Login / Register screens
   ========================================================================= */
.ro-auth {
	max-width: 1060px;
	margin: 34px auto 60px;
	padding: 0 18px;
	font-family: "Jost", "PT Sans", Raleway, Roboto, system-ui, sans-serif;
	color: var(--ro-navy);
}
.ro-auth--split {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 26px;
	align-items: start;
}
@media (max-width: 820px) {
	.ro-auth--split { grid-template-columns: 1fr; }
}

.ro-auth-card {
	background: #fff;
	border: 1px solid var(--ro-line);
	border-radius: 20px;
	padding: 30px 28px;
	box-shadow: 0 12px 34px rgba(16, 49, 120, .08);
}
.ro-auth-register {
	background: linear-gradient(180deg, #ffffff 0%, var(--ro-bg) 100%);
}
.ro-auth-card__head { margin-bottom: 20px; }
.ro-auth-card__head h2 {
	font-size: 26px;
	font-weight: 700;
	color: var(--ro-navy);
	margin: 0 0 4px;
}
.ro-auth-card__head p { color: #6a7ba0; margin: 0; font-size: 15px; }

.ro-field { margin-bottom: 16px; }
.ro-field-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .ro-field-2col { grid-template-columns: 1fr; } }

.ro-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--ro-navy);
	margin-bottom: 6px;
}
.ro-field__wrap { position: relative; display: block; }
.ro-field__ico {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ro-navy);
	opacity: .32;
	display: inline-flex;
	pointer-events: none;
}
.ro-auth input.input-text,
.ro-auth .ro-select {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 14px;
	border: 1px solid var(--ro-line);
	border-radius: var(--ro-radius-sm);
	font-size: 16px;
	color: var(--ro-navy);
	background: #fff;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
	font-family: inherit;
}
.ro-auth .ro-field__wrap input.input-text { padding-left: 44px; }
.ro-auth input.input-text::placeholder { color: rgba(16, 49, 120, .3); }
.ro-auth input.input-text:focus,
.ro-auth .ro-select:focus {
	border-color: var(--ro-orange);
	box-shadow: 0 0 0 3px rgba(245, 158, 11, .25);
}

.ro-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 4px 0 18px;
	font-size: 14px;
}
.ro-remember { display: inline-flex; align-items: center; gap: 8px; color: var(--ro-navy-600); cursor: pointer; margin: 0; }
.ro-auth-lost { color: var(--ro-navy-600); font-weight: 600; text-decoration: none; }
.ro-auth-lost:hover { color: var(--ro-orange); }

.ro-terms__label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 500 !important;
	color: #47597e;
	font-size: 14px;
	line-height: 1.45;
	cursor: pointer;
}
.ro-terms__label input { margin-top: 3px; }
.ro-terms__label a { color: var(--ro-navy-600); font-weight: 600; text-decoration: none; }
.ro-terms__label a:hover { color: var(--ro-orange); }

.ro-auth .ro-btn-cta { width: 100%; margin-top: 6px; }

/* Clear the WC float wrappers inside the account content */
.woocommerce-account .woocommerce::after { content: ""; display: table; clear: both; }
