* {
    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"],
select {
    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,
select {
    background: #fff;
    box-shadow: 0 0 0 1.5px #5d94e2;
}

a {
    color: #41bad8;
}

.button,
.large-button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 38px;
    background: #5d94e2;
    border: 0;
    border-radius: 18px;
    color: #fff;
    transition: 150ms;
    text-decoration: none;
}
.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 :where(input, select) {
    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;
}

.charge-value-section {
    background: #e4f0fc;
    border-bottom: unset !important;
    border-radius: 5px;
    margin: 10px 0;
    padding: 20px 12px !important;
}

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

.wallpapers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 0;
}
.wallpapers .wallpaper {
    position: relative;
    display: block;
    background: #eee;
    border: solid 1px #ddd;
    border-radius: 5px;
    margin-bottom: 12px;
    text-decoration: unset;
    color: inherit;
    aspect-ratio: 1 / 1.5;
}
.wallpapers .wallpaper:not(:last-child) {
    margin-bottom: 12px;
}
.wallpapers .wallpaper img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}
.wallpapers .wallpaper .purchased {
    position: absolute;
    top: -4px;
    left: -4px;
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 6px;
    background: #e53757;
    border-radius: 3px;
    margin-right: 4px;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.category-section {
    background: #eee;
    border: solid 2px #666;
    margin: 24px 12px 48px;
    border-radius: 4px;
}
.category-section .category-header {
    background: #666;
    padding: 0 10px;
    color: #fff;
    font-size: 150%;
    text-align: center;
}
.category-section .category-footer {
    padding: 0 12px 12px;
}
.category-section .no-contents {
    padding: 40px 0;
    text-align: center;
    color: #777;
}
.category-section .wallpaper-container {
    padding: 0 10px;
}

.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;
}

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

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

.plan-list section {
    display: flex;
    align-items: center;
    background: #5d94e2;
    color: #fff;
    padding: 16px 12px;
}
.plan-list section:nth-child(even) {
    background: #4b7ec7;
}
.plan-list section .name {
    width: 40%;
    margin-right: 12px;
    font-size: 15px;
    text-align: right;
}
.plan-list section .price {
    display: flex;
    align-items: center;
}
.plan-list section .price strong {
    margin-right: 8px;
    font-size: 26px;
}

.wallpaper-info {
    display: flex;
    border: solid 2px #ddd;
    border-radius: 5px;
    padding: 5px;
}
.wallpaper-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
}
.wallpaper-info .title {
    flex: 1;
}

.point-balance {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: 32px;
    background: #4b7ec7;
    border-radius: 16px;
    margin: auto;
    margin-top: 12px;
    padding: 0 16px;
    color: #fff;
    text-decoration: none;
}
.point-balance .label {
    margin-right: 10px;
    font-size: 12px;
}
.point-balance .data {
    display: flex;
    align-items: center;
    color: yellow;
}
.point-balance .data strong {
    margin-right: 4px;
    font-size: 20px;
}

#page-sign-up-plans .sections {
    padding: 10px 0;
}
#page-sign-up-plans .sections section {
    padding: 20px 0;
}
#page-sign-up-plans .sections section:not(:last-child) {
    border-bottom: solid 1px #ddd;
}
#page-sign-up-plans .sections section select {
    width: 100%;
    height: 32px;
    margin-top: 6px;
}
#page-sign-up-plans .static-plan:not(.active) {
    display: none;
}
#page-sign-up-plans .static-plan .static-plan-name {
    background: #ddd;
    border-radius: 3px;
    padding: 6px 8px;
}

#page-purchase .top-message {
    margin: 20px 0 10px;
}
#page-purchase .wallpaper-info {
    margin-bottom: 32px;
}

#page-sign-in-sms .sub-panel {
    padding: 80px 12px 42px;
}
#page-sign-in-sms input {
    width: 100%;
    margin: 6px 0;
}
#page-sign-in-sms .operations {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}
#page-sign-in-sms .operations .large-button {
    width: 70%;
    margin-bottom: 20px;
}

#page-wallpaper .wallpaper-image {
    display: block;
    width: 100%;
    margin-bottom: 12px;
}
