.content-ecard-wrapper {
    --widthSb: 300px;
    display: grid;
    grid-template-columns: var(--widthSb) calc(100% - var(--widthSb) - 24px);
    padding:0 0 48px;
    grid-gap: 24px;
}

.listing-card-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 24px;
}

.content-ecard-wrapper h1 {
    font-size: 24px;
    text-align: center;
    color: var(--pr-color-primary, #19124f);
}
.om-ribbon {
    background: var(--pr-color-secondary, #ff7300);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background-clip: padding-box;
    text-align: center;
    margin-left: -3px;
    margin-right: -3px;
    padding: 16px 10px;
    position: relative;
    text-transform: uppercase;
}
.om-ribbon h2 {
    color: #fff;
    margin: 0;
    font-size: 18px;
}
.card-listing-filter-parent-wrapper {
    background-color: #f8f8f8;
}
.list-menu-ecard {
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}
.card-listing-filter-parent-wrapper.children-show > a {
    font-weight: 500;
    color: var(--pr-color-secondary, #ff7300);
}

.list-menu-ecard a.active {
    color: var(--pr-color-secondary, #ff7300);
}

.card-listing-filter-parent-wrapper .item-cat {
    padding: 12px 16px;
    color: #333;
    display: flex;
    border-bottom: 1px solid #eee;
    align-items: center;
    justify-content: space-between;
}
.card-listing-filter-parent-wrapper .item-cat .icon-has-child {
    cursor: pointer;
}

.card-listing-filter-children-wrapper {
    height: 0;
    visibility: hidden;
    opacity: 0;
    transition: var(--pr-trans-standard);
}
.card-listing-filter-children-wrapper.children-visible {
    height: auto;
    visibility: visible;
    opacity: 1;
    transition: var(--pr-trans-standard);
}
.card-listing-filter-children-wrapper a {
    background-color: #fff;
    padding-left: 24px;
    padding: 12px 16px;
    color: #333;
    display: flex;
    border-bottom: 1px solid #eee;
    align-items: center;
    justify-content: space-between;
}
.card-listing-filter-parent-wrapper.children-show .icon-has-child {
    transform: rotate(90deg);
}

.listing-block-card {
    position: relative;
    overflow: hidden;
}

.listing-card-result {
    position: relative;
    vertical-align: top;
    padding-bottom: 10px;
    font-size: 12px;
    text-align: center;
}

.listing-card-inside-link {
    opacity: 0;
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.listing-card-hovertext {
    background: var(--pr-color-secondary);
    line-height: 2.6;
    color: #fff;
    padding: 8px 16px;
    z-index: 1;
    width: 150px;
    height: 41px;
    font-size: 15px;
    border-radius: 4px;
    background-clip: padding-box;
}
.listing-card-image {
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-out 0s;
}
.listing-card-image:after {
    padding-top: 100%;
    display: block;
    content: "";
}
.listing-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 6;
}

.canvas-content-wrap {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    position: relative;
    background-color: #fff;
}

.canvas-content-wrap::after {
    content: "";
    padding-bottom: 150%;
    display: block;
}

.canvas-content-box {
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    flex-direction: column;
    overflow-y: hidden;
    background-repeat: no-repeat;
    /* for test */
    /* background-color: #19124f; */ 
}

.canvas-content-box .ecard-item {
    text-align: center;
    padding: 15px;
    /* flex: 0 0 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    
}

.ecard-text-input {
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px #ddd;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
}

.ecard-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

fieldset {
    width: 100%;
    height: 100%;
    position: relative;
    box-sizing: border-box;
    border: solid rgba(185, 185, 185, 0.534) 1px;
    padding: 18px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 5px;
}

fieldset img {
    max-width: 70%;
}
  
legend {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translate(-50%, 50%);
    padding: 5px;
    background: white;
    font-size: 12px;
}

fieldset.more-100-characters {
    display: table;
    padding: 6px;
}
fieldset.more-100-characters img {
    float: left;
    width: 25%;
}

fieldset p {
    margin: 3px 0;
    font-size: 12px;
    line-height: 21px;
}

fieldset.more-100-characters p {
    font-size: 12px;
    float: left;
    width: 75%;
    text-align: left;
}

fieldset.more-100-characters.no-image p {
    width: 100%;
}

.e-card-edit-controls {
    position: absolute;
    top: 3px;
    text-align: right;
    width: 30px;
    left: calc(100% - 30px);
}

.e-card-edit-controls button {
    border: 0;
    padding: 4px;
    color: #fff;
    margin: 3px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 9px;
    /* box-shadow: 1px 0px 3px 0px rgba(0,0,0,0.75);
    -webkit-box-shadow: 1px 0px 3px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 1px 0px 3px 0px rgba(0,0,0,0.75); */
}

.placeholder-action {
    font-weight: bold;
    background-color: #EEEEEE;
    padding: 25px;
    font-size: 25px;
    border-radius: 8px;
    cursor: pointer;
    vertical-align: middle;
    color: #999;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-content-wrap {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    position: relative;
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 4px;
}
.canvas-content-wrap:before,
.slide-image:before {
    content: ' ';
    display: block;
    top: 50%;
    bottom: 0;
    left: 10%;
    right: 10%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    position: absolute;
    border-radius: 100px / 10px;
}

.bg-white {
    background-color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
}

.canvas-inside-view .canvas-content-wrap:last-child .bg-white:before,
.slide-image.p3 .bg-white:before {
    content: ' ';
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    right: 90%;
    position: absolute;
    z-index: 1;
    background: -moz-linear-gradient(left, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(0, 0, 0, 0.12)), color-stop(100%, rgba(0, 0, 0, 0)));
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 100%);
    background: -o-linear-gradient(left, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 100%);
    background: -ms-linear-gradient(left, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 100%);
    background: linear-gradient(to right, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a6000000',endColorstr='#00000000',GradientType=1);
}


.e-card-content > div.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.canvas-inside-view.active > div {
    margin: 0;
}

.recipient-email-row {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    grid-gap: 12px;
}

.recipient-email-row + .recipient-email-row {
    margin-top: 10px;
}

.ecard-popup  .recipient-email-row .ecard-label {
    display: none;
}

.add-recipient-email,
.add-remove-email {
    border: none;
    outline: none;
    background-color: #fff;
    border: var(--pr-size-border-width-small) solid var(--pr-color-neutral-100);
    color: #111;
    width: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 5px;
    cursor: pointer;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recipient-email-col {
    width: 100%;
}

.add-recipient-email:hover,
.add-remove-email:hover {
    background-color: #a397e1;
    border-color: #a397e1;
    color: #fff;
}

.ecard-popup .recipient-email-row  .form-control {
    padding-left: 8px;
    padding-right: 8px;
}

@media (min-width: 1024px) {
    .listing-block-card:hover .listing-card-inside-link {
        opacity: 1;
        z-index: 3;
        transition: all 0.3s ease;
    }
    .listing-block-card:hover .listing-card-image {
        -webkit-transform: scale(1.2) translateY(40px);
        -moz-transform: scale(1.2) translateY(40px);
        -o-transform: scale(1.2) translateY(40px);
        -ms-transform: scale(1.2) translateY(40px);
        transform: scale(1.2) translateY(40px);
    }
    .listing-card-result:hover .listing-card-title,
    .listing-card-result:hover .listing-card-designer {
        opacity: 0;
    }
}

.listing-card-title {
    font-weight: 500;
    font-size: 18px;
    color: var(--pr-color-primary, #19124f);
}

.content-ecard-detail-wrapper {
    padding: 0 0 48px;
    position: relative;
}

.content-ecard-detail-wrapper h1 {
    font-size: 24px;
    text-align: center;
    color: var(--pr-color-primary, #19124f);
    text-transform: uppercase;
}

.main-detail-ecard {
    --widthSb: 400px;
    display: grid;
    grid-template-columns: calc(100% - var(--widthSb) - 24px) var(--widthSb);
    grid-gap: 24px; 
}

.e-card-customize-main {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 24px;
    border-radius: 10px;
}

.e-card-content > div {
    display: none;
}

.e-card-content > div.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.position-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-gap: 16px;
}
.position-navigation > div {
    padding: 25px 20px;
    background: #fff;
    margin-bottom: 16px;
    border-radius: 5px;
    border: 1px solid #eee;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 15px;
}

.position-navigation > div.active {
    color: #fff;
    font-weight: 500;
    background: var(--pr-color-secondary, #ff7300);
    border-color: var(--pr-color-secondary, #ff7300);
}

.card-customize-howtopersonalize .title {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 16px;
}

.card-customize-howtopersonalize-table {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-customize-howtopersonalize-table li {
    border-bottom: 1px solid #eee;
    padding: 8px 16px;
}

.card-customize-howtopersonalize-table li:last-child {
    border: none;
}

.e-card-send-action {
    display: flex;
    flex-direction: column;
    grid-gap: 12px;
    margin-top: 40px;
}

.e-card-send-action .button {
    border-radius: 6px;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    color: #fff;
    line-height: 1;
    background-color: var(--pr-color-information-600);
    width: 100%;
    text-align: center;
    transition: var(--pr-trans-standard);
}
.e-card-send-action .button:hover {
    background-color: var(--pr-color-information-500);
}

.create-ecard-button {
    border-radius: 3px;
    padding: 10px 12px;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
    line-height: 1;
    background-color: var(--pr-color-secondary);
    text-align: center;
    transition: var(--pr-trans-standard);
    border: 0;
    text-transform: uppercase;
    margin-top: 8px;
    cursor: pointer;
}

.create-ecard-button:hover {
    background-color: var(--pr-color-primary);
}

.e-card-send-action .button.send-schedule, .e-card-send-action .preview-ecard {
    color: var(--pr-color-information-600);
    background: #fff;
    border: 1px solid var(--pr-color-information-600);
}

.e-card-send-action .button.send-schedule:hover, .e-card-send-action .preview-ecard:hover {
    background-color: var(--pr-color-information-500);
    color: #fff;
    border: 1px solid var(--pr-color-information-500);
}

/*E-Card send now popup*/
.ecard-popup,
.popupe-ecard-sendnow-wrapper {
    --widthPopup: 600px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1111;
    transition: var(--trans);
    opacity: 0;
    pointer-events: none;
}

.open-ecard-sendnow-pop {
    overflow: hidden;
}

#ecard-popup-photo {
    z-index: 2222;
}

.show-popup,
.open-ecard-sendnow-pop .popupe-ecard-sendnow-wrapper {
    opacity: 1;
    pointer-events: all;
}
.ecard-background {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgba(11 11 11 / 44%);
}

.note-image {
    max-height: 50px;
}

.show-popup .ecard-background {
    display: block;
}
.ecard-sendnow-content-wrapper {
    background-color: var(--white);
    box-shadow: 0 3px 4px -1px rgb(0 0 0 / 20%), 0 5px 10px 0 rgb(0 0 0 / 14%), 0 1px 12px 0 rgb(0 0 0 / 10%);
    width: var(--widthPopup);
    margin: 40px auto;
    min-height: 300px;
    max-width: 90%;
    display: block;
    position: relative;
    z-index: 2;
    border-radius: 15px;
    overflow: hidden;
    padding: 24px;
}

.close-ecard-sendnow-pop {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
    cursor: pointer;
}

.title-popup {
    font-size: 24px;
    font-weight: 500;
    color: var(--pr-color-primary);
    text-align: center;
}

.ecard-popup .form-group,
.send-ecard-popup .form-group {
    margin-bottom: 16px;
}
.ecard-popup .form-control,
.send-ecard-popup .form-control {
    display: block;
    width: 100%;
    padding: 10px 16px;
    line-height: 1.2857143;
    background-color: var(--pr-color-white);
    background-image: none;
    border-radius: var(--pr-radius-small);
    border: var(--pr-size-border-width-small) solid var(--pr-color-neutral-100);
    transition: border 150ms ease-out;
    font-weight: 400 !important;
    font-size: 16px;
    outline: 0;
    box-shadow: none;
}

.form-group .form-control:focus,
.form-group .form-control:hover {
    outline: 0;
    border-color: #a397e1;
}
.ecard-popup .ecard-label,
.send-ecard-popup .ecard-label {
    font-size: 16px;
    margin-bottom: 4px;
    display: block;
}
.ecard-popup .button,
.send-ecard-popup .button {
    border-radius: 6px;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    color: #fff;
    line-height: 1;
    background-color: var(--pr-color-information-600);
    width: auto;
    min-width: 180px;
    text-align: center;
    transition: var(--pr-trans-standard);
}
.ecard-popup .button:hover,
.send-ecard-popup .button:hover {
    background-color: var(--pr-color-information-500);
}
.ecard-popup .form-action,
.send-ecard-popup .form-action {
    position: sticky;
    bottom: 0;
    padding: 12px 16px;
    background-color: #fff;
    z-index: 3;
    text-align: center;
}
/*End E-Card send now popup*/

/*E-Card send now popup*/
.popupe-ecard-schedule-wrapper {
    --widthPopup: 600px;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1111;
    transition: var(--trans);
    opacity: 0;
    pointer-events: none;
}
.open-ecard-schedule-pop {
    overflow: hidden;
}
.open-ecard-schedule-pop .popupe-ecard-schedule-wrapper {
    opacity: 1;
    pointer-events: all;
}

.ecard-schedule-content-wrapper {
    background-color: var(--white);
    box-shadow: 0 3px 4px -1px rgb(0 0 0 / 20%), 0 5px 10px 0 rgb(0 0 0 / 14%), 0 1px 12px 0 rgb(0 0 0 / 10%);
    width: var(--widthPopup);
    margin: 50px auto;
    min-height: 300px;
    max-height: 600px;
    max-width: 90%;
    display: block;
    position: relative;
    z-index: 2;
    border-radius: 15px;
    overflow-y: auto;
    padding: 24px 24px 0;
}

.close-ecard-schedule-pop {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
    cursor: pointer;
}

/*End E-Card send now popup*/
/*Popup add note and upload image*/
#add-note-image-control {
    background: 0 0;
    border: none;
    padding: 0;
    margin: 0;
}
#add-note-image-control:hover,
#add-note-image-control:focus {
    outline: none;
}
#remove-note-image-control {
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: var(--font-body, 400);
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    line-height: 1;
    background-color: var(--pr-color-secondary);
    width: auto;
    text-align: center;
    transition: var(--pr-trans-standard);
    border: none;
}
#remove-note-image-control:hover {
    background-color: var(--pr-color-warning-700);
}
.controls-note-image {
    display: flex;
    align-items: center;
    grid-gap: 8px;
}
.action-image-note {
    display: flex;
    align-items: center;
    grid-gap: 8px;
}

.dropdown-image {
    border: 2px solid #67c6b5;
    margin-right: 10px;
    margin-left: 10px;
    width: calc(100% - 20px);
}

.dropdown-box {
    position: relative;
}

.dropdown-action {
    position: absolute;
    height: 40px;
    width: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    line-height: 35px;
    background-color: #67c6b5;
    border: 0;
    outline: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}

.dropdown-back-action {
    border-radius: 5px 0 0 5px;
    left: -10px;
}

.dropdown-next-action {
    left: auto;
    right: -10px;
    border-radius: 0 5px 5px 0;
}


#input-note-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: 4px;
    display: none;
}

#ecard-popup-photo #upload-image {
    display: none;
}
.action-editor-image {
    position: relative;
    margin-bottom: 16px;
}

#ecard-popup-photo #controls {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    grid-gap: 8px;
    position: relative;
    margin-top: 10px;
}
#ecard-popup-photo #controls > button {
    border: none;
    background: var(--pr-color-secondary);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/*End popup add note and upload image*/

.content-preview-ecard-wrapper {
    padding: 48px 0;
    position: relative;
}
.slider-flipbook-ecard {
    padding-bottom: 45%;
    position: relative;
    width: 70%;
    margin: 0 auto;
}

.aspect-inner {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}


.ecard-tab {
    border-radius: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    -ms-border-radius: 9px;
    -o-border-radius: 9px;
    padding: 6px 12px;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: #717171;
}

.ecard-tab-item {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-gap: 4px;
}

.ecard-tab-item svg {
    width: 36px;
    height: 36px;
}

.ecard-tab-item.active {
    background-color: #f6f6f6;
    border-radius: 24px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    -ms-border-radius: 24px;
    -o-border-radius: 24px;
    color: var(--secondary);
}

.ecard-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-gap: 24px;
    padding: 16px;
}


.btn-ecard {
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: static;
    width: 50px;
    height: 50px;
    display: flex;
    margin: 0;
    justify-content: center;
    align-items: center;
    transform: none;
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
    -o-transform: none;
    border-radius: 44px;
    -webkit-border-radius: 44px;
    -moz-border-radius: 44px;
    -ms-border-radius: 44px;
    -o-border-radius: 44px;
    box-shadow: 0 2px 8px rgba(11 11 11 / 11%);
    color: var(--secondary);
}


#flipbook {
    opacity: 0;
}
#flipbook {
    height: 100%;
    transition: margin-left 0.25s ease-out;
    width: 100%;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
#flipbook .page-wrapper {
    overflow: visible !important;
}
#flipbook .page {
    height: 100%;
    width: 100%;
  }

#flipbook .canvas-content-box {
    border: 1px solid #d6d6d6;
}

.flip-control #prev img {
    transform: rotateX(0deg)  rotateY(180deg);
}
.flip-control {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    grid-gap: 16px;
    position: relative;
    z-index: 99;
}
.flip-control a {
    border-radius: 100%;
    box-shadow: var(--pr-shadow-300);
    background-color: #fff;
    width: 40px;
    height: 40px;
    padding: 8px;
    position: relative;
    display: inline-block;
    transition: var(--pr-trans-standard);
}

.flip-control a:hover {
    transform: scale(1.2);
    background: var(--pr-color-secondary);
    color: #fff;
}
.flip-control a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.flip-control a:hover img {
    filter: brightness(0) invert(1);
}
.slide-image {
    background: no-repeat center top;
    background-size: cover;
    width: 554px;
    height: 554px;
    /* overflow: hidden; */
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 4px;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pagination {
    margin: 32px 0;
    padding: 0;
    list-style: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.pagination li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-weight: var(--font-body, 400);
}
.pagination li a, 
.pagination li span {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 100%;
    background: var(--pr-color-flash);
    padding: 0;
    margin: 0 10px;
    font-weight: var(--pr-font-weight-heading);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination li.active span {
    color: var(--pr-color-secondary);
}
.no-result {
    display: flex;
    align-items: center;
    flex-direction: column;
    grid-gap: 16px;
    justify-content: center;
    margin: 32px 0;
}


.you-may-so-like-wrapper .component-heading {
    font-size: 23px;
    font-weight: 500;
    margin-top: 16px;
    margin-bottom: 16px;
    width: 100%;
    display: block;
    line-height: 1.2;
    color: var(--pr-color-primary);
}
.featured-product-wrapper {
    position: relative;
    overflow: hidden;
}

.featured-product-wrapper:not(.swiper-initialized) .you-may-so-like-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(140px + (230 - 140) * ((100vw - 300px) / (1920 - 300))), 1fr));
    grid-gap: calc(4px + (8 - 4) * ((100vw - 300px) / (1920 - 300)))
}

.featured-product-wrapper .featured-product {
    display: flex;
    flex-wrap: wrap;
}
.featured-product-wrapper .featured-product-link {
    display: block;
    margin: 0 0 4px;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.featured-product-wrapper .featured-product-link::before {
    content: "";
    padding-top: 100%;
    display: block;
}
.featured-product-wrapper .featured-product-link img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 5px;
    object-fit: contain;
    object-position: center;
    transition: transform 250ms ease-in-out;
    padding: 2px;
}
.featured-product-wrapper .featured-product-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: initial;
    margin: 0 0 3px;
    width: 100%;
    text-transform: capitalize;
}
.featured-product-wrapper .featured-product-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: initial;
    margin: 0 0 3px;
    width: 100%;
    text-transform: capitalize;
}
.featured-product-wrapper .featured-product-price {
    font-weight: 500;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #c52c29;
}
.featured-product-wrapper .featured-product-high-price {
    display: flex;
    align-items: center;
    font-size: 14px;
    justify-content: flex-start;
    color: var(--pr-color-price-compare);
    text-decoration: line-through;
    margin-left: 10px;
}

.title-preview {
    font-size: 24px;
    text-align: center;
    color: var(--pr-color-primary, #19124f);
    font-weight: 500;
    margin-bottom: 24px;
}

/*Loading product viewed*/

.md-product-viewed-list-loading {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 6px;
}

.md-product-viewed-list-loading .loading-item {
    padding: 6px; 
    width: 100% !important;
    display: flex;
    flex-direction: column;
    grid-gap: 8px;
    display: none;
}
.md-product-viewed-list-loading .loading-item:nth-child(-n + 2) {
    display: flex;
  }
.md-product-viewed-list-loading .loading-image-item {
    padding-top: 100%;
}

.md-product-viewed-list-loading .fancy-loading-block {
    position: relative;
    width: 100%;
    display: block;
    height: auto;
}
.note-anonymous {
    color: var(--pr-color-information-500);
    font-style: italic;
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

#ecard-popup-send-success .ecard-schedule-content-wrapper {
    width: 400px;
}
#ecard-popup-send-success .content-ecard-schedule-popup {
    text-align: center;
    display: grid;
    grid-gap: 16px;
    align-items: center;
    justify-content: center;
    margin: 32px 0;
}
#ecard-popup-send-success .content-ecard-schedule-popup img {
    margin: 0 auto;
}
#ecard-popup-send-success .content-ecard-schedule-popup p {
    font-size: 18px;
    margin: 5px 0;
}
#ecard-popup-send-success .info-send p {
    margin: 3px 0;
    font-size: 16px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 16px;
}
#ecard-popup-send-success .info-send a b {
    color: var(--pr-color-secondary);
}

#ecard-popup-send-success .info-send b {
    font-weight: 500 !important;
    color: var(--pr-color-primary);
}

#schedule-send-option-input,
#send-now-option-input {
    display: none;
}

.action-schedule-send .checkbox {
    width: 20px;
    height: 20px;
    display: block;
    border: 2px solid #d1d1d1;
    position: relative;
    transition: all .2s ease-in-out;
    border-radius: 24px;
    cursor: pointer;
}
.action-schedule-send .checkbox::before {
    content: "";
    width: 8px;
    height: 8px;
    display: block;
    background-color: var(--pr-color-primary);
    position: absolute;
    border-radius: 12px;
    opacity: 0;
    transition: all .2s ease-in-out;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.action-schedule-send {
    display: flex;
    align-items: center;
    grid-gap: 16px;
    justify-content: flex-start;
}

.action-schedule-send label {
    display: flex;
    align-items: center;
    grid-gap: 6px;
}

#schedule-send-option-wrapper {
    display: none;
}

#schedule-send-option-input:checked ~ #schedule-send-option-wrapper {
    display: block;
}

#schedule-send-option-input:checked ~ .action-schedule-send .schedule-action label .checkbox::before {
    opacity: 1;
}
#send-now-option-input:checked ~ label .checkbox::before {
    opacity: 1;
}
#schedule-send-option-input:checked ~ .action-schedule-send .schedule-action label .checkbox,
#send-now-option-input:checked ~ label .checkbox {
    border-color: var(--pr-color-primary);
}

@media (min-width: 480px) {
    .md-product-viewed-list-loading {
        grid-template-columns: repeat(3, 1fr);
    }
    .md-product-viewed-list-loading .loading-item:nth-child(-n + 3) {
        display: flex;
    }
    
    
}
@media (min-width: 800px) {
    .md-product-viewed-list-loading {
        grid-template-columns: repeat(4, 1fr);
    }
    .md-product-viewed-list-loading .loading-item:nth-child(-n + 4) {
        display: flex;
    }
    
}
@media (min-width: 1200px) {
    .md-product-viewed-list-loading {
        grid-template-columns: repeat(5, 1fr);
    }
    .md-product-viewed-list-loading .loading-item:nth-child(-n + 5) {
        display: flex;
    }

    .listing-card-content { 
        grid-template-columns: repeat(4, 1fr);
    }    
}

@media (min-width: 1400px) {
    .md-product-viewed-list-loading {
        grid-template-columns: repeat(6, 1fr);
    }  
    .md-product-viewed-list-loading .loading-item:nth-child(-n+6) {
        display: flex;
    }  
}
/*End loading product viewed*/


@media (max-width: 767px) {
    .ecard-tab {
        grid-gap: 8px;
    }
    
    .ecard-tab-item span {
        font-size: 13px;
    }
    
    .content-ecard-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }   
    .listing-card-content { 
        grid-template-columns: repeat(2, 1fr);
    }

    .listing-filter-button {
        background: var(--pr-color-secondary, #ff7300);
        border-radius: 4px;
        background-clip: padding-box;
        text-align: center;
        padding: 12px 10px;
        position: relative;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        grid-gap: 8px;
        justify-content: center;
        color: #fff;
        font-weight: 500;
    }    
    .listing-filters {
        min-height: 100vh;
        height: 100%;
        width: 300px;
        overflow-x: hidden;
        overflow-y: auto;
        background-color: var(--white);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 123456;
        list-style: none;
        margin: 0;
        padding: 0 0 120px 0;
        transform: translateX(-310px);
        display: none;
    }
    .open-listing-filters .listing-filters {
        display: block;
        z-index: 234567;
        transform: translateX(0);
        box-shadow: 0 8px 10px -5px rgb(0 0 0 / 20%), 0 16px 24px 2px rgb(0 0 0 / 14%), 0 6px 30px 5px rgb(0 0 0 / 10%);
    }
    .listing-filter-background {
        height: 100%;
        width: 100%;
        background-color: rgba(11, 11, 11, 0.4);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 12345;
        margin: 0;
        padding: 0;
        opacity: 0;
        transition: var(--trans);
        pointer-events: none;
    }
    .open-listing-filters .listing-filter-background {
        opacity: 1;
        pointer-events: all;
    }
    .listing-filter-background::before,
    .listing-filter-background::after {
        content: "";
        width: 24px;
        height: 2px;
        background-color: var(--white);
        border-radius: 2px;
        display: block;
        position: absolute;
        top: 30px;
        left: 320px;
        transform: rotate(45deg);
    }
    .listing-filter-background::after {
        transform: rotate(-45deg);
    }

    .main-detail-ecard {
        grid-template-columns: repeat(1, 1fr);
    }

    .ecard-sendnow-content-wrapper,
    .ecard-schedule-content-wrapper {
        padding: 16px;
    }

    .position-navigation > div {
        padding: 8px 16px;
        font-size: 14px;
    }
    .pagination {
        grid-gap: 8px 0;
    }
    .pagination li a, 
    .pagination li span {
        margin: 0 2px;
    }
    .content-preview-ecard-wrapper {
        padding: 24px 0;
        overflow: hidden;
    }
    .placeholder-action {
        padding: 12px;
        font-size: 12px;
    }
    .canvas-content-wrap {
        width: 146px;
        height: 220px;
    }
    #ecard-page-0, 
    #ecard-page-3 {
        width: 146px;
        height: 220px;
    }

    #flipbook #ecard-page-0, 
    #flipbook #ecard-page-3 {
        width: 100%;
        background-repeat: no-repeat;
        background-size: 100%;
        height: 100%;
    }

    .ecard-text-input {
        width: 80%;
        height: 36px;
        font-size: 16px;
        padding: 0px;
    }
    .canvas-content-box .ecard-item {
        padding: 4px;
    }
    #ecard-page-3 .ecard-item img.logo-back {
        width: auto !important;
        height: 15px !important;
    }
    #ecard-page-3 .ecard-item img.logo-back ~ div {
        font-size: 8px !important;
        line-height: 10px !important;
    }

    fieldset p, fieldset legend { 
        font-size: 8px!important;
        margin: 0;
        line-height: 10px;
    }

    .create-ecard-button {
        font-size: 9px;
        padding: 6px;
    }
    .slider-flipbook-ecard {
        padding-bottom: 70%;
        position: relative;
        width: 100%;
        margin: 0 auto;
    }

    .flip-control {
        margin-top: 24px;
    }
}