#section_service .service_select_wrap {
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    gap: 64px;
    padding: 30px 0 120px 0;

    h1 {
        font-size: 40px;
    }
}

#section_service .form_service_select {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 64px;
}

/* form- toggle */
#section_service .form_service_select_header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;

    .btn_go_to_manage {
        position: absolute;
        right: 0;
        line-height: 40px;
    }
}

#section_service .section_service_toggle_box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /*align-self: center;*/
    width: fit-content;

    .discount_float_tooltip {
        position: relative;
        left: calc(100% - 109px);
        width: 82px; height: 30px;
        font-size: 16px !important;
        font-weight: 500;
        text-align: center;
        line-height: 24px;
        color: #F65252; /* --red-red-08 */
        background: #FFEBEB; /* --red-red-03 */
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 12px;

        animation: bounce 1s ease-in-out infinite alternate;
    }

    .discount_float_tooltip::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: #FFEBEB;
    }

    .toggle_period_wrap {
        display: inline-flex;
        background-color: #F1F1F5; /*--blue-gray-blue-gray-03 */
        padding: 8px;
        align-self: center;
        border-radius: 10px;
    }
}


#section_service input[name='period'] { display: none; }

#section_service .btn_select_period {
    display: inline-block;
    width: 120px;
    height: 37px;
    text-align: center;
    line-height: 37px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    border-radius: 7px;
    transition: all 0.2s ease;
    background-color: transparent;
}

#section_service input[name='period']:checked ~ .btn_select_period {
    background-color: #fff;
    color: #111;
}

/* form - list */
#section_service .service_item { display: none; }
#section_service .service_item.active { display: block; }

#section_service
.service_monthly_items, .service_annually_items {
    max-width: 1280px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 32px;
}

#section_service
.service_monthly_item, .service_annually_item {
    position: relative;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #EDEDED;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 24px;

    .tag {
        position: absolute;
        top: 20px;
        right: 0;
        padding: 3px 5px 3px 16px;
        font-size: 16px;
        font-weight: 600;
        color: #fff;
    }

    .tag::before {
        content: '';
        position: absolute;
        top:0; left:0;
        border-top: 16px solid transparent;
        border-bottom: 16px solid transparent;
        border-left: 10px solid #fff; /* 박스 배경색과 맞춤 */
    }

    .tag.green { background: #24B283; } /* --green-green-08 */
    .tag.yellow { background: #FA0; } /* --yellow-yellow-09 */
    .tag.purple { background: #9D7BFF; } /* --purple-purple-08 */

    .new_btn01 {
        width: 256px;
        height: 32px;
    }

    .new_btn07 {
        width: 256px;
        height: 40px;
    }

    .new_btn03 { cursor: unset; }
}

#section_service .service_hidden_check {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

#section_service
.service_monthly_item:has(.service_hidden_check:checked),
.service_annually_item:has(.service_hidden_check:checked) {
    /*outline: 2px solid #4294FF; !* --blue-blue-08 *!*/
    border: 1px solid #4294FF;

    .new_btn07 {
        border: none;
        background: #4294FF;
        color: #fff;
    }
}

#section_service .service_item_top {
    h2 {
        font-size: 24px;
        font-weight: 700;
        color: #111;
    }

    p {
        font-size: 15px;
        font-weight: 500;
        color: #333;
        margin: 6px 0 12px 0;
    }
}

#section_service .service_item_top.bbr {
    min-width: 256px;
    min-height: 120.5px;
}

.service_item_divider {
    height: 1px;
    align-self: stretch;
    background: #EDEDED;
}

#section_service .service_item_bottom {
    .discount_wrap {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 16px;

        span {
            color: #fff;
            font-weight: 700;
            border-radius: 4px;
            padding: 2px 8px;
            background: #F65252; /* --red-red-08 */
        }

        s {
            color: #767676; /* --gray-gray-09 */
        }
    }

    .price_wrap {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #111;

        .price {
            font-size: 32px;
            font-weight: 700;
            line-height: 1.5;
        }

        .subs_period { font-size: 16px; }
    }

    .price_wrap_annually {
        color: #767676; /* --gray-gray-09 */
    }
}

#section_service .service_item_bottom.bbr {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#section_service .submit_subscription_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: center;
    width: 623px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: #303133;
    border-radius: 8px;
    padding: 12px 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;

    span { color: #4294FF; } /* --blue-blue-08 */
}

#section_service .submit_subscription_wrap.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width:1399px) {
    #section_service
    .service_monthly_item, .service_annually_item {
        .tag {
            /*top: 12px;*/
            width: 81px;
        }

        .new_btn01 {
            width: 178.5px;
            height: 32px;
        }

        .new_btn07 {
            width: 178.5px;
            height: 40px;
        }
    }

    #section_service .service_item_top.bbr {
        min-width: 178.5px;
        min-height: 143px;
        margin-top: 17px;
    }

    /*#section_service*/
    /*.service_monthly_item:has(.tag), .service_annually_item:has(.tag) {*/
    /*    padding: 40px 20px 20px 20px;*/
    /*}*/

    #section_service .service_item_bottom {
        .discount_wrap {
            flex-direction: column-reverse;
            align-items: flex-start;
        }
    }
}

/* animation */

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}