@charset "utf-8";

:root {
    --color-main: #442a12;
    --color-base: #f0eccf;
    --color-pink: #a9388b;
}


html.modal {
    overflow: hidden;
}

#modal,
#modal_product {
    z-index: -1;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #240900d6;
    opacity: 0;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow-y: scroll;
    overflow-x: auto;
    padding: 3% 0;
}
@media (max-width: 768px) {
    #modal,
    #modal_product {
        overflow: scroll;
        padding: 6% 0;
    }
}
#modal.act,
#modal_product.act {
    display: block;
    z-index: 999;
    opacity: 1;
}

.modal_main,
.modal_main {
    /* width: 100%;
    max-width: 1100px; */
    width: min(90%, 1100px);
    position: relative;
    margin: 0 auto;
    padding: 60px 40px;
    color: var(--color-main);
    background-color: var(--color-base);
    border-radius: 20px;
    /* min-height: 600px; */
}
  
@media only screen and (max-width: 768px) {
    .modal_main,
    .modal_main {
      width: 90%;
      padding: 40px 1rem;
    }
}

.modal_main .answer_head {
    text-align: center;
    margin-bottom: 5%;
}
.modal_main .answer_head img {
    width: clamp( 4rem, 12%, 115px);
    margin: 0 auto;
}

.modal_main .product_title {
    margin-bottom: 20px;
}

.modal_main .answer_title img {
    margin: 0;
}
.modal_main .answer_title {
    margin-bottom: 20px;
}
.modal_main .answer_title .cat_gummy {
    width: clamp(7em, 30%, 200px);
    margin-bottom: 10px;
}
.modal_main .answer_title .cat_bossmuffin {
    width: clamp(17em, 40%, 507px);
    margin-bottom: 10px;
}
.modal_main .answer_title h2 {
    width: clamp(10em, 40%, 400px);
}
.modal_main .answer_img {
    width: 100%;
    margin-bottom: 40px;
}
.modal_main .answer_img img {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.modal_main .answer_desc {
    font-size: 1.25rem;
}
@media only screen and (max-width: 768px) {
    .modal_main .answer_desc {
        font-size: 1rem;
    }
}
.modal_main .answer_close {
    margin-top: 40px;
}
.modal_main .answer_close img {
    width: clamp( 80px, 5vw, 140px);
    margin: 0 auto;
}

.modal_main .btnClose {
    /* display: none; */
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding-top: 40px;
    color: #240904;
    font-size: 0.875rem;
    font-weight: bold;
    text-decoration: none;
}
.modal_main .btnClose::before {
    -webkit-transform: rotate(45deg);
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 40px;
    height: 2px;
    transform: rotate(45deg);
    background-color: #240904;
    content: "";
}
.modal_main .btnClose::after {
    -webkit-transform: rotate(-45deg);
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 40px;
    height: 2px;
    transform: rotate(-45deg);
    background-color: #240904;
    content: "";
}
@media only screen and (max-width: 768px) {
    .modal_main .btnClose::before,
    .modal_main .btnClose::after {
        width: 20px;
    }
    .modal_main .btnClose {
        top: 20px;
        right: 20px;
        width: 20px;
        height: 20px;
        padding-top: 20px;
      /* display: none;
      -webkit-transform: translate(-50%, -50%);
      top: auto;
      right: auto;
      bottom: 20px;
      left: 50%;
      transform: translate(-50%, -50%); */
    }
}

.modal_main .js-btnClose {
    cursor: pointer;
}