/**
 * SilencerCo My Account Revamp - Sidebar & layout
 * Sidebar: background #000000, text #FFFFFF. Mobile responsive.
 */

/* Wrap - follow theme spacing; flex column so inner can grow and sidebar matches height */
.silencerco-myaccount-wrap {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 50px;
	border-radius: 7px;
	border: 1px solid #D0D0D0;
	overflow: hidden;
	height: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.silencerco-page-label {
	margin-bottom: 1.25rem;
	margin-top: 1.25rem;
	margin-bottom: 1.25rem;
	font-size: 24px;
	letter-spacing: 0.03em;
	font-family: "TT-Norms", Arial, sans-serif;
}

.silencerco-section-label {
	text-transform: uppercase;
	margin-bottom: 1.25rem;
	margin-top: 1.25rem;
	margin-bottom: 1.25rem;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.03em;
	font-family: "TT-Norms", Arial, sans-serif;
}



/*
 * Inner layout: Elementor/WooCommerce may strip "row" and "col-*" classes.
 * Use flex on the direct child of .silencerco-myaccount-wrap so sidebar + content stay on one row at desktop.
 */
.silencerco-myaccount-wrap > div,
.silencerco-myaccount-wrap .silencerco-myaccount-inner {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	flex: 1;
	min-height: 0;
}

/* Prevent stray <p> from wpautop (e.g. wrapping HTML comments) from taking space in flex */
.silencerco-myaccount-wrap > div > p {
	flex: 0 0 0;
	width: 0;
	min-width: 0;
	overflow: hidden;
	margin: 0;
	padding: 0;
	border: 0;
}

/* Mobile menu toggle button */
.silencerco-myaccount-sidebar-toggle {
	background-color: #000000 !important;
	color: #ffffff !important;
	font-family: "TT-Norms", Arial, sans-serif;
	font-weight: 500;
}

.silencerco-myaccount-sidebar-toggle:hover,
.silencerco-myaccount-sidebar-toggle:focus {
	background-color: #1a1a1a !important;
	color: #ffffff !important;
}

.silencerco-myaccount-menu-icon {
	display: inline-block;
	width: 22px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 7px 0 currentColor, 0 -7px 0 currentColor;
	vertical-align: middle;
}

/* Sidebar - black background, white text; full height of wrap; flex column so logout can sit at bottom */
.silencerco-myaccount-sidebar {
	background-color: #000000;
	color: #ffffff;
	min-height: 50vh;
	padding: 1.25rem 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-self: stretch;
}

.silencerco-myaccount-sidebar .silencerco-myaccount-nav {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.silencerco-myaccount-nav-main {
	flex: 0 0 auto;
}

.silencerco-myaccount-nav-spacer {
	flex: 1;
	min-height: 1rem;
}

.silencerco-myaccount-nav-footer {
	flex: 0 0 auto;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	padding-top: 1rem;
	margin-top: 0;
}

.silencerco-myaccount-nav a,
.silencerco-myaccount-nav .silencerco-myaccount-nav-group-title {
	color: #ffffff;
	text-decoration: none;
	font-size: 16px;
}

.silencerco-myaccount-nav a:hover {
	color: #ffffff;
	opacity: 0.85;
}

/* Nav list */
.silencerco-myaccount-nav .list-unstyled {
	padding-left: 0;
}

.silencerco-myaccount-nav-link {
	display: block;
	padding: 0.5rem 1.25rem;
	font-size: 14px !important;
	transition: opacity 0.2s, background-color 0.2s;
	text-transform: uppercase;
}

.silencerco-myaccount-nav-link:hover {
	background-color: rgba(255, 255, 255, 0.08);
}

/* Active state - highlight current page */
.silencerco-myaccount-sidebar .active > .silencerco-myaccount-nav-link,
.silencerco-myaccount-nav li.active .silencerco-myaccount-nav-link {
	background-color: rgba(255, 255, 255, 0.15);
	font-weight: 600;
}

.silencerco-myaccount-nav-group {
	border-bottom: 1px solid #ffffff;
	padding-bottom: 10px;
	margin-bottom: 10px;
}

/* Group title (parent label only) */
.silencerco-myaccount-nav-group-title {
	display: block;
	padding: 0.6rem 1.25rem 0.35rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.85;

}

/* Sublist (children) */
.silencerco-myaccount-nav-sublist {
	margin-bottom: 0.5rem;
}

.silencerco-myaccount-nav-sublist .silencerco-myaccount-nav-link {
	padding-left: 2rem;
	font-size: 0.9rem;
	text-transform: uppercase;
}

/* Main content area - contain floats so content is visible */
.silencerco-myaccount-content {
	padding: 5rem 5rem;
	background: #fff;
	overflow: auto;
	display: block;
	min-height: 1px;
}

/* Ensure WooCommerce content is visible (override OceanWP float/width) */
.silencerco-myaccount-content .woocommerce-MyAccount-content {
	padding: 0;
	display: block !important;
	width: 100% !important;
	float: none !important;
	visibility: visible !important;
}

.silencerco-myaccount-title {
	margin-bottom: 1rem;
	font-family: "TT-Norms", Arial, sans-serif;
}

/* Mobile: sidebar hidden by default, toggle shows it */
@media (max-width: 991.98px) {
	.silencerco-myaccount-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		width: 280px;
		max-width: 85vw;
		height: 100vh;
		z-index: 1040;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		overflow-y: auto;
		box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
	}

	.silencerco-myaccount-sidebar.is-open {
		transform: translateX(0);
	}

	.silencerco-myaccount-sidebar-overlay {
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		z-index: 1035;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s, visibility 0.3s;
	}

	.silencerco-myaccount-sidebar-overlay.is-visible {
		opacity: 1;
		visibility: visible;
	}

	.silencerco-myaccount-content {
		width: 100%;
		max-width: 100%;
		flex: 0 0 100%;
		padding-top: 1rem;
	}
}

/* Desktop: sidebar and content on same row (works even when row/col classes are stripped) */
@media (min-width: 992px) {
	.silencerco-myaccount-wrap > div {
		flex-wrap: nowrap;
	}
	.silencerco-myaccount-wrap .d-lg-none {
		display: none !important;
	}
	.silencerco-myaccount-wrap .silencerco-myaccount-sidebar-overlay {
		display: none !important;
	}
	.silencerco-myaccount-sidebar-toggle {
		display: none !important;
	}
	.silencerco-myaccount-sidebar {
		flex: 0 0 25%;
		width: 25%;
		max-width: 25%;
		min-width: 0;
	}
	.silencerco-myaccount-content {
		flex: 1 1 auto;
		min-width: 0;
		width: auto;
		float: none !important;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
}

@media (min-width: 1200px) {
	.silencerco-myaccount-sidebar {
		flex: 0 0 16.666667%;
		width: 16.666667%;
		max-width: 16.666667%;
	}
	.silencerco-myaccount-content {
		flex: 1 1 83.333333%;
	}
}

/* Prevent body scroll when mobile menu is open */
body.silencerco-myaccount-menu-open {
	overflow: hidden;
}

/* Override OceanWP/theme: our content lives inside .silencerco-myaccount-content, not beside tabs */
@media (min-width: 768px) {
	.silencerco-myaccount-content .woocommerce-MyAccount-content {
		float: none !important;
		width: 100% !important;
		display: block !important;
	}
}

/* ========== View Orders page (My Account) ========== */
.silencerco-view-orders {
	margin-bottom: 1.5rem;
}

.silencerco-my-account-loading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #ff7f00 !important;
	font-size: 0.9em;
	flex-direction: row;
	justify-content: center;
}

.silencerco-view-orders-table {
	margin-bottom: 0;
	font-size: 0.9em;
	border: 1px solid #D0D0D0;
	border-radius: 7px;
	overflow: hidden;
}

.silencerco-view-orders-table th {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-family: "TT-Norms", Arial, sans-serif;
	background: #f8f9fa;
	border-bottom: 1px solid #dee2e6;
	padding: 0.75rem;
}

.silencerco-view-orders-table td,
.silencerco-view-orders-table th {
	vertical-align: middle;
	padding: 0.75rem;
}

.silencerco-view-orders-table tbody tr:hover {
	background-color: rgba(0, 0, 0, 0.02);
}

.silencerco-view-orders .btn.silencerco-view-order-btn {
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.35rem 0.75rem;
	color: #ff7f00 !important;
}

.silencerco-orders-order-number {
	color: #ff7f00 !important;
}

.silencerco-orders-pagination {
	margin-top: 1.25rem;
	display: flex;
	justify-content: end;
	align-items: center;
	gap: 8px;
	font-weight: 700 !important;

}

.silencerco-orders-pagination .pagination {
	gap: 0.25rem;
}

.silencerco-orders-pagination .page-item {
	margin: 5px;
}

.silencerco-orders-pagination .page-link {
	border: 1px solid #D0D0D0;
	color: #333;
	font-family: "TT-Norms", Arial, sans-serif;
	font-weight: 700 !important;
	text-transform: uppercase;
	font-size: 16px !important;
	height: 35px;
	width: 35px;
	text-align: center;
}

.silencerco-orders-pagination .page-link-text {
	color: #ff7f00 !important;
	font-family: "TT-Norms", Arial, sans-serif;
	text-transform: uppercase;
	line-height: 35px;
}


.silencerco-orders-pagination .page-item.active .page-link {
	background-color: #ff7f00;
	border-color: #ff7f00;
	color: #fff;
}

.silencerco-orders-pagination .page-item.disabled .page-link {
	pointer-events: none;
	opacity: 0.6;
	color: #333 !important;
}

/* Order detail modal (OceanWP-compatible) */
.silencerco-modal {
	position: fixed;
	inset: 0;
	z-index: 1050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	overflow-x: hidden;
	overflow-y: auto;
}

.silencerco-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1051;
}

.silencerco-modal-dialog {
	position: relative;
	z-index: 1052;
	width: 100%;
	max-width: 960px;
	max-height: calc(100vh - 2rem);
	display: flex;
	flex-direction: column;
}

.silencerco-modal-content {
	background: #fff;
	border-radius: 7px;
	border: 1px solid #D0D0D0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 2rem);
}

.silencerco-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1.25rem;
	border-bottom: 1px solid #D0D0D0;
	flex-shrink: 0;
}

.silencerco-modal-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-family: "TT-Norms", Arial, sans-serif;
}

.silencerco-modal-close {
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	color: #333;
	cursor: pointer;
	padding: 0 0.25rem;
	opacity: 0.7;
}

.silencerco-modal-close:hover {
	opacity: 1;
}

.silencerco-modal-body {
	padding: 1.25rem;
	overflow-y: auto;
	flex: 1 1 auto;
}

.silencerco-order-detail-modal-inner-row {
	display: flex;
	flex-direction: row;
	gap: 10px;
	width: 100%;
}

.silencerco-order-detail-modal-inner-column {
	display: flex;
	flex-direction: column;
	width: 50%;
}


.silencerco-order-detail-modal-inner .woocommerce-order-details,
.silencerco-order-detail-modal-inner .woocommerce-customer-details {
	margin-bottom: 1.25rem;
}

.silencerco-order-detail-modal-inner .woocommerce-order-details__title,
.silencerco-order-detail-modal-inner .woocommerce-column__title {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-family: "TT-Norms", Arial, sans-serif;
	margin-bottom: 0.75rem;
}

/* Your Order section header - match checkout/thankyou */
.silencerco-order-detail-modal-section-header {
	display: flex;
	align-items: flex-end;
	border-bottom: 4px solid #e3e3e3;
	padding-bottom: 5px;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.silencerco-order-detail-modal-section-header h5 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
}

.silencerco-order-detail-modal-inner .woocommerce-order-details table.shop_table {
	background: #e3e3e3;
	border: none;
	padding: 15px;
	border-radius: 10px;
}

.silencerco-order-detail-modal-inner .woocommerce-table {
	width: 100%;
	font-size: 0.9em;
	border: none;
	border-radius: 10px;
	background: transparent;
}

.silencerco-order-detail-modal-inner .woocommerce-table th,
.silencerco-order-detail-modal-inner .woocommerce-table td {
	padding: 0.5rem 0.75rem;
	border: none !important;
	background: none !important;
}

.silencerco-order-detail-modal-inner .order_details .product-img {
	width: 170px;
	vertical-align: top !important;
}

.silencerco-order-detail-modal-inner .order_details .product-img img {
	width: 140px;
	height: 100px;
	object-fit: cover;
}

.silencerco-order-detail-modal-inner .order_details .product-name {
	vertical-align: top;
}

.silencerco-order-detail-modal-inner .order_details .product-total {
	color: #ff7f00;
	text-align: right;
	font-weight: bold;
}

.silencerco-order-detail-modal-inner .order_details tfoot td:nth-child(2) {
	font-weight: bold;
	text-align: right;
	color: #000;
}

.silencerco-order-detail-modal-inner .order_details tfoot td:nth-child(2) .amount {
	color: #000;
}

.silencerco-order-detail-modal-inner .order_details tfoot tr.totals td {
	font-weight: bold;
}

.silencerco-order-detail-modal-inner .order_details tfoot tr.totals td:nth-child(2) .amount {
	color: #ff7f00;
	font-size: 20px;
}

.silencerco-order-detail-modal-inner address {
	font-style: normal;
	line-height: 1.5;
}

/* Order detail – tracking section */
.silencerco-order-detail-tracking-wrap {
	margin-top: 0.5rem;
}
.silencerco-order-detail-tracking-wrap > span {
	display: block;
	margin-bottom: 0.25rem;
}
.silencerco-order-detail-tracking-list {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.silencerco-order-detail-tracking-item {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}
.silencerco-order-detail-tracking-link {
	color: #ff7f00;
	text-decoration: underline;
}
.silencerco-order-detail-tracking-link:hover {
	text-decoration: none;
}
.silencerco-order-detail-tracking-provider {
	font-size: 0.9em;
	color: #666;
}

/* Order detail – repeat order button */
.silencerco-order-detail-actions {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #e3e3e3;
}
.silencerco-repeat-order-btn {
	background-color: #ff7f00;
	color: #fff;
	border: none;
	padding: 0.5rem 1rem;
	text-transform: uppercase;
	font-weight: 600;
	cursor: pointer;
	float: right;
	margin-bottom: 10px;
}
.silencerco-repeat-order-btn:hover:not(:disabled) {
	background-color: #ff7f00;
	color: #fff;
}
.silencerco-repeat-order-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}



.silencerco-btn-primary {
	background-color: #ff7f00 !important;
	color: #fff;
	border: none;
	padding: 0.5rem 1rem;
	text-transform: uppercase;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 10px;
}
.silencerco-btn-primary:hover:not(:disabled) {
	background-color: #ff7f00;
	color: #fff;
}
.silencerco-btn-primary:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

@media (max-width: 767.98px) {
	.silencerco-view-orders-table thead {
		display: none;
	}
	.silencerco-view-orders-table tr {
		display: block;
		border-bottom: 1px solid #dee2e6;
		padding: 0.5rem 0;
	}
	.silencerco-view-orders-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0.35rem 0;
		border: none;
	}
	.silencerco-view-orders-table td::before {
		content: attr(data-label);
		font-weight: 600;
		margin-right: 0.5rem;
		flex-shrink: 0;
	}
	.silencerco-modal-dialog {
		max-width: 100%;
	}
}

.silencerco-row {
	display: flex;
	flex-direction: row;
	gap: 10px;
}

.silencerco-column {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ========== Gift Cards page (My Account) ========== */
.silencerco-widget-giftcard-balance .silencerco-giftcard-balance-amount {
	font-weight: 700;
	color: #333;
	margin-bottom: 1rem;
}
.silencerco-giftcard-redeem-label {
	margin: 0 0 0.5rem;
	font-size: 0.95em;
	font-weight: 600;
}
.silencerco-giftcard-redeem-fields {
	display: flex;
	flex-direction: row;
	gap: 0.5rem;
	align-items: center;
	justify-content: start;
}
.silencerco-giftcard-redeem-fields .input-text {
	padding: 0.5rem 0.75rem;
	border: 1px solid #D0D0D0;
	border-radius: 4px;
	min-width: 200px;
}
.silencerco-giftcard-redeem-fields .btn {
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 600;
	display: flex;
	flex-shrink: 0;
	background-color: #ff7f00;
}

/* ========== Stock Notifications / Back-in-Stock page (My Account) ========== */
.silencerco-section-label.silencerco-subsection {
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
	font-size: 18px;
}
.silencerco-stock-badge {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-size: 0.85em;
	font-weight: 600;
}
.silencerco-stock-badge.stock {
	background: #d4edda;
	color: #155724;
}
.silencerco-stock-badge.outofstock {
	background: #f8d7da;
	color: #721c24;
}
.silencerco-backinstock-table .btn {
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.35rem 0.75rem;
	margin-right: 0.35rem;
}
.silencerco-backinstock-cell-product .description {
	display: block;
	font-size: 0.85em;
	color: #666;
	margin-top: 0.25rem;
}

/* Gift Cards / Back-in-Stock: responsive table uses data-title */
@media (max-width: 767.98px) {
	.silencerco-giftcards-table td::before,
	.silencerco-giftcards-activity-table td::before,
	.silencerco-backinstock-table td::before,
	.silencerco-backinstock-activity-table td::before {
		content: attr(data-title);
	}
}

.silencerco-account-details-grid {
	display: flex;
	flex-direction: row;
	align-content: start;
	row-gap: 1.25rem;
	column-gap: 1.25rem;
	width: 100%;
	padding: 0;
}


.silencerco-edit-link {
	text-align: right;
	width: 100%;
}

.wpforms-submit {
	background-color: #ff7f00 !important;
}

/* ========== Account Details (edit-account) ========== */
.silencerco-account-details .silencerco-detail-box {
	border: 1px solid #D0D0D0;
	border-radius: 7px;
	padding: 1.25rem;
	background: #fff;
	display: flex;
	flex-direction: column;
	width: 100%;
	display: flex;
}
.silencerco-account-details .silencerco-detail-box-header {
	/* margin-bottom: 0.75rem; */
	/* padding-bottom: 0.5rem; */
	border-bottom: 1px solid #eee;
}
.silencerco-account-details .silencerco-detail-box-body {
	flex: 1;
	font-size: 0.95em;
	line-height: 1.5;
}
.silencerco-account-details .silencerco-detail-box-body address {
	font-style: normal;
	white-space: pre-line;
}
.silencerco-account-details .silencerco-edit-link {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #ff7f00 !important;
	text-decoration: none !important;
	font-size: 0.9em;
}
.silencerco-account-details .silencerco-edit-link:hover {
	text-decoration: underline !important;
	color: #e67300 !important;
}
.silencerco-account-details-password {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #D0D0D0;
}
.silencerco-account-details-password .form-control {
	max-width: 100%;
}
.silencerco-account-details-password fieldset {
	border: none;
	padding: 0;
	margin: 0 0 1rem 0;
}

/* Edit Contact & Edit Addresses: back link and forms */
.silencerco-back-link {
	color: #ff7f00 !important;
	font-weight: 600;
	text-decoration: none !important;
}
.silencerco-back-link:hover {
	text-decoration: underline !important;
	color: #e67300 !important;
}
.silencerco-edit-contact .form-control,
.silencerco-edit-addresses .form-control,
.silencerco-edit-addresses .woocommerce-input-wrapper .input-text {
	max-width: 100%;
}
.silencerco-edit-addresses .silencerco-address-form-section {
	border: 1px solid #D0D0D0;
	border-radius: 7px;
	padding: 1.5em;
	/* background: #fafafa; */
}
.silencerco-edit-addresses .woocommerce-form-row {
	margin-bottom: 0;
}
.silencerco-edit-addresses .woocommerce-address-fields__field-wrapper .form-row {
	margin-bottom: 1rem;
}
.silencerco-edit-addresses .woocommerce-form-row label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 500;
}
.silencerco-edit-addresses select.input-text,
.silencerco-edit-addresses .input-text {
	width: 100%;
	padding: 0.375rem 0.75rem;
	border: 1px solid #ced4da;
	border-radius: 4px;
}