/* Use Outfit for notices and account layouts without touching the entire theme. */
body.cwd-account-styling,
.woocommerce,
.woocommerce-page,
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	font-family: 'Outfit', sans-serif;
}

/* WooCommerce notices */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	background: var(--cwd-notice-bg, #d9a748);
	color: var(--cwd-notice-text, #ffffff);
	border: 0;
	border-radius: var(--cwd-notice-radius, 14px);
	padding: 16px 22px;
	box-shadow: 0 22px 44px rgba(0, 0, 0, 0.14);
	display: flex;
	align-items: center;
	gap: 14px;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.1px;
}

.woocommerce-message {
	background: var(--cwd-notice-success-bg, var(--cwd-notice-bg, #d9a748));
}

.woocommerce-info {
	background: var(--cwd-notice-info-bg, var(--cwd-notice-bg, #d9a748));
}

.woocommerce-error {
	background: var(--cwd-notice-error-bg, var(--cwd-notice-bg, #d9a748));
}

.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	content: "i";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	width: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.92);
	font-weight: 700;
	font-size: 14px;
}

.woocommerce-notices-wrapper a,
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
	color: var(--cwd-notice-btn-text, #ffffff);
	font-weight: 700;
	text-decoration: none;
	background: var(--cwd-notice-btn-bg, var(--cwd-notice-bg, #d9a748));
	padding: 6px 12px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
	font-size: var(--cwd-notice-btn-size, 14px);
}

.woocommerce-notices-wrapper .button,
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button,
.woocommerce-notices-wrapper a.button {
	background: var(--cwd-notice-btn-bg, var(--cwd-notice-bg, #d9a748)) !important;
	color: var(--cwd-notice-btn-text, #ffffff) !important;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
	font-weight: 700 !important;
	font-size: var(--cwd-notice-btn-size, 14px) !important;
	padding: 8px 14px !important;
	text-decoration: none !important;
	border-radius: 8px !important;
	line-height: 1.2 !important;
}

/* My Account address layout */
body.cwd-account-styling {
	background: var(--cwd-address-bg, #f7f4f7);
}

.woocommerce-account .woocommerce-MyAccount-content {
	background: transparent;
	padding: 0;
}

.cwd-address-page-header {
	margin-bottom: 18px;
}

.cwd-address-page-header p {
	margin: 0;
	color: #555;
	font-weight: 400;
}

.woocommerce-account .woocommerce-Addresses,
.woocommerce-MyAccount-content .woocommerce-Addresses {
	display: block;
}

.woocommerce-account .woocommerce-Address,
.woocommerce-MyAccount-content .woocommerce-Address {
	background: transparent;
	border: 0;
	padding: 0 0 20px;
	margin: 0 0 20px;
	box-shadow: none;
}

.woocommerce-account .woocommerce-Address:last-child,
.woocommerce-MyAccount-content .woocommerce-Address:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}

.woocommerce-account .woocommerce-Address-title,
.woocommerce-MyAccount-content .woocommerce-Address-title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: 0 0 10px;
}

.woocommerce-account .woocommerce-Address-title h3,
.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	color: #2f2f2f;
}

.woocommerce-account .woocommerce-Address-title .edit,
.woocommerce-MyAccount-content .woocommerce-Address-title .edit {
	color: #6a6a6a;
	font-weight: 500;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
}

.woocommerce-account .woocommerce-Address-title .edit svg,
.woocommerce-MyAccount-content .woocommerce-Address-title .edit svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
}

/* Elementor account widget */
.cwd-account-widget {
	position: relative;
	display: inline-block;
	font-family: 'Outfit', sans-serif;
	--cwd-acc-trigger-bg: #171717;
	--cwd-acc-trigger-text: #f5f5f5;
	--cwd-acc-trigger-icon: currentColor;
	--cwd-acc-trigger-border: rgba(255, 255, 255, 0.08);
	--cwd-acc-trigger-radius: 10px;
	--cwd-acc-dropdown-bg: #ffffff;
	--cwd-acc-dropdown-text: #444;
	--cwd-acc-dropdown-hover: #f7f7f7;
}

.cwd-account-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: var(--cwd-acc-trigger-radius, 10px);
	background: var(--cwd-acc-trigger-bg, #171717);
	color: var(--cwd-acc-trigger-text, #f5f5f5);
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid var(--cwd-acc-trigger-border, rgba(255, 255, 255, 0.08));
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.cwd-account-trigger:focus {
	outline: 2px solid #f5a623;
	outline-offset: 3px;
}

.cwd-account-icon svg {
	width: 18px;
	height: 18px;
	color: var(--cwd-acc-trigger-icon, currentColor);
}

.cwd-account-label {
	font-size: 15px;
}

.cwd-account-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	min-width: 200px;
	background: var(--cwd-acc-dropdown-bg, #ffffff);
	color: var(--cwd-acc-dropdown-text, #2c2c2c);
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
	padding: 10px 0;
	list-style: none;
	margin: 0;
	z-index: 50;
}

.cwd-account-dropdown li {
	margin: 0;
}

.cwd-account-dropdown a {
	display: block;
	padding: 10px 16px;
	color: var(--cwd-acc-dropdown-text, #444);
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
}

.cwd-account-dropdown a:hover {
	background: var(--cwd-acc-dropdown-hover, #f7f7f7);
}

.cwd-account-widget:hover .cwd-account-dropdown,
.cwd-account-widget:focus-within .cwd-account-dropdown {
	display: block;
}

/* Product search widget */
.cwd-search-widget {
	font-family: 'Outfit', sans-serif;
	width: 100%;
	max-width: var(--cwd-search-width, 100%);
	position: relative;
}

.cwd-search-form {
	display: flex;
	align-items: center;
	gap: var(--cwd-search-gap, 10px);
	min-height: var(--cwd-search-height, 54px);
	background: var(--cwd-search-bg, #ffffff);
	border: 1px solid var(--cwd-search-border, #dcdcdc);
	border-radius: var(--cwd-search-radius, 8px);
	padding: var(--cwd-search-padding, 10px 14px);
	box-shadow: var(--cwd-search-shadow, 0 10px 24px rgba(0, 0, 0, 0.08));
	position: relative;
	width: 100%;
}

.cwd-search-icon {
	color: var(--cwd-search-icon, #3b3b3b);
	display: inline-flex;
	align-items: center;
}

.cwd-search-icon svg {
	width: 18px;
	height: 18px;
}

.cwd-search-input {
	border: none;
	outline: none;
	flex: 1;
	background: transparent;
	color: var(--cwd-search-text, #3b3b3b);
	font-size: var(--cwd-search-input-font, 15px);
	padding: 6px 0;
}

.cwd-search-input::placeholder {
	color: var(--cwd-search-placeholder, #8a8a8a);
}

.cwd-search-select {
	display: flex;
	align-items: center;
	position: relative;
	padding-left: 12px;
	border-left: 1px solid var(--cwd-search-border, #dcdcdc);
}

.cwd-search-select select {
	appearance: none;
	border: none;
	background: transparent;
	padding: 8px 26px 8px 6px;
	color: var(--cwd-search-text, #3b3b3b);
	font-weight: 600;
	font-size: var(--cwd-search-select-font, 14px);
	outline: none;
	cursor: pointer;
}

.cwd-search-select option {
	color: var(--cwd-search-text, #3b3b3b);
}

.cwd-search-select select:focus {
	outline: none;
}

.cwd-search-select .cwd-search-caret {
	position: absolute;
	right: 10px;
	color: var(--cwd-search-text, #3b3b3b);
	font-size: 14px;
	pointer-events: none;
}

.cwd-search-submit {
	display: none;
}

/* Dropdown styling for native select in supporting browsers */
.cwd-search-select select option {
	background: var(--cwd-search-dropdown-bg, #ffffff);
	color: var(--cwd-search-dropdown-text, #444);
}

.cwd-search-select select option:hover,
.cwd-search-select select option:focus {
	background: var(--cwd-search-dropdown-hover, #f7f7f7);
}

.cwd-search-results {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	padding: 0;
	list-style: none;
	border: 1px solid var(--cwd-search-border, #dcdcdc);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
	display: none;
	max-height: 60vh;
	overflow-y: auto;
}

.cwd-search-results.is-visible {
	display: block;
}

.cwd-search-result a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	text-decoration: none;
	color: var(--cwd-search-text, #3b3b3b);
}

.cwd-search-result + .cwd-search-result a {
	border-top: 1px solid var(--cwd-search-border, #dcdcdc);
}

.cwd-search-thumb img {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.cwd-search-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cwd-search-title {
	font-weight: 600;
	font-size: 14px;
}

.cwd-search-price {
	font-weight: 700;
	font-size: 13px;
	color: #111;
}

.cwd-search-empty {
	padding: 10px 14px;
	color: #666;
	font-size: 14px;
}

.woocommerce-account .woocommerce-Address-title .edit:hover,
.woocommerce-MyAccount-content .woocommerce-Address-title .edit:hover {
	text-decoration: underline;
}

.woocommerce-account .woocommerce-Address address,
.woocommerce-MyAccount-content .woocommerce-Address address {
	margin: 0;
	line-height: 1.6;
	color: #444;
}

.woocommerce-account .woocommerce-Address .cwd-placeholder,
.woocommerce-MyAccount-content .woocommerce-Address .cwd-placeholder {
	color: #707070;
	font-style: italic;
	margin: 2px 0 0;
}
