/* Prevent font scaling in landscape */
html {
    -webkit-text-size-adjust: 100%;
}

/* Prevents FOUC (https://www.jacobmilhorn.com/posts/solving-fouc-in-web-components/) */
*:not(:defined) {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

button:disabled {
    opacity: 0.3;
}

/* Form status */
.inputerror {
    background-color: #ff00000d;
    border-color: rgb(255 107 107 / 60%);
}

.inputnoerror {
    background-color: #09ff000d;
    border-color: rgb(107 255 126 / 50%);
}

/* Article styling */
porton-article-section h3 {
    margin-bottom: 0.25rem;
}

porton-article-section p {
    margin-bottom: 2rem;
}

/* Columns width fix */
porton-columns {
    width: 100%;
}

/* Login form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-form input {
    margin-bottom: 0.5rem;
    color: #1b1d2d;
    border-color: rgba(180, 203, 250, 0.3);
}

.login-form button {
    color: white;
    background-color: #cb397a;
    height: 2.3rem;
}

.login-form a {
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
}

porton-login-dialog a {
    color: rgb(47, 54, 153);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Table fix */
porton-table {
    width: 100%;
}

/* Maintenance page (standalone, no web components) */
.maintenance {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 37.5rem;
    margin: 0 auto;
    padding: calc(3rem + 2vw) calc(1rem + 1vw) 4rem;
}

.header-logo {
    width: 16rem;
    max-width: 80%;
    height: auto;
    margin: 0 auto;
}

.maintenance-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: calc(1.5rem + 1vw);
    border: 1px solid rgba(180, 203, 250, 0.1);
    border-radius: 0.5rem;
    background-color: #1b1d2d;
}

.maintenance-box h1 {
    font-family: Alexandria, sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: white;
    opacity: 1;
}

/* Payment options */
a.paymentoption {
    color: white;
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(3, auto);
    grid-template-areas:
        "img text button"
        "img slot button"
        "img smalltxt button";
    place-items: center start;
    gap: 0.5rem 1rem;
}

a.paymentoption b {
    grid-area: text;
}

a.paymentoption .smalltxt {
    grid-area: smalltxt;
    font-size: 0.8rem;
    color: #b4cbfa;
    text-decoration-color: #b4cbfa;
}

a.paymentoption img {
    grid-area: img;
}

a.paymentoption input {
    grid-area: button;
    opacity: 0;
}

a.paymentoption br {
    display: none;
}

.porton-preview {
    width: 36rem;
    max-width: 50%;
}

@media only screen and (max-width: 50rem) {
    .porton-preview {
        max-width: 100%;
    }
}

/* Two factor authentication elements */
/* account page */
#enabled2FAText {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#enable2FAText ol li {
    margin-top: 1rem;
}

#code2FA {
    width: 100%;
    margin-bottom: 0.5rem;
}

#code2FA + #enable2FAButton {
    width: 100%;
    background-color: #cb397a;
    border: #ba316e;
}


#code2FA + #enable2FAButton:hover {
    background-color: #cb397a50;
    border: #ba316e;
}

.f {
    display: flex;
}

.f_col {
    flex-direction: column;
}

.g-2 {
    gap: 1rem;
}

.twoFactorStatus[data-2fa="true"] {
    color: green;
}

.twoFactorStatus[data-2fa="false"] {
    color: red;
}

/* 2FA sign-in page */
#form-2facode div.horizontal {
    margin-top: 2rem;
}

#form-2facode label[for="code"] {
    align-items: start;
    margin-bottom: 0.5rem;
}
/* #form-2facode label[for="trust"] {
    align-self: start;
} */

#form-2facode div.horizontal .check2fa {
    margin-top: 2rem;
}

#form-2facode div.horizontal div label[id="checkbox"], input[type="submit"] {
    width: 100%;
    background-color: #cb397a;
}

label {
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
  }
  
  .sr-only {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
  }
  
  .checkbox-custom {
    position: relative;
  }
  
  .checkbox-custom__label {
    cursor: pointer;
    display: inline-block;
  }
  .checkbox-custom__label:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 1.25rem;
    height: 1.25rem;
  /*   border: 2px solid #f2f2f2; */
    margin-right: 0.5rem;
    border-radius: 0.25rem;
    background-color: #ffffff25;
  }
  .checkbox-custom_label:hover {
    color: #ffffff80;
  }
  
  .checkbox-custom input:focus:not(:focus-visible) {
    outline: none;
  }
  
  .checkbox-custom input:focus + .checkbox-custom__label {
    outline: solid 2px #ffffff15;
    outline-offset: 0.125rem;
  }
  
  .checkbox-custom--svg input:checked + .checkbox-custom__label--svg:before {
  /*   background: #3863d9; */
  /*   border-color: #3863d9; */
  }
  .checkbox-custom--svg input:checked + .checkbox-custom__label--svg .path {
    stroke: #cb397a;
    stroke-dashoffset: 0;
  }
  
  .checkbox-custom__label--svg {
    padding-left: 2rem;
  }
  .checkbox-custom__label--svg:before {
    position: absolute;
    left: 0;
    top: -1px;
    width: 1.5rem;
    height: 1.5rem;
    transition: all 0.35s ease-out;
  }
  .checkbox-custom__label--svg svg {
    position: absolute;
    left: 4px;
    top: 3px;
    width: 15px;
    height: 15px;
  }
  .checkbox-custom__label--svg .path {
    stroke-dashoffset: 111.46px;
    stroke-dasharray: 111.46px;
    stroke: #cb397a;
    transition: all 0.35s ease-out;
  }

  .btn.link {
    margin-top: 3rem;
  }

/* Two factor authentication elements */
/* account page */
#enabled2FAText {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#enable2FAText ol li {
    margin-top: 1rem;
}

#code2FA {
    width: 100%;
    margin-bottom: 0.5rem;
}

#code2FA + #enable2FAButton {
    width: 100%;
    background-color: #cb397a;
    border: #ba316e;
}


#code2FA + #enable2FAButton:hover {
    background-color: #cb397a50;
    border: #ba316e;
}

.f {
    display: flex;
}

.f_col {
    flex-direction: column;
}

.g-2 {
    gap: 1rem;
}

.twoFactorStatus[data-2fa="true"] {
    color: green;
}

.twoFactorStatus[data-2fa="false"] {
    color: red;
}

/* 2FA sign-in page */
#form-2facode div.horizontal {
    margin-top: 2rem;
}

#form-2facode label[for="code"] {
    align-items: start;
    margin-bottom: 0.5rem;
}
/* #form-2facode label[for="trust"] {
    align-self: start;
} */

#form-2facode div.horizontal .check2fa {
    margin-top: 2rem;
}

#form-2facode div.horizontal div label[id="checkbox"], input[type="submit"] {
    width: 100%;
    background-color: #cb397a;
}

label {
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
  }
  
  .sr-only {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
  }
  
  .checkbox-custom {
    position: relative;
  }
  
  .checkbox-custom__label {
    cursor: pointer;
    display: inline-block;
  }
  .checkbox-custom__label:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 1.25rem;
    height: 1.25rem;
  /*   border: 2px solid #f2f2f2; */
    margin-right: 0.5rem;
    border-radius: 0.25rem;
    background-color: #ffffff25;
  }
  .checkbox-custom_label:hover {
    color: #ffffff80;
  }
  
  .checkbox-custom input:focus:not(:focus-visible) {
    outline: none;
  }
  
  .checkbox-custom input:focus + .checkbox-custom__label {
    outline: solid 2px #ffffff15;
    outline-offset: 0.125rem;
  }
  
  .checkbox-custom--svg input:checked + .checkbox-custom__label--svg:before {
  /*   background: #3863d9; */
  /*   border-color: #3863d9; */
  }
  .checkbox-custom--svg input:checked + .checkbox-custom__label--svg .path {
    stroke: #cb397a;
    stroke-dashoffset: 0;
  }
  
  .checkbox-custom__label--svg {
    padding-left: 2rem;
  }
  .checkbox-custom__label--svg:before {
    position: absolute;
    left: 0;
    top: -1px;
    width: 1.5rem;
    height: 1.5rem;
    transition: all 0.35s ease-out;
  }
  .checkbox-custom__label--svg svg {
    position: absolute;
    left: 4px;
    top: 3px;
    width: 15px;
    height: 15px;
  }
  .checkbox-custom__label--svg .path {
    stroke-dashoffset: 111.46px;
    stroke-dasharray: 111.46px;
    stroke: #cb397a;
    transition: all 0.35s ease-out;
  }

  .btn.link {
    margin-top: 3rem;
  }

/* Two factor authentication elements */
/* account page */
#enabled2FAText {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#enable2FAText ol li {
    margin-top: 1rem;
}

#code2FA {
    width: 100%;
    margin-bottom: 0.5rem;
}

#code2FA + #enable2FAButton {
    width: 100%;
    background-color: #cb397a;
    border: #ba316e;
}


#code2FA + #enable2FAButton:hover {
    background-color: #cb397a50;
    border: #ba316e;
}

.f {
    display: flex;
}

.f_col {
    flex-direction: column;
}

.g-2 {
    gap: 1rem;
}

.twoFactorStatus[data-2fa="true"] {
    color: green;
}

.twoFactorStatus[data-2fa="false"] {
    color: red;
}

/* 2FA sign-in page */
#form-2facode div.horizontal {
    margin-top: 2rem;
}

#form-2facode label[for="code"] {
    align-items: start;
    margin-bottom: 0.5rem;
}
/* #form-2facode label[for="trust"] {
    align-self: start;
} */

#form-2facode div.horizontal .check2fa {
    margin-top: 2rem;
}

#form-2facode div.horizontal div label[id="checkbox"], input[type="submit"] {
    width: 100%;
    background-color: #cb397a;
}

label {
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
  }
  
  .sr-only {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
  }
  
  .checkbox-custom {
    position: relative;
  }
  
  .checkbox-custom__label {
    cursor: pointer;
    display: inline-block;
  }
  .checkbox-custom__label:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 1.25rem;
    height: 1.25rem;
  /*   border: 2px solid #f2f2f2; */
    margin-right: 0.5rem;
    border-radius: 0.25rem;
    background-color: #ffffff25;
  }
  .checkbox-custom_label:hover {
    color: #ffffff80;
  }
  
  .checkbox-custom input:focus:not(:focus-visible) {
    outline: none;
  }
  
  .checkbox-custom input:focus + .checkbox-custom__label {
    outline: solid 2px #ffffff15;
    outline-offset: 0.125rem;
  }
  
  .checkbox-custom--svg input:checked + .checkbox-custom__label--svg:before {
  /*   background: #3863d9; */
  /*   border-color: #3863d9; */
  }
  .checkbox-custom--svg input:checked + .checkbox-custom__label--svg .path {
    stroke: #cb397a;
    stroke-dashoffset: 0;
  }
  
  .checkbox-custom__label--svg {
    padding-left: 2rem;
  }
  .checkbox-custom__label--svg:before {
    position: absolute;
    left: 0;
    top: -1px;
    width: 1.5rem;
    height: 1.5rem;
    transition: all 0.35s ease-out;
  }
  .checkbox-custom__label--svg svg {
    position: absolute;
    left: 4px;
    top: 3px;
    width: 15px;
    height: 15px;
  }
  .checkbox-custom__label--svg .path {
    stroke-dashoffset: 111.46px;
    stroke-dasharray: 111.46px;
    stroke: #cb397a;
    transition: all 0.35s ease-out;
  }

  .btn.link {
    margin-top: 3rem;
  }

/* Two factor authentication elements */
/* account page */
#enabled2FAText {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#enable2FAText ol li {
    margin-top: 1rem;
}

#code2FA {
    width: 100%;
    margin-bottom: 0.5rem;
}

#code2FA + #enable2FAButton {
    width: 100%;
    background-color: #cb397a;
    border: #ba316e;
}


#code2FA + #enable2FAButton:hover {
    background-color: #cb397a50;
    border: #ba316e;
}

.f {
    display: flex;
}

.f_col {
    flex-direction: column;
}

.g-2 {
    gap: 1rem;
}

.twoFactorStatus[data-2fa="true"] {
    color: green;
}

.twoFactorStatus[data-2fa="false"] {
    color: red;
}

/* 2FA sign-in page */
#form-2facode div.horizontal {
    margin-top: 2rem;
}

#form-2facode label[for="code"] {
    align-items: start;
    margin-bottom: 0.5rem;
}
/* #form-2facode label[for="trust"] {
    align-self: start;
} */

#form-2facode div.horizontal .check2fa {
    margin-top: 2rem;
}

#form-2facode div.horizontal div label[id="checkbox"], input[type="submit"] {
    width: 100%;
    background-color: #cb397a;
}

label {
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
  }
  
  .sr-only {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
  }
  
  .checkbox-custom {
    position: relative;
  }
  
  .checkbox-custom__label {
    cursor: pointer;
    display: inline-block;
  }
  .checkbox-custom__label:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 1.25rem;
    height: 1.25rem;
  /*   border: 2px solid #f2f2f2; */
    margin-right: 0.5rem;
    border-radius: 0.25rem;
    background-color: #ffffff25;
  }
  .checkbox-custom_label:hover {
    color: #ffffff80;
  }
  
  .checkbox-custom input:focus:not(:focus-visible) {
    outline: none;
  }
  
  .checkbox-custom input:focus + .checkbox-custom__label {
    outline: solid 2px #ffffff15;
    outline-offset: 0.125rem;
  }
  
  .checkbox-custom--svg input:checked + .checkbox-custom__label--svg:before {
  /*   background: #3863d9; */
  /*   border-color: #3863d9; */
  }
  .checkbox-custom--svg input:checked + .checkbox-custom__label--svg .path {
    stroke: #cb397a;
    stroke-dashoffset: 0;
  }
  
  .checkbox-custom__label--svg {
    padding-left: 2rem;
  }
  .checkbox-custom__label--svg:before {
    position: absolute;
    left: 0;
    top: -1px;
    width: 1.5rem;
    height: 1.5rem;
    transition: all 0.35s ease-out;
  }
  .checkbox-custom__label--svg svg {
    position: absolute;
    left: 4px;
    top: 3px;
    width: 15px;
    height: 15px;
  }
  .checkbox-custom__label--svg .path {
    stroke-dashoffset: 111.46px;
    stroke-dasharray: 111.46px;
    stroke: #cb397a;
    transition: all 0.35s ease-out;
  }

  .btn.link {
    margin-top: 3rem;
  }
/* Support page - Blocks-driven FAQ groups (heading + its questions) */
.faq-section {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  margin-bottom: 2rem;
  scroll-padding-top: 4rem;
}

.faq-section__text {
  display: flex;
  flex-direction: column;
}

.faq-section__text h3 {
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  position: relative;
}

.faq-section__text h3::after {
  content: "";
  display: block;
  position: absolute;
  height: 1px;
  bottom: 0;
  width: 100%;
  background-color: rgba(180, 203, 250, 0.1);
}

.faq-section__text--center {
  text-align: center;
}

.faq-section__items {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  width: 100%;
}

@media screen and (max-width: 60rem) {
  .faq-section {
    grid-template-columns: 1fr;
  }
}

/* Support page - FAQ search */
.faq-header {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.faq-header form {
  display: flex;
  min-width: 0;
}

.faq-header input[type="text"] {
  width: 50%;
  min-width: 17rem;
  margin-left: auto;
}

@media screen and (max-width: 60rem) {
  .faq-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .faq-header input[type="text"] {
    width: 100%;
  }
}

@media screen and (max-width: 40rem) {
  .faq-header {
    grid-template-columns: 1fr;
  }
}

#faqNoResults {
  margin-bottom: 2rem;
}

porton-faq-item[hidden],
.faq-section[hidden] {
  display: none;
}

#form-2facode .form-error {
    color: red;
    margin-top: 0.5rem;
}
