@charset "UTF-8";

.modal.fix {
	width: 100%;
	height: 100dvh;
	position: fixed;
	top: 0;
	left: 0;
	background: hsla(320, 80%, 60%, .7);
	z-index: 9999;
	display: flex;
    justify-content: right;
    border: none;
	* {
		font-size: 1.4rem;
	}
    > button.close[class*=material-symbols] {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2rem;
		top: 10px;
		left: 10px;
        position: absolute;
		border: 1px solid #fff;
		background: #000;
		aspect-ratio: 1 / 1;
		border-radius: 50%;
		width: 50px;
		color: #fff;
    }
	.inner {
		min-width: 300px;
		max-width: 400px;
		width: 80%;
        display: flex;
        flex-direction: column;
		background: #fff;
		padding-top: 16px;
		border-top: 5px var(--col1-50) solid;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
	}
    .inner > :is(a, .subject) {
		width: 100%;
		padding: 4px 8px;
		border-bottom: var(--col1-50) dotted 1px;
    }
    .inner .subject {
        font-weight: bold;
        border: none;
        margin-top: 16px;
    }
}

.modal.fix.close {
	display: none;
}


.modal.fix .center-wrap  {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100dvh;
    .inner {
        padding-block: 0px 16px;
        display: flex;
        border-radius: 5px;
        gap: 8px;
        min-height: 250px;
        max-height: calc(100dvh - 150px);
        border: none;
    }
}


.modal.fix.async :is(.hotel-follow, .shop-follow, .member-form) .inner,
.modal.fix .member .inner {
    border: 1px solid #fff;
    .head-line {
        display: flex;
    }
    .head-line .label {
        padding-block: 8px;
        margin-top: 0;
        background: var(--col1-50);
        color: #fff;
        border-radius: 0 5px 0 0;
        flex-grow: 1;
        font-weight: bold;
        padding-inline: 8px;
        align-content: center;
    }
    .head-line *[class*=material-symbols] {
        font-size: 2.2rem;
        border-radius: 5px 0 0 0;
        aspect-ratio: 1 / 1;
        width: 40px;
        background: #000;
        color: #fff;
    }
    .item {
        display: flex;
        gap: 16px;
        padding: 4px 8px;
        border-bottom: 1px dotted #999;
    }
    .item *[class*=material-symbols] {
        flex-shrink: 1;
        background: var(--col1-50);
        font-size: 2rem;
        font-weight: normal;
        margin: 0;
        padding: 0;
        border-radius: 5px;
        line-height: 1;
        color: #fff;
        text-decoration: none;
        padding: 4px;
        text-decoration: none;
    }
}

.modal.fix .member .inner button.logout {
    width: 250px;
    margin-inline: auto;
    padding: 8px 16px;
    border-radius: 50px;
    background: #ccc;
    color: #000;
    margin-top: 34px;
}


.modal.fix.async :is(.hotel-follow, .shop-follow, .member-form) .inner div.selector {
    display: flex;
    gap: 4px;
    > * {
        background-color: #fff;
        font-size: 1.4rem;
        flex-grow: 1;
        padding: 16px;
        border: 1px solid var(--colgray-60);
        border-radius: 5px 5px 0 0;
        z-index: 1;
    }
    > *.focus {
        border-bottom-color: #fff;
    }
}

.modal.fix.async :is(.hotel-follow, .shop-follow, .member-form) .inner .in-form {
    padding: 24px 8px;
    margin-top: -9px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    h2 {
        background: var(--colgray-30);
        color: #fff;
        border-radius: 5px;
        line-height: 1;
        padding: 8px;
    }
    form {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    :is(input[type=text], input[type=password]) {
        padding: 4px;
        border-radius: 0;
        border-width: 1px;
    }
    button {
        margin-top: 16px;
        margin-inline: auto;
        max-width: 200px;
        background: #000;
        color: #fff;
        border-radius: 50px;
    }
}