@import "typography.css";

/* Components */
@import "components/_header.css";
@import "components/_footer.css";
@import "components/_buttons.css";
@import "components/_post-thumbnail.css";
@import "components/_forms.css";

/* Blocks */
@import "components/blocks/_block-hero-banner.css";
@import "components/blocks/_block-page-banner.css";
@import "components/blocks/_block-image-gallery.css";
@import "components/blocks/_block-logo-slider.css";
@import "components/blocks/_block-split-content.css";
@import "components/blocks/_block-video.css";
@import "components/blocks/_block-about.css";
@import "components/blocks/_block-counter.css";
@import "components/blocks/_block-accordion.css";
@import "components/blocks/_block-calculator-cta.css";
@import "components/blocks/_block-call-to-action.css";
@import "components/blocks/_block-loan-types.css";
@import "components/blocks/_block-wysiwyg-content.css";
@import "components/blocks/_block-google-map.css";
@import "components/blocks/_block-post-banner.css";
@import "components/blocks/_block-post-content.css";
@import "components/blocks/_block-contact-form.css";
@import "components/blocks/_block-form.css";
@import "components/blocks/_block-image.css";
@import "components/blocks/_block-company-benefits.css";
@import "components/blocks/_block-team.css";
@import "components/blocks/_block-timeline.css";
@import "components/blocks/_block-reviews.css";

.ellipse svg {
    position: absolute;
    top: 0;
    z-index: -1;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
}

.icon-subtitle-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.icon-subtitle-wrap span {
    background-color: var(--white);
    box-shadow: 0 5px 5px rgba(var(--black-rgb), 10%);
    padding: 0 10px;
    min-height: 20px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
}

.icon-subtitle-wrap svg {
    box-shadow: 0 5px 5px rgba(var(--black-rgb), 10%);
    border-radius: var(--border-radius-sm);
}

.wp-block .ellipse {
    display: none;
}

/*-----------------------------------------------------------------------
	Base
-----------------------------------------------------------------------*/

.loanzaver-theme *,
.loanzaver-theme *:before,
.loanzaver-theme *:after {
    box-sizing: border-box;
}

.loanzaver-theme * {
    scroll-margin-top: calc(var(--header-height));
}

body.loanzaver-theme,
.editor-styles-wrapper {
    font-optical-sizing: auto;
    -webkit-text-size-adjust: none;
    -webkit-font-smoothing: antialiased;
    font-family: var(--font-primary) !important;
    font-size: 16px !important;
    color: var(--black);
    line-height: 1.5;
    font-weight: 400;
}

body.loanzaver-theme,
.editor-styles-wrapper,
.site-responsive-menu,
.site-main {
    background: var(--grey-light-2);
}

.site-main {
    position: relative;
    transition: var(--transition);
    z-index: 1;
}

/*-----------------------------------------------------------------------
	Admin Bar
-----------------------------------------------------------------------*/
body.loanzaver-theme.admin-bar {
    padding-top: var(--admin-height) !important;
}

#wpadminbar {
    top: 0;
    position: fixed;
    z-index: 20000000000000001;
}

#wpadminbar ul li.admin-bar-search {
    display: none !important;
}

/*-----------------------------------------------------------------------
	Layouts
-----------------------------------------------------------------------*/
.loanzaver-theme *[class*="container-"],
.loanzaver-theme *[class*="section-"],
.loanzaver-theme *[class*="block-"],
.loanzaver-theme *[class*="entry-"],
.loanzaver-theme .relative {
    position: relative;
}

.loanzaver-theme .absolute {
    position: absolute;
}

/* Flex Layout */

.flex-layout,
.flex-align-start,
.flex-align-center,
.flex-align-end,
.flex-justify-start,
.flex-justify-center,
.flex-justify-end,
.flex-justify-between {
    display: flex;
    flex-wrap: wrap;
}

.flex-align-start {
    align-items: flex-start;
}

.flex-align-center {
    align-items: center;
}

.flex-align-end {
    align-items: flex-end;
}

.flex-justify-start {
    justify-content: flex-start;
}

.flex-justify-center {
    justify-content: center;
}

.flex-justify-end {
    justify-content: flex-end;
}

.flex-justify-between {
    justify-content: space-between;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

.flex-column-reverse {
    flex-direction: column-reverse;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.gap-80 {
    gap: 80px !important;
}

.gap-50 {
    gap: 50px !important;
}

.gap-40 {
    gap: 40px !important;
}

.gap-20 {
    gap: 20px !important;
}

.gap-15 {
    gap: 15px !important;
}

.gap-10 {
    gap: 10px !important;
}

.gap-2 {
    gap: 2px !important;
}

/* Containers */
.loanzaver-theme .container,
.loanzaver-theme .container-xl,
.loanzaver-theme .container-lg,
.loanzaver-theme .container-md,
.loanzaver-theme .container-sm,
.loanzaver-theme .container-xs {
    z-index: 99;
    margin: 0 auto;
    width: 90%;
}

.loanzaver-theme .container-xl {
    width: 100%;
}

.loanzaver-theme .container-lg {
    max-width: var(--container-lg);
}

.loanzaver-theme .container-md {
    max-width: var(--container-md);
}

.loanzaver-theme .container-sm {
    max-width: var(--container-sm);
}

.loanzaver-theme .container-xs {
    max-width: var(--container-xs);
}

/* Padding */
.loanzaver-theme .padding-lg,
.loanzaver-theme .padding-lg-top {
    padding-top: 80px;
}

.loanzaver-theme .padding-lg,
.loanzaver-theme .padding-lg-bot {
    padding-bottom: 80px;
}

.loanzaver-theme .padding-md,
.loanzaver-theme .padding-md-top {
    padding-top: 40px;
}

.loanzaver-theme .padding-md,
.loanzaver-theme .padding-md-bot {
    padding-bottom: 40px;
}

.loanzaver-theme .padding-sm,
.loanzaver-theme .padding-sm-top {
    padding-top: 20px;
}

.loanzaver-theme .padding-sm,
.loanzaver-theme .padding-sm-bot {
    padding-bottom: 20px;
}

/* Grid Layout */
.loanzaver-theme .grid-col-1,
.loanzaver-theme .grid-col-2,
.loanzaver-theme .grid-col-3,
.loanzaver-theme .grid-col-4,
.loanzaver-theme .grid-col-5,
.loanzaver-theme .grid-col-6 {
    display: grid;
    gap: 20px;
}

.loanzaver-theme .grid-col-2 {
    gap: 80px;
}

.loanzaver-theme .grid-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.loanzaver-theme .grid-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.loanzaver-theme .grid-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.loanzaver-theme .grid-col-5 {
    grid-template-columns: repeat(5, 1fr);
}

.loanzaver-theme .grid-col-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Visibility */
.loanzaver-theme .desktop-only {
    display: block;
}

.loanzaver-theme .mobile-only {
    display: none;
}

/* Block Settings */
.loanzaver-theme .block-setting-padding {
    padding-top: var(--block-padding-top);
    padding-bottom: var(--block-padding-bottom);
}

.loanzaver-theme a {
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1px !important;
}

.loanzaver-theme a:hover,
.loanzaver-theme a:focus {
    color: var(--orange);
}

.loanzaver-theme ul,
.loanzaver-theme ol,
.loanzaver-theme li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.loanzaver-theme code {
    padding: 10px;
    font-size: 14px;
    color: var(--white);
    background: var(--black);
}

.loanzaver-theme mark {
    background: none;
}

.loanzaver-theme hr {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--black);
}

/*-----------------------------------------------------------------------
	Content Styling
-----------------------------------------------------------------------*/

/* Sizes */
.loanzaver-theme .text-small,
.loanzaver-theme .text-small * {
    font-size: 14px !important;
}

.loanzaver-theme .text-sub,
.loanzaver-theme .text-sub * {
    font-size: 12px !important;
}

/* Alignment */
.loanzaver-theme .text-left {
    text-align: left;
}

.loanzaver-theme .text-center {
    text-align: center;
}

.loanzaver-theme .text-right {
    text-align: right;
}

/* Colours */
.loanzaver-theme .text-muted {
    opacity: 40%;
}

.loanzaver-theme .text-white,
.loanzaver-theme .text-white *:not(.button, button, .button *, button *, [class*="text-"], [style*="color"]) {
    color: var(--white) !important;
    border-color: var(--white);
}

/*-----------------------------------------------------------------------
	WYSIWYG Content
-----------------------------------------------------------------------*/

.img-container {
    position: relative;
    overflow: hidden;
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100% !important;
    width: 100%;
    object-fit: cover;
}

.wysiwyg-content {
    width: 100%;
    position: relative;
    z-index: 99;
}

.wysiwyg-content h1:not(:last-child),
.wysiwyg-content h2:not(:last-child),
.wysiwyg-content h3:not(:last-child),
.wysiwyg-content h4:not(:last-child),
.wysiwyg-content h5:not(:last-child),
.wysiwyg-content h6:not(:last-child),
.wysiwyg-content ul:not(:last-child),
.wysiwyg-content ol:not(:last-child),
.wysiwyg-content p:not(:last-child),
.wysiwyg-content img:not(:last-child),
.wysiwyg-content table:not(:last-child),
.wysiwyg-content code:not(:last-child),
.wysiwyg-content blockquote:not(:last-child) {
    margin: 0 0 20px !important;
}

.wysiwyg-content li:not(:last-child) {
    margin: 0 0 10px !important;
}

/* Links */
.wysiwyg-content h5 a,
.wysiwyg-content p a,
.wysiwyg-content li a,
.wysiwyg-content span a {
    text-decoration: underline;
}

/* Lists */
.wysiwyg-content ul,
.wysiwyg-content ol {
    /* display: inline-block; */
}

.wysiwyg-content li {
    position: relative;
    text-align: left;
    padding: 0 0 0 20px;
}

.wysiwyg-content li:not(:last-child) {
    margin: 0 0 5px !important;
}

.wysiwyg-content ul > li:before {
    content: "";
    display: block;
    position: absolute;
    top: 10px;
    left: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
}

.wysiwyg-content ol {
    counter-reset: item;
    list-style-position: outside;
}

.wysiwyg-content ol > li:before {
    content: counter(item) ". ";
    counter-increment: item;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Blockquote */
#tinymce blockquote,
.wysiwyg-content blockquote {
    margin: 40px 0;
    padding: 10px 0 10px 25px;
    border-left: 5px solid var(--pink);
}

/* Hr */
.wysiwyg-content hr {
    margin: 30px 0;
}

/* Images */
.wysiwyg-content img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
}

.wysiwyg-content img:not(:first-child) {
    margin-top: 40px !important;
}

.wysiwyg-content img:not(:last-child) {
    margin-bottom: 40px !important;
}

.wysiwyg-content img.aligncenter {
    margin-left: auto !important;
    margin-right: auto !important;
    float: none;
}

.wysiwyg-content img.alignleft {
    float: left;
}

.wysiwyg-content img.alignright {
    float: right;
}

.wysiwyg-content img.size-full {
    width: 100% !important;
}

/*-----------------------------------------------------------------------
	Media
-----------------------------------------------------------------------*/

.loanzaver-theme img {
    max-width: 100%;
    height: auto;
    display: block;
}

.loanzaver-theme svg {
    transition: var(--transition);
}

.loanzaver-theme .image-square,
.loanzaver-theme .image-portrait,
.loanzaver-theme .image-landscape {
    background: var(--pink);
    position: relative;
    object-fit: cover;
    width: 100%;
}

.loanzaver-theme .image-square {
    aspect-ratio: 1 / 1;
}

.loanzaver-theme .image-portrait {
    aspect-ratio: 2 / 3;
}

.loanzaver-theme .image-landscape {
    aspect-ratio: 3 / 2;
}

/* Background Elements */

.loanzaver-theme .background-image,
.loanzaver-theme .background-video,
.loanzaver-theme .background-overlay:before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

.loanzaver-theme .background-image {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}

.loanzaver-theme .background-video,
.loanzaver-theme .background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loanzaver-theme .background-overlay:before {
    content: "";
    background: rgba(var(--black-rgb), 30%);
}

/* Video Embed */

.loanzaver-theme .responsive-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-md);
}

.loanzaver-theme .responsive-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*-----------------------------------------------------------------------
	Tables
-----------------------------------------------------------------------*/

.loanzaver-theme table {
    border-collapse: collapse;
    width: 100%;
}

.loanzaver-theme table,
.loanzaver-theme table tr,
.loanzaver-theme table th,
.loanzaver-theme table td {
    border-color: var(--grey);
}

.loanzaver-theme table th,
.loanzaver-theme table td {
    padding: 10px;
    text-align: left;
    border: 1px solid var(--grey);
}

.loanzaver-theme table th,
.loanzaver-theme table th * {
    font-weight: 600;
}

.loanzaver-theme table .button {
    width: fit-content !important;
    margin: 5px 5px 5px 0 !important;
}

/*-----------------------------------------------------------------------
	Social Icons
-----------------------------------------------------------------------*/
.loanzaver-theme .social-icons a,
.loanzaver-theme .social-icons div {
    background-color: var(--black);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.loanzaver-theme .social-icons svg {
    width: 16px;
    height: 16px;
    color: var(--white);
}

.loanzaver-theme .social-icons a:hover,
.loanzaver-theme .social-icons div:hover {
    transform: scale(1.1);
}

/*-----------------------------------------------------------------------
	Clipboard Copy
-----------------------------------------------------------------------*/
.loanzaver-theme .copy-to-clipboard {
    position: relative;
    cursor: pointer;
}

.loanzaver-theme .copy-to-clipboard .tooltip {
    background: var(--black);
    padding: 5px 8px;
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    white-space: nowrap;
    color: var(--white);
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -140%);
    transition: 0.3s ease all;
}

.loanzaver-theme .copy-to-clipboard .tooltip:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--black) transparent transparent transparent;
}

.loanzaver-theme .copy-to-clipboard:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/*-----------------------------------------------------------------------
	Popups
-----------------------------------------------------------------------*/

.loanzaver-theme .trigger-popup,
.loanzaver-theme .close-popup {
    cursor: pointer;
    z-index: 20000;
}

.loanzaver-theme .popup-wrap {
    display: none;
}

.loanzaver-theme .popup-overlay {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--black-rgb), 80%);
    z-index: 20000000000;
}

/* Containers */

.loanzaver-theme .popup-overlay > *[class*="container"] {
    position: relative;
    overflow-y: auto;
    max-height: 80vh;
    padding: 40px;
    background: var(--white);
}

/* Close Button */

.loanzaver-theme .popup-overlay .close-popup:not(.button) {
    position: absolute;
    right: 0;
    top: 0;
    padding: 20px;
}

.loanzaver-theme .popup-overlay .close-popup svg {
    width: 16px;
    height: 16px;
}

/*-----------------------------------------------------------------------
	Entry - Default
-----------------------------------------------------------------------*/

.loanzaver-theme *[class^="entry-"] {
    display: block;
    position: relative;
    text-decoration: none;
    transition: var(--transition);
}

.loanzaver-theme *[class^="entry-"] .inner-entry-content > *:not(:last-child) {
    margin: 0 0 10px !important;
}

/*-----------------------------------------------------------------------
	Block - Separator
-----------------------------------------------------------------------*/

.block-separator .separator {
    display: block;
    margin: 0;
    width: 100%;
    height: 1px;
    background: var(--black);
}

.block-editor .block-separator {
    padding: 5px 0;
}

@media (max-width: 1200px) {
    .loanzaver-theme .grid-col-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .loanzaver-theme .grid-col-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 850px) {
    .loanzaver-theme .padding-lg,
    .loanzaver-theme .padding-lg-top {
        padding-top: 40px;
    }

    .loanzaver-theme .padding-lg,
    .loanzaver-theme .padding-lg-bot {
        padding-bottom: 40px;
    }

    .loanzaver-theme .grid-col-2 {
        gap: 40px;
    }

    .loanzaver-theme .grid-col-2 {
        grid-template-columns: repeat(1, 1fr);
    }

    .loanzaver-theme .grid-col-3,
    .loanzaver-theme .grid-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .loanzaver-theme .grid-col-5,
    .loanzaver-theme .grid-col-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .loanzaver-theme .block-setting-padding {
        padding-top: calc(var(--block-padding-top) / 1.5);
        padding-bottom: calc(var(--block-padding-bottom) / 1.5);
    }
}

@media (max-width: 720px) {
    .loanzaver-theme .grid-col-4,
    .loanzaver-theme .grid-col-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .loanzaver-theme .desktop-only {
        display: none;
    }

    .loanzaver-theme .mobile-only {
        display: block;
    }
}

@media (max-width: 650px) {
    .loanzaver-theme .grid-col-3,
    .loanzaver-theme .grid-col-4 {
        grid-template-columns: repeat(1, 1fr);
    }

    .loanzaver-theme .grid-col-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}
