:root {
    --width: 480px;
    --page-width: 480px;
    --page-width-max: 480px;
    --page-side-padding: 20rem;
}
html {
    font-size: 1.28px;
}


.partner_popup {
    width: 24rem;
    height: 26rem;
    position: fixed;
    /* bottom: 65rem; */
    bottom: 75rem;
    right: 13rem;
    background: #0153F3;
    padding: 9rem;
    border-radius: 50%;
    z-index: 9999;
}
.partner_popup_content_ig > img {
    width: 100%;
    object-fit: contain;
}

.partner_popup_content_ig {
    width: 100%;
    height: 100%;
}

/* 제휴문의 팝업 모달 스타일 */
.partner-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: none !important;
    z-index: 1000;
    margin-left: 6rem;
}

.partner-modal-wrapper.active {
    display: block;
}

.partner-modal-background {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.partner-modal-container {
    width: 351.5625rem;
    min-width: 351.5625rem;
    height: 630rem;
    max-height: 90vh;
    flex-grow: 0;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    /* padding: 20rem 15rem 24rem 14rem; */
    /* border-radius: 6rem;
    border: solid 1.125rem #dee6f7;
    background-color: #f7f9fd; */
}
.partner-banner-image {
    position: relative;
}
.partner-banner-image img {
    display: block;
    width: 273.4375rem;
    height: 140.625rem;
    flex-shrink: 0;
    object-fit: cover;
}
.partner-banner-image svg {
    position: absolute;
    bottom: 4rem;
    right: 44rem;
    z-index: 10;
    width: 13rem;
    height: 12rem;
}

.partner-modal-content {
    position: relative;
}

.partner-form-header {
    text-align: center;
    margin-bottom: 18.75rem;
    margin-left: 8.25rem;
}

.partner-form-icon {
    width: 30rem;
    height: 30rem;
    margin: 0 auto 11.25rem;
}

.partner-form-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-form-title {
    font-size: 19rem;
    font-weight: bold;
    line-height: 1.25;
    letter-spacing: -0.24px;
    text-align: left;
    color: #0b2270;
}

.partner-form-subtitle {
    font-size: 13rem;
    font-weight: 500;
    line-height: 1.57;
    letter-spacing: normal;
    text-align: left;
    color: #6c727f;
    margin-top: 13rem;
}

.partner-form-tabs {
    display: flex;
    border-bottom: 1rem solid #eee;
    margin-bottom: 9rem;
    background: #fff;
}

.partner-tab {
    padding: 9rem 32rem;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    font-size: 13.5rem;
    line-height: 1.45;
    letter-spacing: -0.09px;
    text-align: center;
    color: #000;
}

.partner-tab.active {
    color: #0153f3;
    font-weight: bold;
}

.partner-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2rem;
    background: #dee4f7;
}

.partner-tab.active::after {
    background: #004ce0;
}

.partner-form-group {
    margin-bottom: 3rem;
}

.partner-form-input,
.partner-form-textarea {
    width: 100%;
    height: 38rem;
    padding: 9rem 14rem;
    border: 1px solid #eee;
    border-radius: 4rem;
    font-size: 13rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.partner-form-input:focus,
.partner-form-textarea:focus {
    outline: none;
    border-color: #004ce0;
}

.partner-form-textarea {
    resize: vertical;
    min-height: 81.75rem;
}

.partner-form-submit {
    margin-top: 13.5rem;
    width: 100%;
    height: 36rem;
    background: #004ce0;
    color: #fff;
    border: none;
    border-radius: 6rem;
    font-size: 15rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0 0 22.5px 0 rgba(117, 112, 255, 0.08);
}

.partner-form-submit:hover {
    background: #003db3;
}

.partner-form-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.partner-modal-close-btn {
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 18rem;
    height: 18rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: block;
    padding: 10rem;
    box-sizing: content-box;
}

.partner-modal-close-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
} 


/* mobile 481px 이상 */
@media (min-width: 481px) {
#wrap{margin: 0 auto;}
}

/* PC 751px 이상 */
@media (min-width: 751px) {
    #wrap{
        width: 791rem;
        max-width: 791rem;
        margin: 0 auto;
        position: relative;
    }  
    #wrap_container {
        width: var(--page-width);
        max-width: var(--page-width-max);
        margin: 0 auto;
        min-height: 100vh;
        overflow: auto;
        padding-left: 323rem;
        background: #F5F5F5;
    }            
    .partner_popup {
        width: 22.3rem;
        bottom: 59.6rem;
        right: 12.8rem;
        padding: 9.5rem;
        display: block;
    }
    .partner-modal-wrapper{
        width:auto;
        display: block !important;
        left: auto;
    }

    .partner-modal-wrapper.active {
        display: block !important;
    }

    .partner-modal-background {
        width: 100%;
        height: 100%;
        background-color: transparent;
        display: -webkit-flex;display: flex;-webkit-align-items: center;align-items: center;
    }

    .partner-modal-container {
        width: 351.5625rem;
        min-width: 351.5625rem;
        height: 630rem;
        max-height: 90vh;
        overflow-y: auto;
        overflow-x: hidden;
        /* padding: 22rem 17rem 23rem 16rem; */
        /* border-radius: 8rem;
        border: solid 1.625rem #dee6f7; */
    }
    .partner-banner-image {
        position: relative;
        margin-left: 38rem;
    }
    .partner-banner-image img {
        display: block;
        width: 273.4375rem;
        height: 140.625rem;
        flex-shrink: 0;
        object-fit: cover;
        
    }
    .partner-banner-image svg {
        position: absolute;
        bottom: 4rem;
        right: 44rem;
        z-index: 10;
        width: 13rem;
        height: 12rem;
    }
    .partner-logo-section {
        margin-top: 11.40625rem;
        align-self: stretch;
    }

    .partner-logo-section p {
        align-self: stretch;
        color: #2D2D2D;
        text-align: center;
        font-family: Pretendard;
        font-size: 10.9375rem;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }
    .partner-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7.8125rem;
        align-self: stretch;
        width: 215.625rem;
        height: 34.375rem;
        margin: 0 auto;
    }
    .partner-categories {
        margin-top: 23.91rem;
        padding: 0 62rem;
        width: 226.58rem;
    }   
    .partner-categories h3 {
        color: #2D2D2D;
        text-align: center;
        font-family: Pretendard;
        font-size: 12.5rem;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
        margin-bottom: 15.625rem;
    }
    .partner-app-download {
        margin-top: 23.44rem;
        padding: 0 20rem;
    }
    .partner-app-download h3 {
        color: #2D2D2D;
        text-align: center;
        font-family: Pretendard;
        font-size: 12.5rem;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
        margin-bottom: 3.91rem;
    }
    
    .qr-codes {
        display: flex;
        justify-content: center;
        gap: 11.71875rem;
    }
    
    .qr-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7.8125rem;
    }
    
    .qr-item > img:first-child {
        width: 58.59375rem;
        height: 58.59375rem;
        aspect-ratio: 1/1;
        /* border: 1px solid #E5E5E5;
        border-radius: 7.8125rem; */
    }
    
    .qr-item .store-badge {
        width: 58.20313rem;
        height: 19.14063rem;
        object-fit: contain;
    }
    
    .partner-inquiry-footer {
        margin-top: 15.63rem;
        padding: 0 20rem 27.34375rem;
    }
    
    .partner-inquiry-footer p {
        color: #787878;
        text-align: center;
        font-family: Pretendard;
        font-size: 9.375rem;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        text-decoration-line: underline;
        text-decoration-style: solid;
        text-decoration-skip-ink: auto;
        text-decoration-thickness: auto;
        text-underline-offset: auto;
        text-underline-position: from-font;
    }
    
    .category-list {
        display: flex;
        flex-direction: column;
        gap: 7.8125rem;
    }
    
    .category-item {
        display: flex;
        align-items: center;
        height: 23.4rem;
        padding: 4.8125rem 11.71875rem;
        /* background: #F8F9FA; */
        /* border-radius: 31.25rem; */
        gap: 11.71875rem;
        border-radius: 56.25rem;
        background: #FFF;
        box-shadow: 0 0 5px 0 rgba(1, 83, 243, 0.30);
    }
    
    .category-number {
        color: var(--_, #0153F3);
        font-family: Pretendard;
        font-size: 12.5rem;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
    }
    
    .category-name {
        flex: 1;
        color: #454545;
        font-family: Pretendard;
        font-size: 10.9375rem;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
    }
    
    .category-arrow {
        width: 14.0625rem;
        height: 11.71875rem;
        text-align: right;
    }
    
    .category-arrow.up {
        color: #0153F3;
    }
    
    .category-arrow.down {
        color: #A3C5FF;
    }
    
    .category-arrow.neutral {
        color: #6C757D;
        font-size: 10rem;
    }
    
    .partner-form-header {
        margin-bottom: 20rem;
        margin-left: 10rem;
    }

    .partner-form-icon {
        width: 32rem;
        height: 32rem;
        margin: 0 auto 13.25rem;
    }

    .partner-form-tabs {
        margin-bottom: 11rem;
    }

    .partner-tab {
        padding: 11rem 16rem;
        font-size: 15rem;
    }

    .partner-form-group {
        margin-bottom: 5rem;
    }

    .partner-form-input,
    .partner-form-textarea {
        height: 40rem;
        padding: 11rem 12rem;
        border-radius: 4rem;
        font-size: 12rem;
    }

    .partner-form-textarea {
        min-height: 85rem;
    }

    .partner-form-submit {
        margin-top: 7rem;
        height: 34rem;
        border-radius: 4rem;
        font-size: 13rem;
    }


    .partner-modal-close-btn {
        display: none;
    }
}