* {
    box-sizing: border-box;
}
body {
    line-height: 1.7;
    margin: 0;
    background: #f7f7f7;
    font-family: sans-serif;
    font-size: 14px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    height: 36px;
    background: #eee;
    border: 0;
    border-radius: 3px;
    padding-left: 5px;
    transition: 150ms;
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.03);
    outline: 0;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus {
    background: #fff;
    box-shadow: 0 0 0 1.5px #5d94e2;
}

a {
    color: #41bad8;
}

.button,
.large-button {
    min-height: 38px;
    background: #5d94e2;
    border: 0;
    border-radius: 18px;
    color: #fff;
    transition: 150ms;
}
.large-button.secondary {
    background: #747b84;
}
.button {
    padding-left: 1em;
    padding-right: 1em;
}
.large-button {
    width: 100%;
}
.button,
.large-button:active {
    background: #497ec7;
}
.button.secondary,
.large-button.secondary:active {
    background: #5b6571;
}

.spacer {
    flex: 1;
}

.hidden {
    display: none;
}

.common-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f7f7f7;
    padding: 80px 20px 20px 20px;
    overflow: hidden;
    transition: 150ms;
    z-index: 10000;
}
.common-menu:not(.open) {
    opacity: 0;
    bottom: 100%;
    pointer-events: none;
}
.common-menu nav a {
    display: block;
    padding: 12px 0;
    color: #444;
    font-size: 16px;
    text-decoration: none;
}
.common-menu nav a:not(:last-child) {
    border-bottom: solid 1px rgba(0, 0, 0, 0.15);
}

.common-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    background: #5d94e2;
    color: #fff;
}
.common-header .site-name {
    padding-left: 12px;
    font-size: 22px;
    color: inherit;
    text-decoration: none;
}
.common-header .menu-button {
    position: fixed;
    top: 8px;
    right: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    background: #fff;
    border-radius: 4px;
    font-size: 26px;
    color: #222;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
    z-index: 20000;
}
.common-header .menu-button:active {
    background: #c8d2df;
}

.common-footer {
    background: #e7e7e7;
    border-top: solid 1px #bbb;
}
.common-footer nav a {
    display: block;
    padding: 8px 16px;
    color: #444;
    text-decoration: none;
    border-bottom: solid 1px #bbb;
}
.common-footer .copyright {
    margin-top: 16px;
    font-size: 80%;
    text-align: center;
}

.page-title {
    background: #bfd3f2;
    padding: 16px 0 12px;
    text-align: center;
}
.page-title h1 {
    line-height: 1.2;
    margin: 0;
    font-size: 22px;
}
.page-title .sub-title {
    font-size: 13px;
    color: #536c92;
}

.common-error-message {
    padding: 100px 20px 80px;
    text-align: center;
}

main {
    display: block;
    min-height: calc(100vh - 310px);
}
.page-content {
    padding: 0 12px;
}

.page-top-message {
    background: #d7eacc;
    border-radius: 4px;
    margin-top: 12px;
    padding: 12px 16px;
}

.placeholder {
    height: 100px;
    background: #ddd;
    border-radius: 8px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    transition: 200ms;
}
.loading-overlay:not(.active) {
    opacity: 0;
    pointer-events: none;
}
.loading-circle {
    width: 64px;
    height: 64px;
    border: solid 5px #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: loading-circle 0.5s infinite linear;
}
@keyframes loading-circle {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(1turn);
    }
}

.common-message {
    padding: 12px 0;
}

.sign-in-panel {
    padding-top: 40px;
}

.common-form section {
    padding: 8px 0;
}
.common-form.splitted > section {
    padding: 16px 0;
    border-bottom: solid 1px #aaa;
}
.common-form section > .label {
    font-size: 90%;
}
.common-form section > .value input {
    width: 100%;
}
.common-form section > .value .note {
    padding-top: 3px;
    font-size: 80%;
    color: #4271b7;
}
.common-form section > .value .error {
    font-size: 80%;
    color: #d12b49;
}
.common-form section > .value .static-form-data {
    border: solid 1px #ddd;
    padding: 3px;
}
.common-form .operation {
    display: flex;
    justify-content: center;
    padding: 16px 0;
}
.common-form .operation .large-button {
    width: 90%;
}
.common-form .error-message {
    margin-top: 12px;
    color: #e5626d;
}
.common-form .error-message i {
    margin-right: 0.5em;
}
.common-form.boxed-label section .label {
    width: fit-content;
    background: #666;
    color: #fff;
    padding: 1px 10px;
    border-radius: 3px 3px 0 0;
}

.vertical-menu {
    padding: 10px 0;
}
.vertical-menu > * {
    display: block;
}
.vertical-menu > *:not(:last-child) {
    margin-bottom: 12px;
}

.wallpapers {
    padding: 16px 0;
}
.wallpapers .wallpaper {
    display: block;
    background: #eee;
    border-radius: 5px;
    margin-bottom: 12px;
    padding: 12px;
    text-decoration: unset;
    color: inherit;
}
.wallpapers .wallpaper:not(:last-child) {
    margin-bottom: 12px;
}
.wallpapers .wallpaper img {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 5px;
}

.simple-pager {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.document-links {
    padding-top: 32px;
}
.document-links section {
    display: flex;
    align-items: flex-start;
    padding: 8px 6px;
}
.document-links section input {
    margin: 4px 12px 0 0;
}

.sub-panel:not(.active) {
    display: none;
}

.credit-card-logos {
    background: #fff;
    border-bottom: solid 1px #aaa;
    padding: 10px 0;
    text-align: center;
}
.credit-card-logos img {
    width: 200px;
}

.front-price {
    background: #5d94e2;
    padding: 12px 0;
    color: #fff;
    text-align: center;
}
.front-price .price {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
}
.front-price .price small {
    margin-left: 10px;
    font-size: 20px;
}

.credit-bpm-sign-up-panel .card-exp-month {
    width: 50px !important;
}
.credit-bpm-sign-up-panel .card-exp-year {
    width: 100px !important;
}

#page-credit-intercredit-completed .content {
    padding: 16px 12px;
}
#page-credit-intercredit-completed .content .message {
    margin-bottom: 10px;
}

#page-credit-intercredit-cancelled .content {
    padding: 16px 12px;
}
#page-credit-intercredit-cancelled .content .message {
    margin-bottom: 10px;
}
