/*
Theme Name: SOS Finance
Description: Tema para o site da SOS Finance
Requires PHP: 8.1
Version: 1.0
*/

/* CSS Reset
---------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

body {
    padding-top: 32px;
}

a,
a:focus,
a:hover {
	text-decoration: underline;
}

b,
strong {
	font-weight: var(--wp--custom--font-weight--semi-bold);
}

ol,
ul {
	padding: 0;
}

ol:where(:not([class*="wp-block"])),
ol:where(.wp-block-list),
ul:where(:not([class*="wp-block"])),
ul:where(.wp-block-list) {
	padding-inline-start: var(--wp--preset--spacing--medium);
}

div[class*="wp-block-"] figcaption {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--x-small);
	margin-bottom: 0;
	margin-top: 20px;
	text-align: center;
}

img {
	max-width: 100%;
}

figure.wp-block-image.is-selected {
	margin-top: 0 !important;
}

figure.wp-block-image > div {
	height: auto !important;
	max-width: 100% !important;
}

/* Standardize form styling
--------------------------------------------- */

input,
button,
textarea,
select {
	font: inherit;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
}

input:not([type="submit"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
	color: var(--wp--preset--color--grey-5);
	border-radius: 5px;
	border: solid 1px var(--wp--preset--color--grey-2);
	padding: .5em 1em;
	font-size: var(--wp--preset--font-size--small);
	width: 100%;
}

input:focus-visible,
textarea:focus-visible {
	outline-color: var(--wp--preset--color--primary);
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

label {
	width: 100%;
	display: block;
}

::placeholder {
	color: var(--wp--preset--color--secondary);
	opacity: 0.75;
}

/* Helper styles that can't be done via theme.json
---------------------------------------------------------------------------- */

a.more-link {
	display: block;
}

/* Inline code */
*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--tertiary);
	font-weight: var(--wp--custom--font-weight--medium);;
	padding: 3px 5px;
	position: relative;
	border-radius: 3px;
}

/* Remove margin on term description on archive pages */
.wp-block-term-description p:last-child {
	margin-bottom: 0;
}

/* Remove last separator on post list */
.remove-border-and-padding .wp-block-post-template li:last-child .wp-block-separator {
	display: none;
}

/* Hide post meta div if no tags assigned */
.single .wp-block-group:has(> .post-meta:empty) {
	display: none;
}

@media (max-width: 996px) {
	.hide__mobile {
		display: none !important;
	}

	aside.wp-block-group.wp-block-group-is-layout-constrained {
		margin-right: calc(var(--wp--style--root--padding-right) * -1);
		margin-left: calc(var(--wp--style--root--padding-left) * -1);
	}

}

@media (min-width: 997px) {
	.hide__desktop {
		display: none !important;;
	}
}


/* Login do header
---------------------------------------------------------------------------- */
.header__user {
	display: flex;
	position: relative;
	justify-content: flex-end;
}

.header__user input {
	opacity: 0;
	position: absolute;
}

.header__user p,
.header__user br,
.header__user__menu {
	display: none;
}

.header__user__opener {
	gap: 16px;
	padding: 8px;
	height: auto;
	display: flex;
	cursor: pointer;
	align-items: center;
	border-radius: 26px;
	transition: .3s ease;
	justify-content: center;
	background: var(--wp--preset--color--grey-1);
	font-size: var(--wp--preset--font-size--large);
	border: 1px solid var(--wp--preset--color--grey-2);
}

.header__user__opener:hover {
	background: var(--wp--preset--color--grey-2);
}

.header__user__opener img {
	width: 40px;
	height: auto;
	border-radius: 100%;
}

.header__user__opener span {
	height: 13px;
	display: block;
	line-height: 13px;
}

.header__user__opener span:after {
	display: block;
	content:"\203A";
	transform: rotate(90deg);
}

.header__user__menu {
	top: 110%;
	margin: 0;
	min-width: 150px;
	list-style: none;
	padding: 8px 24px;
	border-radius: 4px;
	position: absolute;
	background: var(--wp--preset--color--grey-1);
	font-size: var(--wp--preset--font-size--normal);
	border: 1px solid var(--wp--preset--color--grey-2);
}

.open .header__user__menu {
	display: block;
}

@media (max-width: 996px) {
	.header__user__opener {
		padding: 0;
	}
}


/* Single
---------------------------------------------------------------------------- */
@media (max-width: 996px) {
	.post__data .editorskit-shortcode {
		display: none;
	}
}


/* Rodapé
---------------------------------------------------------------------------- */
.footer__newsletter {
	z-index: 9;
	position: relative;
	margin-bottom: calc(var(--wp--preset--spacing--xxxx-large) * -1) !important;
}

@media (max-width: 996px) {
	.footer__links .wp-block-column:not(:last-child) {
		flex-basis: 45% !important;
	}
}