/*
	Theme Name: Pirly
	Theme URI: https://wpdedicated.uk
	Description: Hand Crafted theme
	Version: 1.0
	Author: Ben Kitching
	Author URI: https://benkitching.uk
	Tags: Blank, HTML5, CSS3

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

:root {
  --pirly-dark: #221f20;
  --pirly-white: #F7FAFC;
  --pirly-coral: #F4978E;
  --pirly-gray-light: #CBD5E0;
  --pirly-teal-dark: #2d5f5d;
  --pirly-teal: #3D7B78;
  --pirly-sage: #A8C0B4; 
  --pirly-gray-lighter: #E2E8F0;
  --pirly-mustard: #E8B855;
  --pirly-lavender: #b8a5d6;
  --pirly-red: #e7000b;
}

/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}

html {
	font-size: 1vw;
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

@media (min-width: 1920px) {
	html {
		font-size: 19px;
	}
}

@media (max-width: 1280px) {
	html {
		font-size: 12px;
	}
}

body {
	font: 400 1rem/1.4 'Sora', Arial, sans-serif;
	color: var(--pirly-dark);
	background-color: var(--pirly-white);
	margin: 0;
	padding: 0;
	max-width: 100vw;
	overflow-x: clip;
}

body.loading, body.burger {
	overflow: hidden;
}


#loader {
	background-color: var(--pirly-white);
	width: 100vw;
	height: 100vh;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 9999999;
}

/* clear */
.clear: before,
.clear: after {
    content: ' ';
    display: table;
}

.clear:after {
    clear: both;
}

img {
	max-width: 100%;
	vertical-align: bottom;
}

/*------------------------------------*\
    LINKS
\*------------------------------------*/

a {
	color: inherit;
	text-decoration: underline;
	transition: 0.5s all;
}

a:hover {
	text-decoration: none;
}

a:focus {
	outline: 0;
}

a:hover,
a:active {
	outline: 0;
}

a.no-decoration {
	text-decoration: none;
}

.btn {
	padding: 0.5rem 4rem;
	border: 1px solid;
	border-radius: 20px;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
}
.btn:hover {
	background-color: var(--pirly-coral);
	border-color: var(--pirly-coral);
}
.btn.dark:hover {
	background-color: var(--pirly-dark);
	color: var(--pirly-white);
}

.btn.black {
	background-color: var(--pirly-dark);
	color: var(--pirly-white);
	border-color: var(--pirly-dark);
}
.btn.black:hover {
	background-color: transparent;
	color: var(--pirly-dark);
}
.btn.disabled {
	pointer-events: none;
}

.buttons {
	display: flex;
}

.buttons .btn {
	margin: 0.5rem 0 0.5rem 0.5rem;
}

.pirly-application .buttons {
	margin-left: auto;
}

/*------------------------------------*\
    FORMS
\*------------------------------------*/

input:focus {
	outline:0;
	border:1px solid var(--pirly-dark);
}

input[type=text], input[type=textarea], input[type=email], input[type=password] {
	padding: 1rem;
	background-color: var(--pirly-white);
	border-radius: 1rem;
	width: 100%;
	border:1px solid var(--pirly-dark);
	font-size: 1rem;
}

input[type=checkbox] {
	width: 2rem;
	height: 2rem;
	max-width: 40px;
	max-height: 40px;
	margin-right: 1rem;
}

.nolabel label, .form-radio legend, .form-multi legend, .form-bullets legend {
	display: block;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden;
	padding: 0 !important;
}

.form-radio {
	margin-top: 2rem;
}

.form-radio p.form-error-text {
	width: 100%;
}

.form-radio fieldset {
	display: flex;
	border: none;
	padding: 0;
}

.radio-button {
	position: relative;
	height: 2.7rem;
	width: 8rem;
	border-radius: 20px;
	overflow: hidden;
	font-size: 1rem;
	border: 2px solid var(--pirly-gray-light);
	margin-left: 0.5rem;
}
.radio-button input {
	background-color: var(--pirly-gray-light);
	position: absolute;
	width: 100%;
	height: 100%;
	display: block;
	appearance: none;
	margin: 0;
	cursor: pointer;
	max-width: unset !important;
	max-height: unset;
}
.radio-button label {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: block;
	width: 100% !important;
	max-width: unset;
	text-align: center;
	color: var(--pirly-dark);
	pointer-events: none;
}

.radio-button input:checked {
	background-color: transparent;
}
.radio-button input:checked+label {
	color: var(--pirly-dark);
}

.form-multi .radio-button {
	height: 2rem;
	margin: 0 0.5rem 0.5rem 0;
	border-radius: 10px;
	width: 7.5rem;
}
.form-multi .radio-button label {
	padding: 0 !important;
}
.form-accordion .form-multi p {
	width: 20%;
}
.form-accordion .form-multi fieldset {
	width: 80%;
	flex-wrap: wrap;
	justify-content: flex-start;
}

.form-row.form-bullets fieldset {
	justify-content: flex-start;
}

.form-row.form-bullets fieldset input {
	margin-bottom: 1rem;
}

.form-row.form-address .form-row {
	width: 100%;
}

.dashboard-form .form-row.form-address fieldset .form-row input {
	width: calc(50% - 1rem);
	min-width: unset;
	flex-grow: 0;
	margin-bottom: 0 !important;
}

.dashboard-form .form-row.form-social fieldset input {
	max-width: unset;
	padding-left: 2rem !important;
}
.dashboard-form .form-row.form-social fieldset .form-field {
	position: relative;
}
.dashboard-form .form-row.form-social fieldset .form-field:before {
	content: '@';
	position: absolute;
	left: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1rem;
}

.dashboard-form .form-row.form-files .form-field.single-file {
	width: 25%;
}

.dashboard-form .form-row.form-files .form-field.multi-files {
	width: 50%;
}

.dashboard-form .form-row.form-files .form-field label {
	width: 100%;
	display: flex;
	cursor: pointer;
	position: relative;
}

.dashboard-form .form-row.form-files .form-field input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.dashboard-form .form-row.form-files .form-field .file-plus {
	font-size: 1.6rem;
	padding: 0.5rem;
	border: 2px solid;
	border-radius: 50%;
	width: 2rem;
	height: 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-right: 1rem;
}

.uploaded-preview {
	width: 90%;
}
.multi-files .uploaded-preview {
	display: flex;
	flex-wrap: wrap;
}
.uploaded {
	width: 100%;
	padding-bottom: 100%;
	border: 1px solid var(--pirly-gray-light);
	position: relative;
}
.uploaded-preview .uploaded img {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	object-fit: cover;
}

.multi-files .uploaded {
	width: 6rem;
	height: 6rem;
	padding-bottom: 0;
	margin: 0.25rem;
}

.uploaded.uploaded-video, .uploaded.uploaded-video video {
	width: 100%;
	height: auto;
}

.form-multi .radio-button label {
	color: var(--pirly-dark);
}
.form-multi .radio-button input {
	background-color: transparent !important;
	border-color: var(--pirly-gray-light) !important;
}
.form-multi .radio-button input:checked {
	background-color: var(--pirly-gray-light) !important;
}
.form-multi .radio-button input:checked+label {
	color: var(--pirly-dark);
}

.form-error {
	color: var(--pirly-red) !important;
}
.form-error input, .form-error select {
	border-color: var(--pirly-red) !important;
}

.form-success {
	color: var(--pirly-sage);
}

.form-submit {
	text-align: right;
	margin-top: 2rem;
}
#submitenquiry {
	display: inline-flex;
	appearance: none;
	background-color: transparent;
	border: none;
	outline: none;
	align-items: center;
	font-size: 1rem;
	cursor: pointer;
}
#submitenquiry svg {
	height: 1rem;
	width: auto;
	margin-right: 1rem;
	transition: 0.5s transform;
}

#submitenquiry:hover svg {
	transform: translateX(-1rem);
}

.form-error-text {
	font-size: 1rem;
	margin-top: 0.5rem;
	margin-left: 0.2rem;
	color: var(--pirly-red);
}

/* Anti Bot */
#email {
	position: absolute;
	top: -5000px;
	left: -5000px;
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

.block {
	width:100%;
	position: relative;
}

.page-inner {
	width: 90%;
	margin: 0 auto;
}

.wrapper {
	max-width: 1920px;
	width: 100%;
	margin: 0 auto;
	position: relative;
}

.small-logo {
	width: 8rem;
}
.logo {
	width: 100%;
	height: auto;
}

.logo svg {
	height: auto;
	width: 100%;
}

.logo-1 {
  stroke-width: 0px;
}

.white-logo .logo-1 {
	fill: var(--pirly-white);
}

#header {
	position: absolute;
	background: transparent;
	padding: 2rem;
	width: 100%;
	top:0;
	left: 0;
	z-index: 99;
}
#header.border-bottom-gray {
	background-color: #fff;
	padding: 1rem 2rem;
	position: fixed;
}

.nav-menu {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#logged-out-nav .nav-links a {
	margin-right: 1rem;
}

#logged-in-nav .nav-links a {
	margin-left: 1rem;
}

.header-logo {
	width: 6rem;
}

.footer a {
	text-decoration: none;
}
.footer a:hover {
	text-decoration: underline;
}

/*------------------------------------*\
    Colors
\*------------------------------------*/

.bg-dark {
	background-color: var(--pirly-dark);
}

.content-white {
	color: var(--pirly-white);
}
.content-white svg * {
	fill: var(--pirly-white);
}

.content-dark {
	color: var(--pirly-dark);
}
.content-dark svg * {
	fill: var(--pirly-dark);
}

.border-bottom-gray {
	border-bottom: 1px solid var(--pirly-gray-light);
}

.badge {
	font-size: 1rem;
	padding: 0.5rem 2rem;
	min-width: 8rem;
	border-radius: 10px; 
	text-align: center;
	line-height: 1;
}
.badge-sage {
	background-color: var(--pirly-sage);
	color: var(--pirly-white);
}
.badge-coral {
	background-color: var(--pirly-coral);
	color: var(--pirly-white);
}

.badge-gray {
	background-color: var(--pirly-gray-lighter);
	color: var(--pirly-dark);
}

.popup {
	position: fixed;
	width: 100vw;
	height: 100vh;
	z-index: 98;
	background-color: rgba(74, 85, 104, 0.5);
	top:0;
	left: 0;
	display: none;
}
.popup-inner {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.popup-content {
	min-width: 300px;
	min-height: 300px;
	max-width: 80vw;
	max-height: 70vh;
	background-color: var(--pirly-white);
	border-radius: 1rem;
	border: 1px solid var(--pirly-gray-light);
}

.close-popup {
	color: var(--pirly-white);
	position: absolute;
	top: 8rem;
	right: 4rem;
}
.close-popup svg {
	width: 4rem;
	height: auto;
	transform: rotate(45deg);
	transition: 0.5s transform;
}
.close-popup:hover svg {
	transform: none;
}

.popup .flex p {
	width: 50%;
}

.popup .buttons .btn {
	width: calc(50% - 1rem);
}
.popup .buttons {
	justify-content: space-between;
}

#application-popup .popup-content {
	width: 60rem;
}

.lost {
	opacity: 0;
	transition: 0.5s opacity;
}

#notification {
	border: 2px solid #e5e7eb;
	padding: 1rem;
	border-radius: 1rem;
	position: fixed;
	bottom: 1rem;
	width: calc(100% - 4rem);
	left: 2rem;
	display: none;
	color: #fff;
	z-index: 98;
}
#notification.success {
	background-color: #f0fdf4;
	color: #016630;
}
#notification.warning {
	background-color: #fefce8;
	color: #733e0a;
}
#notification.error {
	background-color: #fff;
	color: var(--pirly-red);
}

/*------------------------------------*\
	MISC
\*------------------------------------*/

::selection {
	background: var(--pirly-coral);
	color: var(--pirly-white);
	text-shadow: none;
}
::-webkit-selection {
	background: var(--pirly-coral);
	color: var(--pirly-white);
	text-shadow: none;
}
::-moz-selection {
	background: var(--pirly-coral);
	color: var(--pirly-white);
	text-shadow: none;
}

/*------------------------------------*\
	TYPOGRAPHY
\*------------------------------------*/

p {
	margin: 1rem 0;
}

h1, .h1, h2, .h2, h3, .h3, h4, h5, h6 {
	margin: 1rem 0;
	line-height: 1;
	font-weight: 700;
}

h1, .h1 {
	font-size: 3.6rem;
	font-family: 'DM', serif;
	font-weight: normal;
}

h2, .h2 {
	font-size: 2.6rem;
}

h3, .h3 {
	font-size: 2.2rem;
}

h4, .h4 {
	font-size: 1.8rem;
}

h5, .h5 {
	font-size: 1.6rem;
}

strong, b {
	font-weight: 700;
}

.text-upper {
	text-decoration: uppercase;
}

.small-text {
	font-size: 1rem;
}

@font-face {
	font-family: 'Sora';
	font-style: normal;
	src: url('./fonts/sora.ttf') format("truetype-variations");
   	font-weight: 100 900;
   	font-display: swap;
}

@font-face {
	font-family: 'DM';
	font-style: normal;
	src: url('./fonts/dm.woff2') format("woff2");
 	font-weight: 400;
 	font-display: swap;
}

@font-face {
	font-family: 'DM';
	font-style: italic;
	src: url('./fonts/dm-italic.woff2') format("woff2");
    font-weight: 400;
    font-display: swap;
}

/*------------------------------------*\
    Spacing and Grid
\*------------------------------------*/

.grid {
	display: grid;
	align-items: stretch;
	grid-column-gap: 1rem;
	grid-row-gap: 1rem;
}

.grid.halves {
	grid-template-columns: repeat(2, 50%);
}

.grid.quarters {
	grid-template-columns: repeat(4, 24%);
}

.flex {
	display: flex;
}

.between {
	justify-content: space-between;
}

.centralise {
	align-items: center;
	justify-content: center;
}

.col {
	position: relative;
	padding:1rem;
}

.p4 {
	padding: 4rem;
}

.mt0 {
	margin-top: 0;
}
.my0 {
	margin-top: 0;
	margin-bottom: 0;
}
.mt2 {
	margin-top: 2rem !important;
}
.mt4 {
	margin-top: 4rem;
}
.mt16 {
	margin-top: 16rem;
}

.mb2 {
	margin-bottom: 2rem;
}

.mr2 {
	margin-right: 2rem;
}

.ml4 {
	margin-left: 4rem;
}

.w32 {
	width: 32rem;
}
.w100 {
	width: 100%;
}

/*------------------------------------*\
    Account Pages
\*------------------------------------*/

.login-form-wrapper {
	background-color: var(--pirly-dark);
	color: #fff;
	width: 100vw;
	height: 100vh;
	overflow: clip;
	position: relative;
}

.login-form-inner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 24rem;
	max-width: 95vw;
}

.login-form-wrapper .logo {
	width: 16rem;
	margin-bottom: 1rem;
}

.login-username label, .login-password label {
	margin-bottom: 0.25rem;
	display: block;
}

.login-remember label {
	display: flex;
	align-items: center;
}

#pirly-login {
	appearance: none;
	-webkit-appearance: none;
	font-size: 1.4rem;
	padding: 0.5rem 4rem;
	border-radius: 1rem;
	margin-top: 1rem;
	border: 1px solid var(--pirly-white);
	color: var(--pirly-white);
	transition: 0.5s all; 
	background-color: transparent;

}
#pirly-login:hover {
	background-color: var(--pirly-coral);
}

#account-wrapper {
	padding-top: 5.2rem;
	padding-left: 4rem;
}

#account-sidebar {
	width: 4rem;
	transition: 0.5s width;
	border-right: 1px solid var(--pirly-gray-light);
	background-color: #fff;
	height: 100vh;
	position: fixed;
	left: 0;
	top: 0;
	overflow: hidden;
	padding: 7rem 1rem 2rem 0;
	z-index: 97;
}

#account-sidebar:hover {
	width: 24rem;
}

#account-content {
	padding: 2rem;
}
#account-content.nopadding {
	padding: 0;
}

#account-sidebar.perk-sidebar:hover {
	width: 60rem;
	overflow-y: scroll;
}

#add-perk-form {
	width: 60rem;
	padding: 1rem 2rem 4rem 4rem;
}
#add-perk-form .form-error-text {
	text-align: right;
}
#add-perk-form .form-accordion-content {
	padding-left: 2rem;
}

#perk-form-footer {
	position: fixed;
	bottom: 0;
	background-color: #fff;
	width: 0;
	overflow: hidden;
	transition: 0.5s width;
}
#perk-form-footer-inner {
	padding: 1rem 1rem 0 1rem;
	width: 56rem;
}
#account-sidebar.perk-sidebar:hover #perk-form-footer {
	width: 56rem;
}
#perk-form-footer .form-row {
	justify-content: flex-end;
}
#perk-form-footer button {
	margin-left: 1rem;
}

.dashboard-form .form-row.form-consent {
	justify-content: flex-start;
	align-items: center;
	margin: 2rem 0;
}
.dashboard-form .form-row.form-consent input {
	flex-grow: 0;
	margin-left: 0;
}
.dashboard-form .form-row.form-consent label {
	margin-bottom: 0;
}

.dashboard-form .form-row .form-field {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	width: calc(50% - 1rem);
}

.dashboard-form .form-accordion-content label {
	width: 20%;
	padding-right: 1rem;
	font-size: 1rem;
}
.dashboard-form .form-accordion-content input, #add-perk-form .form-accordion-content textarea {
	flex-grow: 1;
	max-width: 80%;
}

#add-perk-form .form-accordion-content .form-row:first-child {
	margin-top: 2rem;
}

#add-perk-form .form-accordion-content input, #add-perk-form .form-accordion-content textarea {
	border: 1px solid var(--pirly-dark);
	border-radius: 10px;
	padding: 0.5rem 1rem;
	font-family: 'Sora', sans-serif;
	font-size: 1rem;
	background-color: #fff;
}

.caret {
	fill: none;
	stroke: #221f20;
	stroke-miterlimit: 10;
}
.dashboard-svg-1 {
	fill: none;
	stroke: var(--pirly-gray-light);
	stroke-miterlimit: 10;
	stroke-width: 2px;
}
.dashboard-svg-2 {
	stroke-linecap: round;
}
.dashboard-svg-3 {
	fill: var(--pirly-gray-light);
}

#account-sidebar a:hover .dashboard-svg-3, .active .dashboard-svg-3 {
	fill: var(--pirly-dark);
}

#account-sidebar a:hover .dashboard-svg-1, .active .dashboard-svg-1, .dashboard-svg-4 {
	fill: none;
	stroke: var(--pirly-dark);
	stroke-miterlimit: 10;
	stroke-width: 2px;
}

.account-link {
	display: flex;
	align-items: center;
	width: 24rem;
	margin-bottom: 1rem;
	padding: 1rem 1rem 1rem 1.25rem;
}

.account-link:hover {
	background-color: var(--pirly-gray-lighter);
}

.account-link svg {
	width: 1.5rem;
	height: auto;
	margin-right: 2rem;
}

.pirly-application {
	display: flex;
	align-items: center;
	width: 100%;
	margin-bottom: 1rem;
}

.application-name {
	width: 20rem;
}
.application-email {
	width: 36rem;
}
.pirly-application .btn {
	margin-left: auto;
}
.pirly-application.perk-application .btn {
	margin-left: 0.5rem;
}

.form-row.form-dates fieldset {
	flex-wrap: nowrap;
}
.dashboard-form .form-row {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-top: 0;
	margin-bottom: 1rem;
	width: 100%;
}
.dashboard-form .form-error-text {
	width: 100%;
}

.dashboard-form fieldset {
	width: 80%;
	flex-wrap: wrap;
}
.dashboard-form .form-row.form-address fieldset {
	margin-top: 0;
}
.dashboard-form .form-row.form-address fieldset input {
    width: 100%;
    max-width: unset !important;
}
.dashboard-form .form-row.form-address fieldset input:first-child {
    margin-bottom: 1rem;
}
.dashboard-form p.small-text {
	width: 20%;
}

.dashboard-form .form-row select {
	background-color: #fff;
	border: 1px solid var(--pirly-dark);
	border-radius: 10px;
	padding: 1rem;
	color: var(--pirly-dark);
	max-width: 80%;
}

.small-select {
	display: flex;
	width: 33.33%;
	align-items: center;
}

.dashboard-form .form-row .small-select select {
	width: 4rem;
	margin-right: 1rem;
}
.dashboard-form .form-row .small-select label {
	width: calc(100% - 5rem);
}

.dashboard-form .form-age .form-select {
	width: 40%;
}
.dashboard-form .form-age .form-select label {
	width: 60%;
}
.dashboard-form .form-age .form-select select {
	width: calc(40% - 2rem);
}
.dashboard-form .form-age .form-text {
	display: none;
}
.dashboard-form .form-age .form-text label {
	width: 30%;
}
.dashboard-form .form-age .form-text input {
	width: calc(70% - 2rem);
}

.dashboard-form label {
	display: block;
	margin-bottom: 0.5rem;
}

.dashboard-form button {
	font-size: 1.4rem;
	margin-left: 0;
	border-radius: 20px;
}

.account-page-title {
	padding: 2rem;
	border-bottom: 1px solid var(--pirly-gray-light);
}
.account-page-title .h2 {
	margin: 0;
}

#chat-wrapper {
	display: flex;
}
#chat-inbox {
	width: 20%;
	border-right: 2px solid var(--pirly-gray-lighter);
}
.chat-header-title {
    font-weight: 700;
}
.chat-header-name {
    color: var(--pirly-sage);
    font-weight: 500;
}
.chat-header p {
	cursor: pointer;
	padding: 1rem;
	margin: 0;
}
.chat-header p:hover {
	background-color: var(--pirly-gray-lighter);
}
.chat-header p.active {
	background-color: var(--pirly-gray-light);
}

.chat-header .badge {
	width: 12rem;
	background-color: var(--pirly-sage);
	display: block;
	margin-top: 0.25rem;
	color: var(--pirly-white);
}
.chat-header .badge.has-unread {
	background-color: var(--pirly-mustard);
}
.chat-header .badge.is-expired {
	background-color: var(--pirly-red);
}
.chat-header .badge.is-accepted {
	background-color: var(--pirly-lavender);
}

#chat-window {
	width: 80%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
}
#chat-window-header {
	padding: 0 2rem;
}
#chat-wrapper {
	height: calc(100vh - 13rem);
}

#chat-window-messages {
	position: absolute;
	top: 5rem;
	height: 24rem;
	overflow-y: scroll;
	padding: 0 2rem;
	width: 100%;
}
#chat-window-send {
	background-color: var(--pirly-gray-lighter);
	border-top: 2px solid var(--pirly-gray-light);
	padding: 1rem 2rem;
	height: 10rem;
}
#chat-window-input {
	width: 60rem;
}
#chat-window-input label {
	font-size: 1rem;
	margin-bottom: 0.5rem;
	display: block;
}
#chatInput {
	width: 100%;
	height: 6rem;
	padding: 1rem;
	font-size: 1rem;
	border-radius: 10px;
}
#chat-window-submit {
	width: 12rem;
	text-align: right;
	padding-bottom: 0.5rem;
	display: flex;
	align-items: flex-end;
}

.chat-message {
	margin-top: 0;
	width: 100%;
}
.chat-message:first-child {
	margin-top: 12rem;
}
.message-sender {
	font-size: 1rem;
	color: var(--pirly-gray-light);
}
.message-bubble {
	display: block;
	margin-top: 0.5rem;
	background-color: var(--pirly-sage);
	color: var(--pirly-white);
	padding: 0.5rem 1rem;
	border-radius: 1rem;
	width: max-content;
	max-width: 70%;
}
.message-sender, .message-bubble {
	display: inline-block;
}
.chat-message:nth-child(even) {
	text-align: right;
}
.chat-message:nth-child(even) .message-bubble {
	background-color: var(--pirly-lavender);
}


/*------------------------------------*\
    Blocks
\*------------------------------------*/

.signup-form-inner {
	width: 80%;
	margin: auto;
}
.signup-form .col {
	overflow: hidden;
}
.signup-form img {
	width: 100%;
	height: calc(100vh - 2rem);
	object-fit: cover;
	transition: 1s transform;
}
.signup-form img:hover {
	transform: scale(1.2);
}

/*------------------------------------*\
    Home Page
\*------------------------------------*/

.pirly-signup {
	padding: 1rem 4rem 4rem 4rem;
	min-height: 100vh;
	position: relative;
}
.signup-logo {
	width: 30%;
	position: fixed;
	bottom: 0;
	left: 1rem;
}

.signup-terms {
	position: absolute;
	text-align: right;
	bottom: 1rem;
	right: 1rem;
}
.signup-terms a {
	margin-left: 1rem;
}
.signup-terms a:hover {
	text-decoration: underline;
}

.pirly-signup .flex.centralise {
	min-height: calc(100vh - 6rem);
}

#pirly-signup {
	width: calc(100% - 4rem);
	margin: 4rem 0 4rem auto;
}

.form-accordion {
	padding: 1rem 0;
	border-top: 1px solid #fff;
}
.form-accordion:last-child {
	border-bottom: 1px solid #fff;
}

#addperk .form-accordion {
	border-color: var(--pirly-dark);
}

.form-accordion-title {
	display: flex;
	justify-content: space-between;
	font-weight: 500;
	cursor: pointer;
}
.form-accordion-title a {
	text-decoration: none;
}
.form-accordion-content {
	height: 0;
	overflow: hidden;
	transition: 0.5s height;
}
.close-accordion {
	transition: 0.5s transform;
}
.form-accordion.open .close-accordion {
	transform: rotate(45deg);
}

.form-row {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-top: 1rem;
}
.form-accordion .form-row:last-child {
	margin-bottom: 1rem;
}

.form-row .form-field {
	width: calc(50% - 2rem);
}

.form-row.fullwidth .form-field {
	width: 100%;
}

.form-accordion input[type=text], .form-accordion input[type=number], .form-accordion input[type=email], .form-accordion input[type=password], .form-accordion select, .form-accordion textarea {
	background-color: transparent;
	border:none;
	border-bottom: 1px solid var(--pirly-gray-light);
	color: inherit;
	border-radius: 0;
	appearance: none;
	-webkit-appearance: none;
	outline: none;
	width: 100%;
	padding: 1rem 1rem 1rem 0;
}

.form-accordion select, .form-accordion select>option {
	background-color: var(--pirly-dark);
	color: var(--pirly-gray-light);
}

.form-accordion .form-error-text {
	width: 100%;
	margin: 0;
	position: relative;
	top: 5px;
}

form .form-submit {
	margin-top: 2rem;
}
form button {
	margin-left: auto;
	background-color: var(--pirly-teal-dark);
	color: var(--pirly-white);
	border-radius: 10px;
	padding: 0.5rem 4rem;
	border: 1px solid  var(--pirly-teal-dark);
	transition: 0.5s background-color;
	cursor: pointer;
	position: relative;
}
form button:hover {
	background-color: var(--pirly-teal);
	border-color: var(--pirly-teal);
}

form button img {
	position: absolute;
	width: 2rem;
	height: auto;
	top: 50%;
	right: 1rem;
	transform: translateY(-50%);
	opacity: 0;
	transition: 0.5s opacity;
}

button.disabled {
	pointer-events:none;
	opacity: 0.5;
}

form {
	position: relative;
}
form.uploading .form-footer {
	pointer-events:none;
}

form .form-overlay {
	width: 100%;
	height: 100%;
	z-index: 6;
	position: absolute;
	border-radius: 10px;
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: 0.5s opacity;
	opacity: 0;
	pointer-events: none;
	background: rgba(247,250,252,0.2);
	top: 0;
	left: -0.5rem;
	color: var(--pirly-white);
}

form .form-overlay img {
	width: 6rem;
	height: auto;
}

form.uploading .form-overlay {
	opacity: 1;
	pointer-events: all;
}

.remove-img {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	display: block;
	width: 2rem;
	height: 2rem;
	background-color: var(--pirly-coral);
	border-radius: 50%;
	color: var(--pirly-white);
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	transform: rotate(45deg);
	opacity: 0;
	transition: 0.5s opacity;
	cursor: pointer;
}
.uploaded:hover .remove-img {
	opacity: 1;
}

.submitting .form-accordion-content {
	pointer-events: none;
}

.submitting .form-row {
	opacity: 0.5;
}

.submitting .form-row.form-submit {
	opacity: 1;
}

.submitting button img {
	opacity: 1;
}

.form-accordion fieldset {
	border: none;
	padding: 0;
	display: flex;
	justify-content: space-between;
	margin-left: 0;
	margin-right: 0;
	margin-top: 1rem;
}
.form-accordion legend {
	font-size: 1rem;
}
select.datefield-day {
	width: 30%;
	margin-right: 1rem;
}
select.datefield-year {
	width: 35%;
	margin-left: 1rem;
}

/*------------------------------------*\
    Perks
\*------------------------------------*/

.fullwidth-img {
	width: 100%;
}

.perk-header img, .perk-header video {
	width: 100%;
	height: 40rem;
	object-fit: cover;
}

.perk-thumbs {
	margin-top: 1rem;
	margin-bottom: 2rem;
}
.perk-header .perk-thumbs img {
	height: 4rem;
}
.perk-thumbs .swiper-wrapper {
	justify-content: center;
}
.perk-thumbs .swiper-wrapper img {
	cursor: pointer;
}

.perk-content {
	background-color: var(--pirly-white);
	padding: 2rem 3rem 4rem;
	display: flex;
	flex-wrap: wrap;
}
.perk-info {
	width: 67%;
}
.single-perk-sidebar {
	width: 33%;
	padding-left: 4rem;
}
.perk-top {
	display: flex;
	align-items: center;
}
.perk-logo {
	width: 12rem;
	height: 12rem;
	margin-right: 2rem;
}
.perk-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
.perk-meta {
	flex-grow: 1;
	border-top: 1px solid var(--pirly-gray-light);
	border-bottom: 1px solid var(--pirly-gray-light);
}
.perk-meta-bottom {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

.perk-summary {
	font-size: 1.8rem;
	font-family: 'DM', serif;
}

.perk-box {
	background-color: #fff;
	padding: 2rem;
	margin-bottom: 2rem;
}
.list-item {
	display: flex;
}
.bullet {
	width: 2rem;
	min-width: 2rem;
}
.bullet svg {
	width: auto;
	height: 1rem;
}

.perk-buttons {
	width: 100%;
	padding: 4rem 0;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #fff;
}
.perk-buttons a.btn {
    margin: 0 1rem;
    width: 12rem;
    padding: 1rem 2rem;
}

.perk-tile {
	margin-bottom: 1rem;
}
.perk-tile-full .perk-tile-inner {
	padding-bottom: 6rem;
	position: relative;
}
.perk-tile-inner {
	background-color: #fff;
	height: 100%;
}
.perk-tile-image {
	height: 12rem;
}
.image-fill img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.perk-tile-meta {
	margin: 1rem 0 2rem;
	align-items: center;
	padding: 0 1rem;
}
.perk-tile-logo {
	width: 4rem;
	min-width: 4rem;
	height: 4rem;
	margin-right: 1rem;
}
.perk-tile-logo img {
	border-radius: 50%;
}

.perk-tile-title {
	position: relative;
	top: 1rem;
}
.perk-tile-title span {
	display: block;
	width: calc(100% - 1rem);
	margin-left: 1rem;
}
.perk-tile-btn {
	padding: 2rem;
	text-align: right;
}

.perk-tile-info {
	padding: 0 1rem;
}

.perk-tile-tags {
	display: flex;
	flex-wrap: wrap;
}
.perk-tile-info .badge {
	font-size: 0.8rem;
	margin-right: 0.25rem;
	margin-bottom: 0.25rem;
	padding: 0.5rem 0.75rem;
	min-width: unset;
}

.perk-tile-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	bottom: 0;
	width: 100%;
	position: absolute;
}

.perk-tile-bottom a.btn {
	padding: 0.5rem 2rem;
}

.perk-tile-actions {
	flex-grow: 1;
	text-align: right;
}

.perk-tile-actions svg {
	width: 2rem;
	height: auto;
	margin-left: 1rem;
}

.perk-tile-actions a:hover .dashboard-svg-3, .liked .dashboard-svg-3 {
	fill: var(--pirly-coral);
}

#likedperk {
	display: flex;
	align-items: center;
	justify-content: center;
}

.liked #likedperk {
	justify-content: space-between;
}

#likedperk svg {
	width: 1.25rem;
	height: auto;
	margin-left: 0.5rem;
	display: none;
}
.liked #likedperk {
	background-color: var(--pirly-dark);
	color: var(--pirly-white);
}
.liked #likedperk svg {
	display: inline-block;
}

#perks-filter {
	padding: 2rem 0;
}
.perks-filter-inner {
	width: 60%;
	min-width: 300px;
	margin: 0 auto 4rem auto;
}
#search-input {
	background: #e5e7e5;
	padding: 0 1rem 0 4rem;
	border-radius: 1rem;
	position: relative;
	margin-bottom: 4rem;
}
#search-input svg {
	position: absolute;
	height: 2rem;
	width: auto;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
}
#searchperks {
	background: transparent;
	border: none;
	outline: none;
	padding: 1.5rem 0;
	font-size: 1.2rem;
	width: 100%;
}

.perk-filter-sub {
	opacity: 0;
	pointer-events: none;
	overflow: hidden;
	transition: 0.5s opacity;
	z-index: 2;
}

#filterperks {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 80%;
	margin: auto;
}

.perkfilter {
	position: relative;
}

.perkfilter svg {
	width: 1rem;
	height: auto;
	margin-left: 1rem;
	transform: rotate(-90deg);
	transition: 0.5s transform;
}
.perkfilter a {
	font-size: 1.2rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}
.perkfilter:hover svg {
	transform: none;
}

.perk-filter-sub {
	position: absolute;
	width: max-content;
	min-width: 250px;
	top: 1.5rem;
	left: -1rem;
}

.perk-filter-sub a {
	display: block;
	margin-bottom: 1rem;
}
.perk-filter-sub a:last-child {
	margin-bottom: 0;
}

.perkfilter:hover .perk-filter-sub {
	opacity: 1;
	pointer-events: all;
}

.perk-filter-sub-inner {
	border-radius: 1rem;
	border: 1px solid var(--pirly-dark);
	margin-top: 1rem;
	padding: 1rem;
	background-color: var(--pirly-white);
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

.sfs {
	display: none;
}

@media (orientation: portrait) {

	html {
		font-size: 4vw;
	}

	.hfs {
		display: none;
	}
	.sfs {
		display: block;
	}

	main {
		padding-bottom: 2rem;
	}

	.grid.halves {
		grid-template-columns: repeat(1, 100%);
	}

	.signup-form .col {
		padding: 0;
	}
	.signup-form-inner {
		order: 1;
	}
	.signup-form img {
		height: 50vh;
	}

	.form-radio fieldset {
		flex-wrap: wrap;
	}

	.radio-button {
		width: calc(50% - 0.5rem);
		margin-bottom: 0.5rem;
	}

}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.block-editor-block-list__block {
	width: 80%;
	max-width: 1440px;
}

.block-editor-block-list__block.acf-block-preview {
	zoom:0.5;
}
html .mceContentBody {
    font-size: 18px;
    padding:10px;
}
html .mceContentBody p {
	margin: 16px 0;
	font-size: 14px;
	line-height: 1.1;
}
.editor-styles-wrapper a {
	text-decoration: none;
}
.editor-styles-wrapper input[type=text], .editor-styles-wrapper input[type=textarea], .editor-styles-wrapper input[type=email], .editor-styles-wrapper input[type=password] {
	border-radius: 4px;
	border: 1px solid #8c8f94;
}

.alignnone {
	margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:#FFF;
	border:1px solid #F0F0F0;
	max-width:96%;
	padding:5px 3px 10px;
	text-align:center;
}
.wp-caption.alignnone {
	margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:98.5%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}