@font-face {
    font-family: 'AvenirDemi';
    src: url("../fonts/AvenirNextLTPro-Demi.otf?5551");
}

@font-face {
    font-family: 'AvenirRegular';
    src: url("../fonts/AvenirNextLTPro-Regular.otf?5551");
}

@font-face {
    font-family: 'AvenirBold';
    src: url("../fonts/AvenirNextLTPro-Bold.otf?5551");
}

.top_title {
    margin: 20px 0;
    font-family: AvenirDemi;
    text-align: center !important;
    font-size: 30px;
    line-height: 32px !important;
    color: #000;
}

.sungroup .sg_promos {
    display: flex;
    flex-wrap: wrap;
    max-width: 1360px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.sungroup .sg_content h3 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 15px;
    font-family: Roboto;
    text-align: center;
}

.sungroup .sg_content {
    width: 100%;
    max-width: 100%;
    display: block;
}

.sungroup .sg_box {
    position: relative;
    width: 338px;
    border: 1px dashed #0A4595;
    font-size: 32px;
    font-weight: 700;
    color: #0A4595;
    line-height: 95% !important;
    text-transform: uppercase;
    padding: 10px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.sungroup .sg_box::before {
    content: "";
    background-image: url('https://www.mediaexpert.pl/lp/promocje/kody-rabatowe/resources/images/cut.png?1');
    background-repeat: no-repeat;
    width: 18px;
    height: 25px;
    top: 23px;
    left: -9px;
    position: absolute;
}

.sungroup .sg_box {
    font-size: 32px;
    font-weight: 700;
    color: #0A4595;
    line-height: 95% !important;
    text-transform: uppercase;
}

.sg_box img {
    max-width: 220px;
    width: 100%;
    height: auto;
    max-width: 327px;
    max-height: 248px;
}

.sg_copy_s {
    font-size: 15px;
    margin: 5px auto;
    position: relative;
}

.sungroup .sg_copy {
    cursor: pointer;
    font-size: 15px;
    margin-bottom: 5px;
    position: relative;
}

.sungroup .sg_kod {
    font-family: 'AvenirBold';
}

.sungroup .sg_kod {
    font-size: 24px;
    display: block;
    border: 1px dashed #0A4595;
    padding: 5px 0;
    background-color: #ffffff;
}

.sungroup .sg_icopy {
    position: absolute;
    color: green;
    height: 20px;
    font-weight: normal !important;
    font-family: 'AvenirDemi';
    background: #fff;
    border: 4px solid #0A4595;
    width: auto;
    padding: 1px 10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: unset;
    top: -35px;
    display: flex;
    align-items: center;
    opacity: 0;
}

a.sg_sprawdz {
    color: #fff;
    font: 400 15px/50px robotoregular, Arial, sans-serif;
    font-size: 15px;
    line-height: 50px;
    z-index: 5;
    margin: auto auto auto;
    font-size: 18px;
    background-color: #0A4595;
    /* max-width: 250px; */
    width: 100%;
    position: relative;
    display: flex;
    box-sizing: border-box;
    text-decoration: none;
    /* min-height: 50px; */
    justify-content: center;
}

.sungroup .sg_cond, .sungroup .sg_right {
    font-family: 'AvenirRegular';
}

.sungroup .sg_cond {
    margin-top: 15px;
    font-size: 0.8em;
}

.sungroup .sg_copy {
    cursor: pointer;
    font-size: 15px;
    margin-bottom: 5px;
    position: relative;
}

.sungroup .sg_copy:hover {
    text-decoration: underline;
}

.sungroup .sg_icopy_done {
    animation: copydone 2s linear;
}

@keyframes copydone {
    0% {
        top: -35px;
        opacity: 0;
    }
    25% {
        top: -35px;
        opacity: 1;
    }
    50% {
        top: -35px;
        opacity: 1;
    }
    75% {
        top: -35px;
        opacity: 1;
    }
    100% {
        top: -35px;
        opacity: 0;
    }
}

.sungroup .sg_kod {
    font-size: 24px;
    display: block;
    border: 1px dashed #0A4595;
    padding: 5px 0;
    background-color: #ffffff;
}

.sungroup .sg_right {
    border: 0;
    padding: 0;
}

@media(min-width:1000px) {
    .sungroup .sg_content, .sungroup .sg_cond {
        text-align: center !important;
    }
    .sungroup .sg_promo {
        box-sizing: border-box;
        display: flex;
        flex-flow: wrap;
        padding: 20px;
        width: calc(50% - 40px);
        margin: 10px;
        border: 1px solid #e2e2e2;
        font-weight: 400;
        color: #000000;
        background: #ffffff;
        font-size: 18px;
        flex-basis: calc(50% - 20px);
        display: flex;
        align-items: center;
    }
    .sungroup .sg_left, .sungroup .sg_right, .sungroup .sg_box, .sungroup .sg_content {
        display: inline-block;
        vertical-align: middle;
        height: auto;
    }
    .sungroup .sg_right, .sungroup .sg_left {
        width: 100%;
        max-width: 60%;
    }
    .sungroup .sg_right {
        width: 35%;
        margin: auto;
    }
    .sungroup .sg_box {
        width: 100%;
    }
}

.sungroup .sg_promo {
    font-family: 'AvenirDemi';
    /* font-family: 'AvenirRegular'; */
}

.sungroup .sg_cond, .sungroup .sg_right {
    /* font-family: 'AvenirDemi'; */
    font-family: 'AvenirRegular';
}

.sungroup .sg_kod {
    font-family: 'AvenirBold';
}

.sungroup .sg_content h3 {
    font-size: 24px;
    font-weight: 500;
}

.sungroup .sg_content h5 {
    font-size: 21px;
    font-weight: 500;
}

.sungroup .sg_promo {
    padding: 10px;
    width: calc(50% - 40px);
    margin: 10px;
    border: 1px solid #e2e2e2;
    font-family: 'Source Sans Pro', sans-serif, arial;
    font-weight: 400;
    color: #000000;
    background: #ffffff;
    font-size: 18px;
    box-sizing: border-box;
    flex-basis: calc(50% - 20px);
    display: flex;
    align-items: center;
}

.sungroup .sg_promo {
    display: flex;
    flex-flow: wrap;
}

.sungroup .sg_txt {
    color: #494949;
    font-size: 16px;
    padding: 20px 10px;
    line-height: 1.4em !important;
    text-align: left !important;
    max-width: 1360px;
}

@media(max-width:999px) {
    .sungroup .sg_box {
        margin: 0 auto 15px;
        display: grid;
        max-width: 350px;
        width: 100%;
    }
    .sungroup .sg_box span {
        display: block;
        font-size: 62px;
    }
    .sungroup .sg_box span br, .sungroup .sg_cond br {
        display: none;
    }
    .sungroup .sg_cond img {
        display: block;
        margin: 10px auto;
        max-width: 195px;
    }
    .sungroup .sg_right .sg_kod {
        width: 100%;
        padding: 0;
        /* min-height: 30px; */
        align-items: center;
        display: flex;
        justify-content: center;
        /* max-width: 180px; */
        width: 100%;
    }
    a.sg_sprawdz {
        /* width: 170px; */
    }
    .sungroup .sg_left {
        margin: 0 auto;
    }
    .sungroup .sg_right {
        width: 100%;
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: center;
        position: relative;
        max-width: 290px;
        margin: 0 auto;
    }
    .sungroup .sg_cond, .sungroup .sg_right {
        font-size: 16px;
    }
    .sungroup .sg_copy {
        cursor: pointer;
        font-size: 15px;
        margin-bottom: 0;
        position: relative;
        left: 0px;
        top: 0px;
        width: 100%;
        /* max-width: 180px; */
    }
}

@media(max-width:768px) {
    .sungroup .sg_content h3 {
        font-size: 15px;
    }
    .sg_content {
        height: 80px;
    }
}

@media(max-width:500px) {
    .sungroup .sg_right {
        margin: 0 auto;
    }
    .sungroup .sg_kod {
        font-size: 15px;
        box-sizing: border-box;
    }
    .sungroup .sg_promo .sg_content {
        font-weight: 400;
        font-size: 11px;
        line-height: 16px!important;
        font-family: AvenirRegular;
        width: 100%;
    }
    .sungroup .sg_box {
        margin: 0 auto 15px;
        display: grid;
        max-width: 280px;
        width: auto;
        font-weight: 400;
    }
    .sungroup .sg_cond, .sungroup .sg_right {
        font-size: 11px;
    }
    .sungroup .sg_box span {
        display: block;
        font-size: 50px;
        font-weight: 700;
    }
    .sungroup .sg_box {
        font-size: 16px;
        line-height: 23px !important;
    }
    .sungroup .sg_content {
        margin: 0 auto;
    }
    .sungroup .sg_content h3 {
        font-size: 16px;
        font-weight: 500;
        margin: 0 0 8px;
        line-height: 23px;
        font-family: 'AvenirDemi';
    }
    .sungroup .sg_content h5 {
        font-size: 13px;
        font-weight: 500;
        margin: 0 0 8px;
        font-family: 'AvenirDemi';
        line-height: 20px;
    }
    a.sg_sprawdz {
        width: auto;
        /* min-height: 35px; */
        padding: 0px 15px;
        display: flex;
        align-items: center;
        margin-top: 10px;
        margin-bottom: 0;
        /* max-width: 180px; */
        width: 100%;
        box-sizing: border-box;
        font-size: 14px;
        line-height: 16px;
    }
    .sungroup .sg_promo {
        margin: 10px auto;
        padding: 5px;
        width: calc(100% - 20px);
        flex-basis: calc(100% - 10px);
    }
    .sg_content {
        height: auto;
    }
}
