#preview *,
#preview *:before,
#preview *:after {
    box-sizing: inherit;
}

.box-panel {
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 6px 0 rgb(0 0 0 / 16%);
    background-color: #fff;
    z-index: 1;
    width: 300px;
}

#preview {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 100vh;
    padding: 0;
    flex-direction: column;
}

#preview .mt-10 {
    margin-top: 10px;
}

#preview .mb-10 {
    margin-bottom: 10px;
}

#preview .background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff;
}

#preview .preview-controls {
    height: 70px;
    text-align: center;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}
#preview .preview-controls #msg_preview_controls_container {
    padding: 0;
    position: relative;
    top: -5px;
}
#preview .preview-controls #msg_preview_controls_container input {
    margin-bottom: 0;
    font-size: 14px;
    height: 38px;
    min-width: 235px;
    text-align: left;
    padding: 5px 20px;
}
#preview .preview-controls #msg_preview_controls_container span.caret {
    right: 20px;
}
#preview .voucher_preview-modal {
    display: none;
    position: absolute;
    z-index: 1;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
}
#preview .voucher_preview-modal .preview-modal__container .modal__content,
#preview .voucher_preview-modal .preview-modal__container .modal__header {
    color: #565656;
    font-size: 14px;
    line-height: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
}
#preview .voucher_preview-modal .preview-modal__container .modal__header {
    max-width: 90%;
}
#preview .voucher_preview-modal .preview-modal__container .modal__close {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
}
#preview .voucher_preview-modal .preview-modal__container .modal__content {
    font-weight: normal;
    text-transform: initial;
    margin-top: 20px;
    word-wrap: break-word;
}
#preview .voucher_preview-modal .preview-modal__container {
    position: absolute;
    left: 50%;
    top: 50px;
    transform: translate(-50%, 0);
    width: 430px;
    max-width: 90%;
    padding: 20px;
    background: #fff;
}
#msg_offer {
    width: 300px;
    height: 545px;
    min-height: 485px;
    margin-top: 10px;
}
#msg_offer .offer-logo-container img {
    max-height: 80px;
    display: block;
    margin: auto;
}
#msg_offer .offer-content-img {
    height: 135px;
    position: relative;
}
#msg_offer .offer-content-img .error-message-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
}
#msg_offer .offer-content-img .error-message-wrapper .error-type {
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
}
#msg_offer .offer-content-img .error-message-wrapper .error-message {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    max-width: 90%;
}
#msg_offer .offer-logo {
    min-height: 30px;
    max-height: 80px;
    max-width: 50%;
    margin: auto;
    background-color: transparent;
    font-size: 1.5em;
    font-weight: bold;
}
#msg_offer .offer-content-title {
    text-align: center;
    margin: 10px 0;
}
#msg_offer .offer-logo img {
    max-height: 80px;
    width: auto;
}
#msg_offer .offer-content-img {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
#msg_offer .offer-extra-info {
    display: flex;
    padding: 15px;
}

#msg_offer .offer-timing-wrapper {
    flex: 0 0 60%;
}
#msg_offer .offer-uses-wrapper {
    flex: 0 0 40%;
}
#msg_offer .offer-timing {
    padding-right: 5px;
}
#msg_offer .offer-uses {
    text-align: right;
    padding-left: 5px;
}
#msg_offer .offer-timing-title,
#msg_offer .offer-uses-title {
    font-size: 14px;
}
#msg_offer .offer-uses-data,
#msg_offer .offer-timint-date {
    font-size: 18px;
}

#msg_offer .offer-name {
    font-size: 0.7em;
}
#msg_offer .btn-voucher {
    display: inline-block;
    text-decoration: none;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    width: 265px;
    height: 40px;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    line-height: 40px;
    font-weight: 700;
    border-radius: 5px;
    background-color: #66bb6a;
    -webkit-transition: 0.2s ease-out;
    transition: 0.2s ease-out;
    box-shadow: none;
}
#msg_offer .voucher-used {
    background-color: #f4aaad;
}
#msg_offer .offer-footer {
    height: 228px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 25px;
    width: 100%;
    position: absolute;
    bottom: 0;
}
#msg_offer .offer-footer .voucher-button {
    text-align: center;
}
#msg_offer .offer-footer .voucher-button button {
    padding: 0;
}
#msg_offer .qr-code-generator {
    width: 120px;
    height: 120px;
    padding: 8px;
    background-color: #fff;
    background-image: url("../resources/white-background.png");
    background-size: cover;
}
#msg_offer .qr-code-generator.disabled {
    opacity: 0.3;
}
#msg_offer .qr-code-generator canvas,
#msg_offer .qr-code-generator img {
    width: 100%;
    image-rendering: pixelated;
}
#msg_offer .offer-footer .voucher-qr {
    position: relative;
    top: 5px;
    left: 90px;
}
#msg_offer .offer-footer .voucher-qr img {
    max-height: 120px;
}
#msg_offer .offer-footer .voucher-barcode {
    position: relative;
    top: -110px;
    left: 40px;
}
#msg_offer .offer-footer .voucher-barcode img {
    width: 200px;
    height: auto;
}
.gift-error #msg_offer .offer-footer {
    opacity: 0.8;
}
#msg_offer .offer-logo-container {
    padding-top: 15px;
    height: 60px;
    box-sizing: content-box;
    position: relative;
    padding-bottom: 15px;
}
#msg_offer .offer-logo-container #edit_logo {
    display: none;
    position: absolute;
    left: 195px;
    top: 40px;
    text-align: center;
    line-height: 30px;
    padding: 3px;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    z-index: 1100;
}
#msg_offer .offer-logo-container:hover #edit_logo {
    display: block;
}

/* VOUCHER */
#msg_offer .offer-logo-container img {
    max-height: 60px;
    display: block;
    margin: auto;
}
#msg_offer .offer-logo-container img[alt]:after {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    content: "";
}
#msg_offer .offer-content-img {
    height: 116px;
}
#msg_offer .offer-title {
    padding: 0 15px;
    margin-top: 12px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}
#msg_offer .offer-title .offer-title-text-container {
    white-space: nowrap;
    max-width: calc(100% - 22px);
    overflow: hidden;
}
#msg_offer .offer-title .offer-title-text {
    font-weight: 500;
}
#msg_offer .offer-title .more-info {
    display: inline-flex;
    align-items: center;
    margin-left: 7px;
}
#msg_offer .background_image_div {
    max-height: 135px;
}
#msg_offer .offer-timing {
}
#msg_offer .offer-until-title,
#msg_offer .offer-since-title {
    font-size: 14px;
    margin-right: 5px;
}
#msg_offer .offer-until-date,
#msg_offer .offer-since-date {
    font-weight: bold;
    font-size: 14px;
}
#msg_offer .wallet {
    margin-top: 20px;
    text-align: center;
    padding: 0 20PX;
}
#msg_offer .apple .wallet-button {
    width: 200px;
    height: 40px;
    display: block;
    margin: 0 auto;
    background-size: 130px 40px;
    background-position: 50%;
    background-repeat: no-repeat;
}
#preview .android .wallet-button {
    position: relative;
    display: flex;
    justify-content: center;
    border-radius: 10px;
    margin: 10px 0 0 0;
    width: 100%;
    text-decoration: none;
    align-items: center;
    padding: 11px;
    background-color: #fff;
    height: auto;
    font-size: 14px;
    color: inherit;
    border: 1px solid #dddddd;
    font-weight: 500;
}

#preview .android .wallet-button img {
    position: absolute;
    left: 8px;
}
#msg_offer .voucher-external-promotion {
    text-align: center;
    font-size: 0.7rem;
    color: #bbb;
}
.hide {
    display: none !important;
}
#msg_offer .fixedButton {
    width: 100%;
    text-align: center;
}
#msg_offer .fixedButton h3 {
    font-size: 13px;
    text-align: center;
    display: block;
    padding-bottom: 15px;
}
#msg_offer .fixedButton button {
    padding: 0 !important;
}
/* END VOUCHER */

/* TERMS AND CONDITIONS */
#terms_conditions_button {
}

#terms_conditions_button .text {
    font-size: 15px;
    font-weight: bold;
    padding-left: 20px;
    height: 60px;
    line-height: 60px;
    cursor: pointer;
}

#terms_conditions_modal .modal-dialog {
    transform: translate(0px, calc(50vh - 50%));
}

#terms_conditions_modal .modal-header {
    border-bottom: none;
}

#terms_conditions_modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 1;
    text-shadow: none;
}

#terms_conditions_modal .close span {
    font-size: 30px;
}

.terms-blocks {
}

.terms-blocks .block {
    font-size: 14px;
    margin-bottom: 30px;
}

.terms-blocks .block:last-of-type {
    margin-bottom: 0;
}

.terms-blocks .block .title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 15px;
}

.terms-blocks .block p {
    margin-bottom: 0;
}

.terms-blocks .block .table {
}

.terms-blocks .block .table .trow {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.terms-blocks .block .comma-sepparated-items .item:not(:last-child):after {
    content: ", ";
}
/* END TERMS AND CONDITIONS */
