/**
 * Research Account Dashboard Styles
 * 
 * Add this to your theme's style.css or enqueue via functions.php:
 * 
 * wp_enqueue_style( 'research-dashboard', get_template_directory_uri() . '/css/research-dashboard.css' );
 */

/* ============================================================
   RESET & WRAPPER
   ============================================================ */
   
   

.research-account-wrapper {
	display: flex;
}

.logged-in.woocommerce-page header.entry-header{
	display: none;
}
.logged-in.woocommerce-page #primary {
    margin-top: 0 !important;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.research-account-sidebar {
    width: 302px;
    border-right: 1px solid #DFDDDD;
    display: flex;
    flex-direction: column;
    position: relative;
}

.research-account-content{
    width: calc(100% - 302px);
}

.sidebar-welcome {
    padding: 35px;
    text-align: center;
}

.welcome-label {
    font-size: 24px;
    font-weight: 600;
    color: #234A7D;
    line-height: 1.3;
    font-family: 'PP Mori';
}

.research-account-nav {
	display: flex;
	flex-direction: column;
}

.research-account-nav .nav-item {
    display: block;
    padding: 35px;
    color: #2A2A2A;
    text-decoration: none;
    font-size: 18px;
    border-left: 2px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-weight: 600;
    font-family: 'PP Mori';
    text-align: center;
    border-bottom: 1px solid #DFDDDD;
	display: flex;
	justify-content: center;
	align-items: center;
    
}


.research-account-nav .nav-item:hover, .research-account-nav .nav-item.active {
	background: rgba(0, 107, 169, 0.1);
	border-left-color: #006BA9;
}

.sidebar-logout {
    padding: 35px;
    text-align: center;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sidebar-logout img {
    width: 16px !important;
}

.logout-link {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #555;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: color 0.15s;
}

.logout-link:hover {
	color: #1c3a6e;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */


/* ============================================================
   DASHBOARD TITLE
   ============================================================ */
   
.dashboard-title-wrapper {
    padding: 60px 60px 36px 104px;
    border-bottom: 1px solid #eee;
}
.research-dashboard .dashboard-title, .ra-vip-page .dashboard-title {
    font-size: 20px;
    font-weight: 600;
    color: #171B1D;
    margin: 0;
    font-family: 'PP Mori';
    line-height: 1.2;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.dashboard-stats {
    display: flex;
    gap: 120px;
    background: transparent;
    justify-content: start;
    align-items: baseline;
    padding: 22px 36px 36px 104px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    justify-content: center;
    font-family: 'PP Mori';
}

.stat-label {
    font-size: 18px;
    color: #393F41;
    font-weight: 600;
    text-transform: capitalize;
}

.stat-value {
	font-size: 16px;
    font-weight: 400;
    color: #000;
}

/* ============================================================
   ACTION BUTTONS
   ============================================================ */
.dashboard-actions {
    display: flex;
    justify-content: start;
    gap: 53px;
    flex-flow: row wrap;
    margin-bottom: 69px;
    padding-left: 104px;
}

.action-btn {
    background: #234A7D;
    color: #fff;
    padding: 15px 34px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    font-family: 'PP Mori';
    text-align: center;
    width: 192px;
    transition: background 0.15s, transform 0.1s;
    cursor: pointer;
    line-height: 1.3;
	display: flex;
	justify-content: center;
	align-items: center;
}

.action-btn:hover {
	background: #142d56;
	transform: translateY(-1px);
	color: #fff;
	text-decoration: none;
}

/* ============================================================
   LOWER TWO-COLUMN GRID
   ============================================================ */
.dashboard-lower {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
}

.dashboard-orders {
    padding-left: 104px;
}

.dashboard-section h2.section-title, h2.orders-section-title {
    color: #171B1D;
    font-size: 24px !important;
    font-weight: 600 !important;
    font-family: 'PP Mori' !important;
    margin-bottom: 24px !important;
    padding-bottom: 36px;
    border-bottom: 1px solid #eee;
    padding-left: 104px;
}

.dashboard-section.orders-section {
    border-right: 1px solid #EEEEEE;
}

.dashboard-section.benefits-section h2.section-title {
    padding-left: 80px;
}

/* ============================================================
   ORDER CARDS
   ============================================================ */
.orders-section {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.order-card {
	border-radius: 20px;
	padding: 20px;
	margin-bottom: 14px;
	display: flex;
	align-items: end;
	justify-content: space-between;
	border: 1px solid #DFDFDF;
	max-width: 395px;
}

.order-info p {
    margin: 2px 0;
    font-size: 18px;
    color: #2B2B2B;
    font-family: 'Inter';
}

.order-reorder a {
    font-weight: 400;
    color: #234A7D;
    font-family: 'Inter';
    font-size: 18px;
    border-bottom: 2px solid #234A7D;
}

.order-info p strong {
	font-weight: 600;
	color: #2B2B2B;
	font-family: 'PP Mori';
}

.reorder-link {
	color: #1c3a6e;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: underline;
	white-space: nowrap;
	text-underline-offset: 2px;
}

.reorder-link:hover {
	color: #142d56;
}

.no-orders {
	font-size: 0.9rem;
	color: #888;
	padding: 20px 0;
}

/* ============================================================
   BENEFITS LIST
   ============================================================ */
.benefits-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-left: 80px !important;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 16px;
    color: #000;
    font-weight: 400;
}

.check-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
}





/* ============================================================
   ORDERS PAGE
   ============================================================ */
.orders-page-title {
	font-size: 24px !important;
    font-weight: 600 !important;
    color: #171B1D;
    margin: 0 0 24px 0;
    font-family: 'PP Mori' !important;
}

.orders-section-title {
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 16px 0;
}

/* Stats row */

.ostat-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ostat-icon {
	color: #1c3a6e;
	margin-bottom: 4px;
}

.ostat-label {
	font-size: 0.78rem;
	color: #666;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ostat-value {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a1a2e;
}

/* Orders table */
.orders-table {
	width: 100%;
	border-collapse: collapse;
	background: transparent;
	font-size: 0.88rem;
	margin-left: 104px;
}

.orders-table thead tr {
	border-bottom: 2px solid #d8d3cb;
}

.orders-table th {
	text-align: left;
	padding: 8px 12px 10px;
	font-size: 0.78rem;
	font-weight: 700;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.orders-table tbody tr {
	border-bottom: 1px solid #e5e0d8;
	transition: background 0.12s;
}

.orders-table tbody tr:hover {
	background: rgba(255,255,255,0.6);
}

.orders-table td {
	padding: 14px 12px;
	color: #2a2a3a;
	vertical-align: middle;
}

.order-num strong {
	font-weight: 700;
	color: #1c3a6e;
}

.order-products {
	max-width: 200px;
	color: #3a3a4a;
}

.order-date {
	color: #666;
}

/* Status pills */
.status-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: capitalize;
	background: #e5e0d8;
	color: #444;
}

.status-pill.status-processing    { background: #dbeafe; color: #1d4ed8; }
.status-pill.status-completed     { background: #dcfce7; color: #15803d; }
.status-pill.status-pending       { background: #fef9c3; color: #a16207; }
.status-pill.status-on-hold       { background: #fee2e2; color: #b91c1c; }
.status-pill.status-cancelled     { background: #f3f4f6; color: #6b7280; }

.order-total {
	font-weight: 600;
	color: #1a1a2e;
}

.view-order-link {
	color: #1c3a6e;
	font-weight: 600;
	font-size: 0.82rem;
	text-decoration: none;
	white-space: nowrap;
}

.view-order-link:hover {
	text-decoration: underline;
}

.no-orders-msg {
	color: #888;
	font-size: 0.9rem;
	padding: 20px 0;
}

/* ============================================================
   ORDER DETAIL PAGE
   ============================================================ */
.order-back-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #1c3a6e;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 4px;
	opacity: 0.75;
	transition: opacity 0.15s;
	margin-left: 104px;
	margin-top: 36px;
}

.back-link:hover {
	opacity: 1;
	text-decoration: none;
	color: #1c3a6e;
}

/* Items table */
.order-items-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
	margin-bottom: 8px;
	max-width: 600px;
}


.order-items-table th {
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	color: #2A2A2A;
	font-family: 'PP Mori';
}



.order-items-table td {
	color: #2B2B2B;
	text-align: center;
	font-size: 18px;
	font-weight: 400;
	font-family: 'PP Mori';
}


.order-items-table-wrap {
    padding-left: 104px;
}



/* Track order heading */
.track-order-heading {
	margin-top: 36px !important;
}



/* ============================================================
   TIMELINE  — matching the image exactly
   ============================================================ */
   

.track-timeline-wrap {
	margin-bottom: 32px;
	padding-left: 104px;
}

.timeline-label {
    font-size: 20px;
    font-weight: 600;
    color: #2A2A2A;
    margin: 0 0 24px 0;
    letter-spacing: 0;
    font-family: 'PP Mori';
}

/* Outer flex row — circles + connectors sit on the same baseline */
.track-timeline {
	display: flex;
	align-items: flex-start;
	overflow-x: auto;
	padding-bottom: 4px;
	gap: 5px;
}

/* Each step = circle on top, label below */
.tl-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

/* Circle */
.tl-circle {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.2s, border-color 0.2s;
}

.tl-circle svg {
    width: 20px;
    height: 20px;
}
/* Done = solid green with white tick */
.tl-done .tl-circle {
	background: #03843D;
	border: 2px solid #1e7c45;
	color: #fff;
}

/* Pending = light grey ring with grey clock */
.tl-pending .tl-circle {
	background: #767676;
    color: #fff;
}

/* Label */
.tl-label {
	color: #000;
    font-weight: 400;
    font-family: 'Roboto';
    font-size: 16px;
}

/* Connector line between steps — sits vertically centred with circles */
.tl-connector {
	flex: 1;
	min-width: 28px;
	height: 2px;
	margin-top: 27px;
	background: transparent;
	border-top: 1px dashed #bbb;
	transition: border-color 0.2s;
}

/* Connector between two completed steps = solid green */
.tl-connector-done {
	border-top-color: #03843D;
}

/* ============================================================
   ORDER UPDATES  — matching the image exactly
   ============================================================ */
.order-updates-wrap {
	margin-top: 4px;
	padding-left: 104px;
}

.order-updates-list {
	display: flex;
	flex-direction: column;
}

.update-item {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

/* Dot + vertical line wrapper */
.update-dot-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
	width: 20px;
}

/* Blue filled circle — exactly as in image */
.update-dot {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #0D397B;
	flex-shrink: 0;
	margin-top: 3px;
}

/* Vertical dashed line connecting dots */
.update-line {
	width: 2px;
	flex: 1;
	min-height: 28px;
	background: transparent;
	border-left: 2px dashed #bfc4cc;
	margin-top: 10px;
	margin-bottom: 4px;
}

.update-content p {
    margin: 0;
}
.update-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 24px;
}

.update-text {
	font-size: 0.88rem;
	font-weight: 500;
	color: #1a1a2e;
	margin: 0;
	line-height: 1.4;
}

.update-date {
	font-size: 0.78rem;
	color: #888;
	margin: 0;
	line-height: 1.4;
}

/* ============================================================
   RESPONSIVE — ORDERS & DETAIL
   ============================================================ */
@media (max-width: 768px) {
	.orders-stats {
		gap: 20px;
		flex-wrap: wrap;
	}

	.orders-table th:nth-child(3),
	.orders-table td:nth-child(3),
	.orders-table th:nth-child(5),
	.orders-table td:nth-child(5) {
		display: none;
	}

	
}

/* =============================================================
   Account Settings — edit-account.css
   Add to your theme or enqueue separately.
   All classes are prefixed "ra-" to avoid conflicts.
   ============================================================= */


/* Page title */
.ra-settings-title {
    font-size: 24px !important;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 !important;
    line-height: 1.3;
}

/* Section heading (Change Password) */
.ra-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 24px 0;
}

.account-info-wrapper, .account-pass-wrapper {
    padding-left: 104px;
    padding-top: 36px;
}

/* -------------------------------------------------------
   Form layout
   ------------------------------------------------------- */
.ra-form {
    margin: 0;
    padding: 0;
}

/* Two-column grid for account fields */
.ra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    row-gap: 0;
    margin-bottom: 28px;
}

/* Full-width grid item */
.ra-field--full {
    grid-column: 1 / -1;
}

/* Password fields stacked in single column */
.ra-password-stack {
    display: flex;
    flex-direction: column;
    max-width: 340px;
    margin-bottom: 28px;
}

/* -------------------------------------------------------
   Individual field  (label on top, underline input below)
   ------------------------------------------------------- */
.ra-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.ra-field label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
    line-height: 1;
    letter-spacing: 0.01em;
}

.ra-field input {
    width: 100%;
    background: transparent !important;
    border: none;
    border-bottom: 1px solid #2B2B2B !important;
    outline: none;
    font-size: 16px;
    color: #2B2B2B;
    padding: 4px 0 7px;
    -webkit-appearance: none;
    transition: border-color 0.18s;
    font-family: 'PP Mori';
}

.ra-field input:focus {
    border-bottom-color: #1c3a6e;
}

/* Remove browser autofill background tint */
.ra-field input:-webkit-autofill,
.ra-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f0ede8 inset;
    -webkit-text-fill-color: #1a1a2e;
    transition: background-color 5000s ease-in-out 0s;
}

/* -------------------------------------------------------
   Button
   ------------------------------------------------------- */
.ra-btn {
    display: inline-block;
    background: #234A7D;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 18px 30px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Roboto';
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    -webkit-appearance: none;
    min-width: 168px;
}

.ra-btn:hover {
    background: #142d56;
    transform: translateY(-1px);
    color: #fff;
}

.ra-btn:active {
    transform: translateY(0);
}

/* -------------------------------------------------------
   Divider between sections
   ------------------------------------------------------- */
.ra-divider {
    height: 1px;
    background: #e0dbd3;
    margin: 36px 0 32px;
}

/* -------------------------------------------------------
   WooCommerce notices
   ------------------------------------------------------- */
.ra-account-settings .woocommerce-error,
.ra-account-settings .woocommerce-message,
.ra-account-settings .woocommerce-info {
    margin-bottom: 24px;
    border-radius: 6px;
    font-size: 0.88rem;
}

/* -------------------------------------------------------
   Responsive
   ------------------------------------------------------- */
@media (max-width: 580px) {
    .ra-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .ra-field--full {
        grid-column: 1;
    }

    .ra-password-stack {
        max-width: 100%;
    }
}

/* =============================================================
   VIP Access Page — vip-access.css
   ============================================================= */


/* Page title */
.ra-vip-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 32px 0;
    line-height: 1.45;
}

/* -------------------------------------------------------
   Stats row — icon + label + value stacked
   ------------------------------------------------------- */
.ra-vip-stats {
    display: flex;
    gap: 56px;
    align-items: flex-start;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.ra-vip-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.ra-vip-stat__icon {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.ra-vip-stat__label {
    font-size: 0.78rem;
    color: #555;
    font-weight: 500;
    line-height: 1;
}

.ra-vip-stat__value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1;
}

/* -------------------------------------------------------
   Benefits
   ------------------------------------------------------- */
.ra-settings-title {
    font-size: 24px;
    font-weight: 600;
    color: #171B1D;
    margin: 0 0 32px 0;
    line-height: 1.45;
    font-family: 'PP Mori';
}

.ra-vip-benefits__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ra-vip-benefits__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #2a2a3a;
    font-weight: 500;
}

.ra-vip-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e8f4ec;
    color: #2d8a4e;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    
    .research-account-nav .nav-item, .sidebar-logout{
        padding: 10px 20px;
        font-size: 13px;
    }
    
    
	.research-account-wrapper {
		flex-direction: column;
	}

	.research-account-sidebar {
		width: 100%;
		min-width: unset;
		border-right: none;
		border-bottom: 1px solid #e0dbd3;
		padding: 20px 0 10px 0;
	}
	
	.research-account-content {
        width: 100%;
    }
    
    
    
    .dashboard-title-wrapper, .dashboard-section h2.section-title, h2.orders-section-title{
        padding: 0 0 10px 0;
        margin-bottom: 20px;
		text-align: center;
		font-size: 20px !important;
    }

	.research-account-nav {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.research-account-nav .nav-item {
		border: none;
		border-radius: 25px;
	}

	.research-account-nav .nav-item.active, .research-account-nav .nav-item:hover {
        background: #DAF1FF;
	}
	
	.research-dashboard .dashboard-title, .ra-vip-page .dashboard-title{
		text-align: center;
	}

	.dashboard-stats {
	    display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
		padding: 0;
	}

	.dashboard-lower {
		grid-template-columns: 1fr;
	}

	.research-account-content {
		padding: 24px 0px;
	}

	.dashboard-actions {
		display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 13px 45px;
        margin-bottom: 60px;
        padding-left: 0;
        margin-top: 45px;
        justify-content: center;
	}

	.action-btn {
		width: unset;
	}
	
	.dashboard-section.orders-section {
        border-right: none;
		padding-bottom: 50px;
    }
    
    .dashboard-orders {
        padding-left: 0;
    }
    
    .dashboard-section.benefits-section h2.section-title {
        padding-left: 0;
    }
	.order-card {
		max-width: 100%;
	}
    
    .benefits-list{
        padding-left: 0px !important;
    }
    
    .orders-table{
        margin-left: 0;
    }
    
    .account-info-wrapper, .account-pass-wrapper{
        padding-left: 0;
        padding-top: 0;
    }
    
    .account-info-wrapper {
        margin-bottom: 60px;
    }
	.dashboard-section.benefits-section h2.section-title {
		text-align: left;
		padding-bottom: 10px;
	}
	h2.dashboard-title.orders-page-title {
		margin-bottom: 0;
		font-size: 20px !important;
	}
	a.order-back-link {
		margin: 0 !important;
		display: block;
		text-align: center;
	}
	.order-items-table-wrap {
		padding-left: 0;
	}
	.order-items-table th, .order-items-table td{
		font-size: 16px;
		padding: 5px;
	}
	.track-timeline-wrap, .order-updates-wrap{
		padding-left: 0;
	}
	.track-timeline{
		flex-direction: column;
		align-items: center;
	}
	p.timeline-label {
		text-align: center;
		font-size: 16px;
	}
	.tl-connector {
		min-width: 1px;
		min-height: 25px;
		border: 1px dashed;
		margin-top: 2px;
		margin-bottom: 5px;
	}
	.tl-label{
		font-size: 12px;
	}
	.tl-step{
		gap: 5px;
	}
	.tl-circle{
		width: 44px;
		height: 44px;
	}
	.order-updates-list{
		max-width: 220px;
		margin: auto;
	}
	
	p.ra-settings-title {
		font-size: 20px !important;
		margin-bottom: 20px !important;
	}
	.ra-btn{
		display: block;
		margin: auto;
		padding: 14px 20px;
	}
}
   

@media (max-width: 500px) {
    .ra-vip-stats {
        gap: 28px;
    }
    
    .dashboard-stats{
        grid-template-columns: repeat(1, 1fr);
    }
}