@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&display=swap");

.area {
    height: calc(var(--vh, 1vh) * 100);
    padding-bottom: 80px;
}

.back {
    pointer-events: none;
    opacity: 0;
}

.cont {
    display: grid;
    -webkit-column-gap: 16px;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
    -webkit-justify-content: space-around;
    justify-content: space-around;
    /*grid-auto-rows: 250px;*/
}

.cont .item {
    background: #f8f8f8;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: pointer;
}

.cont .item:hover {
    background: #f5f5f5;
}

.cont .item img {
    width: 80%;
    /*min-width: 65px;*/
}

.cont .item .flower_name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 10px;
    word-break: break-all;
}

.cont .item .flower_price {
    font-size: 1rem;
    padding: 4px 0;
    word-break: break-all;
    font-weight: 500;
}

.footer {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translate(-50%, 0);
    width: calc(100% - 32px);
    max-width: 448px;
}

.footer button {
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #b1b1b1;
    background: #fff;
}

.footer button:hover {
    background: #1a242d;
    color: #e0b433;
    border: none;
    font-weight: 500;
}

/* 모달 */
/*.area.modal-open .modal {*/
/*    top: 0;*/
/*    z-index: 2000;*/
/*}*/

.modal.active {
    top: 0; /* 화면에 나타나도록 조정 */
    opacity: 1;
    visibility: visible; /* 보이게 설정 */
    z-index: 2000;
}

.modal {
    max-width: 480px;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s ease-in-out;
}

.app .modal-body {
    width: 100%;
    height: 350px;
    position: absolute;
    bottom: -100px;
    background: #fff;
    border-radius: 52px 52px 0 0;
    padding: 16px 16px 100px;
    box-shadow: 0px -5px 20px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transition: all 0.5s ease-in-out;
}

.app.active .modal-body {
    bottom: 0;
    opacity: 1;
}

.app .modal-footer {
    position: fixed;
    bottom: -100px;
    left: 16px;
    width: calc(100% - 32px);
}

.app .modal-footer button {
    width: 100%;
    padding: 12px;
    background: #1a242d;
    color: #fff;
    border-radius: 16px;
}

.app .modal-footer button:hover {
    color: #e0b433;
    font-weight: 600;
}

.modal.active .modal-footer {
    bottom: 20px;
    transition: all 0.5s ease-in-out;
}

.app .modal-body .header {
    position: relative;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.app .header img {
    width: 70px;
    border-radius: 16px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.app .header h2 {
    text-align: center;
    font-size: 1.5rem;
}

.app a:hover {
    color: #e0b433;
}

.outside_modal {
    height: 100%;
    position: relative;
}

.outside_modal p {
    position: absolute;
    bottom: 350px;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.8rem;
    white-space: nowrap;
    word-break: keep-all;
    background: #00000070;
}

.outside_modal p:hover {
    background: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

/*공지사항모달*/
.notice .modal-body {
    width: 80%;
    min-height: 350px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transition: all 0.5s ease-in-out;
}

.modal.notice.active .modal-body {
    opacity: 1;
}

.notice .modal-body .header,
.notice .modal-body .body,
.notice .modal-body .modal-footer {
    width: 100%;
}

.notice .modal-body .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.notice .modal-body .header .title {
    flex: 1;
    font-weight: 600;
    font-size: 18px;
    color: #222;
}

.notice .modal-body .header .closed {
    display: flex;
    justify-content: end;
    flex: 1;
    cursor: pointer;
    position: relative;
    font-size: 1.3rem;
}

.notice .modal-body .body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notice .modal-body .body .body_title {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}

.notice .modal-body .body .body_title img {
    width: 24px;
    margin-right: 5px;
}

.notice .modal-body .body .body_title span {
    font-size: 24px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.notice .modal-body .body .body_cont {
    padding: 0 16px 32px 16px;
}

@media (max-width: 400px) {
    .cont {
        /*grid-auto-rows: 230px;*/
    }
}

@media (max-width: 360px) {
    .cont .item .flower_name {
        font-size: 1.1rem;
    }
}
