/*
 * ============================================================
 * COLLECTAZ DESIGN VALUES
 * ============================================================
 *
 * Flint Core supplies the shared palette, typography, spacing and radius
 * vocabulary. These variables are Collectaz-specific presentation choices.
 */

:root {
	--collectaz-color-text: #26332e;
	--collectaz-color-text-heading: #174936;
	--collectaz-color-text-muted: #6e7974;
	--collectaz-color-text-subtle: #77827d;
	--collectaz-color-text-soft: #89918e;
	--collectaz-color-text-label: #40514a;
	--collectaz-color-text-action: #66716c;
	--collectaz-color-text-note: #89918e;

	--collectaz-color-surface-soft: #fbfdfc;

	--collectaz-color-border: #dfe3e6;
	--collectaz-color-border-soft: #e7eae9;
	--collectaz-color-border-input: #ccd3d0;
	--collectaz-color-border-input-hover: #aeb9b4;

	--collectaz-color-error-soft: #fff7f7;

	--collectaz-color-focus-ring: color-mix(
		in srgb,
		var(--flint-color-accent) 12%,
		transparent
	);
}



/*
	COLLECTAZ BASIC STYLES
*/

/*
.member-only,
.guest-only {
    display: none !important;
}

body.member-logged-in .member-only {
    display: inline-flex !important;
}

body.member-logged-in .filter_group_25 a,
body.member-logged-in .filter_group_26 a,
body.member-logged-in .filter_group_27 a {
	color: var(--flint-color-secondary) !important;
}

body.member-logged-out .guest-only {
    display: inline-flex !important;
}
*/

.collectaz-menu-item-blocked {
	display: none !important;
}

.filter_group a {
	color: var(--flint-color-secondary) !important;
}


.collectaz-logout-btn {
	background-color: var(--flint-color-secondary) !important;
}



/*
 * ============================================================
 * COLLECTAZ BUTTONS
 * ============================================================
 */

.collectaz_btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;

	padding: 10px 18px;

	background: var(--flint-color-primary);
	border: 1px solid var(--flint-color-primary);
	border-radius: 999px;

	color: var(--flint-color-light) !important;

	font-size: 1em;
	font-weight: 600;
	line-height: 1;

	text-decoration: none;
	text-transform: uppercase;

	cursor: pointer;

	transition:
		background-color .15s ease,
		border-color .15s ease,
		color .15s ease;
}


/*
 * Icon
 *
 * The SVG acts only as a mask.
 * Its visible color is inherited from the button text color.
 */

.collectaz_btn::before {
	 content: "" !important;
 
	 display: block !important;
	 flex: 0 0 16px;
 
	 width: 16px;
	 height: 16px;
 
	 background: currentColor !important;
	 background-image: none !important;
 
	 -webkit-mask-repeat: no-repeat;
	 -webkit-mask-position: center;
	 -webkit-mask-size: contain;
 
	 mask-repeat: no-repeat;
	 mask-position: center;
	 mask-size: contain;
 
	 opacity: 1;
 }


/*
 * Button icons
 */

.collectaz_btn.btn_login::before {
	-webkit-mask-image: url("icons/login.svg");
	mask-image: url("icons/login.svg");
}

.collectaz_btn.btn_logout::before {
	-webkit-mask-image: url("icons/logout.svg");
	mask-image: url("icons/logout.svg");
}


/*
 * Standard button state
 */

.collectaz_btn:hover,
.collectaz_btn:focus {
	background: var(--flint-color-primary-hover);
	border-color: var(--flint-color-primary-hover);

	color: var(--flint-color-light) !important;

	text-decoration: none;
}


/*
 * Inverted button
 */

.collectaz_btn.collectaz_btn_inverted {
	background: var(--flint-color-light);
	border-color: var(--flint-color-primary);

	color: var(--flint-color-primary) !important;
}

.collectaz_btn.collectaz_btn_inverted:hover,
.collectaz_btn.collectaz_btn_inverted:focus {
	background: var(--flint-color-primary-soft);
	border-color: var(--flint-color-primary-hover);

	color: var(--flint-color-primary-hover) !important;
}







/*
	Member profile
*/

.collectaz-profile {
	width: 100%;
	max-width: 900px;
}


/*
 * Profile card
 */

.collectaz-profile-card {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));

	background: var(--flint-color-light);

	border: 1px solid var(--collectaz-color-border);
	border-radius: 12px;

	overflow: hidden;
}


/*
 * Individual profile item
 */

.collectaz-profile-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;

	min-width: 0;
	padding: 22px 24px;

	border-bottom: 1px solid var(--collectaz-color-border-soft);
}

.collectaz-profile-item:nth-child(odd):not(.collectaz-profile-item--wide) {
	border-right: 1px solid var(--collectaz-color-border-soft);
}


/*
 * Full-width rows
 */

.collectaz-profile-item--wide {
	grid-column: 1 / -1;
}


/*
 * Icon
 */

.collectaz-profile-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 38px;

	width: 38px;
	height: 38px;

	color: var(--flint-color-accent);
	background: var(--flint-color-primary-soft);

	border-radius: 50%;
}

.collectaz-profile-icon svg {
	display: block;

	width: 20px;
	height: 20px;

	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
}


/*
 * Text
 */

.collectaz-profile-item-content {
	min-width: 0;
}

.collectaz-profile-label {
	margin-bottom: 3px;

	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;

	letter-spacing: .07em;
	text-transform: uppercase;

	color: var(--collectaz-color-text-subtle);
}

.collectaz-profile-value {
	font-size: 17px;
	font-weight: 400;
	line-height: 1.45;

	color: var(--collectaz-color-text);

	overflow-wrap: anywhere;
}

.collectaz-profile-value--name {
	font-size: 21px;
	font-weight: 650;

	color: var(--collectaz-color-text-heading);
}

.collectaz-profile-value a {
	color: var(--flint-color-primary);
	text-decoration: none;
}

.collectaz-profile-value a:hover,
.collectaz-profile-value a:focus {
	text-decoration: underline;
}

.collectaz-profile-value-note {
	margin-left: 6px;

	font-size: 11px;
	color: var(--collectaz-color-text-note);
}


/*
 * Edit form
 */

.collectaz-profile-field {
	margin-bottom: 1.25rem;
}

.collectaz-profile-field label {
	display: block;
	margin-bottom: .35rem;

	font-weight: 600;
}

.collectaz-profile-field input {
	box-sizing: border-box;

	width: 100%;
	padding: .7rem .8rem;
}


/*
 * Actions
 */

.collectaz-profile-actions {
	display: flex;
	align-items: center;
	gap: 1rem;

	margin-top: 24px;
}

.collectaz-profile-cancel {
	text-decoration: none;
}


/*
 * Messages
 */

.collectaz-profile-message {
	margin-bottom: 1.5rem;
	padding: .8rem 1rem;

	border: 1px solid currentColor;
	border-radius: 8px;
}

.collectaz-profile-success {
	color: var(--flint-color-success);
}

.collectaz-profile-error {
	color: var(--flint-color-danger);
}


/*
 * Mobile
 */

@media (max-width: 700px) {

	.collectaz-profile-card {
		grid-template-columns: 1fr;
	}

	.collectaz-profile-item,
	.collectaz-profile-item--wide {
		grid-column: auto;

		padding: 18px 17px;

		border-right: 0 !important;
	}

	.collectaz-profile-icon {
		flex-basis: 34px;

		width: 34px;
		height: 34px;
	}

	.collectaz-profile-icon svg {
		width: 18px;
		height: 18px;
	}

	.collectaz-profile-value {
		font-size: 16px;
	}

	.collectaz-profile-value--name {
		font-size: 19px;
	}

}




/*
 * Profile edit
 */

.collectaz-profile-edit-form {
	margin: 0;
}


/*
 * Cards
 */

.collectaz-profile-edit-card,
.collectaz-profile-password-card {
	padding: 26px;

	background: var(--flint-color-light);

	border: 1px solid var(--collectaz-color-border);
	border-radius: 12px;
}

.collectaz-profile-password-card {
	margin-top: 22px;
}


/*
 * Card heading
 */

.collectaz-profile-edit-header {
	display: flex;
	align-items: flex-start;
	gap: 15px;

	margin-bottom: 26px;
}

.collectaz-profile-edit-title {
	margin: 1px 0 4px;

	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;

	color: var(--collectaz-color-text-heading);
}

.collectaz-profile-edit-description {
	max-width: 600px;

	font-size: 13px;
	line-height: 1.5;

	color: var(--collectaz-color-text-muted);
}


/*
 * Form grid
 */

.collectaz-profile-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 22px;
}

.collectaz-profile-field {
	min-width: 0;
	margin: 0;
}

.collectaz-profile-field--wide {
	grid-column: 1 / -1;
}


/*
 * Labels
 */

.collectaz-profile-field label {
	display: block;

	margin: 0 0 7px;

	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;

	letter-spacing: .035em;

	color: var(--collectaz-color-text-label);
}


/*
 * Inputs
 */

.collectaz-profile-field input {
	display: block;
	box-sizing: border-box;

	width: 100%;
	height: 48px;

	margin: 0;
	padding: 0 14px;

	font: inherit;
	font-size: 15px;
	font-weight: 400;

	color: var(--collectaz-color-text);
	background: var(--flint-color-light);

	border: 1px solid var(--collectaz-color-border-input);
	border-radius: 8px;

	outline: none;
	box-shadow: none;

	transition:
		border-color .15s ease,
		box-shadow .15s ease,
		background-color .15s ease;
}

.collectaz-profile-field input:hover {
	border-color: var(--collectaz-color-border-input-hover);
}

.collectaz-profile-field input:focus {
	background: var(--flint-color-light);

	border-color: var(--flint-color-accent);

	box-shadow: 0 0 0 3px var(--collectaz-color-focus-ring);
}


/*
 * Password area
 */

.collectaz-profile-password-card {
	background: var(--collectaz-color-surface-soft);
}

.collectaz-password-rules {
	margin-top: 16px;
	padding: 12px 15px;

	background: var(--flint-color-primary-soft);

	border-radius: 7px;

	font-size: 12px;
	line-height: 1.5;

	color: var(--collectaz-color-text-soft);
}


/*
 * Verification code
 */

.collectaz-profile-verification {
	max-width: 360px;
}

.collectaz-verification-input {
	max-width: 180px;

	font-size: 22px !important;
	font-weight: 700 !important;

	letter-spacing: .18em;
	text-align: center;
	text-transform: uppercase;
}

.collectaz-profile-verification-help {
	margin: 9px 0 0;

	font-size: 12px;
	line-height: 1.45;

	color: var(--collectaz-color-text-subtle);
}


/*
 * Actions
 */

.collectaz-profile-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;

	margin-top: 26px;
}

.collectaz-profile-cancel {
	color: var(--collectaz-color-text-action);
	font-size: 13px;
	font-weight: 600;

	text-decoration: none;
}

.collectaz-profile-cancel:hover,
.collectaz-profile-cancel:focus {
	color: var(--collectaz-color-text-heading);
	text-decoration: underline;
}


/*
 * Messages
 */

.collectaz-profile-message {
	margin-bottom: 22px;
	padding: 14px 17px;

	background: var(--flint-color-light);

	border: 1px solid currentColor;
	border-radius: 8px;

	font-size: 14px;
	line-height: 1.45;
}

.collectaz-profile-success {
	color: var(--flint-color-success);
	background: var(--flint-color-success-soft);
}

.collectaz-profile-error {
	color: var(--flint-color-danger);
	background: var(--collectaz-color-error-soft);
}


/*
 * Mobile
 */

@media (max-width: 700px) {

	.collectaz-profile-edit-card,
	.collectaz-profile-password-card {
		padding: 19px 17px;
	}

	.collectaz-profile-edit-header {
		margin-bottom: 22px;
	}

	.collectaz-profile-edit-title {
		font-size: 18px;
	}

	.collectaz-profile-form-grid {
		grid-template-columns: 1fr;
		gap: 17px;
	}

	.collectaz-profile-field--wide {
		grid-column: auto;
	}

	.collectaz-profile-field input {
		height: 46px;
	}

}

/*
 * Profile buttons
 *
 * The global .collectaz_btn reserves space for an icon using ::before.
 * Profile buttons deliberately have no icon.
 */

.collectaz-profile .collectaz-profile-btn,
.collectaz-profile .collectaz-profile-btn:link,
.collectaz-profile .collectaz-profile-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 0;

	min-height: 44px;
	padding: 12px 22px;

	background: var(--flint-color-primary) !important;
	border: 0 !important;
	border-radius: 999px;

	box-shadow: none !important;
	outline: none;

	color: var(--flint-color-light) !important;

	font-size: 14px;
	font-weight: 600;
	line-height: 1;

	text-decoration: none !important;
	text-transform: none;

	transition: background-color .15s ease;
}

.collectaz-profile .collectaz-profile-btn::before {
	display: none !important;
	content: none !important;
}

.collectaz-profile .collectaz-profile-btn:hover,
.collectaz-profile .collectaz-profile-btn:focus {
	background: var(--flint-color-primary-hover) !important;
	border: 0 !important;
	color: var(--flint-color-light) !important;
}



.collectaz-profile-icon {
	display: block;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	background-color: currentColor;
	-webkit-mask-image: var(--collectaz-profile-icon);
	mask-image: var(--collectaz-profile-icon);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

