.sc-coupon-grid {
    display: flex;
    flex-flow: wrap;
    padding: 1em;
    background: var(--background-light);
    border-radius: 6px;
}
.sc-coupon-title {
    display: flex;
    font-size: 18px;
    font-weight: 600;
    line-height: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}
.sc-coupon-grid .sc-coupon-card {
    display: flex;
    flex-direction: column;
    margin: 8px;
    width: 32%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
@media (max-width: 728px) {
    .sc-coupon-grid .sc-coupon-card {
        width: 100%;
    }
}
.sc-coupon-header {
    display: flex;
    padding: 12px 12px 6px 12px;
}
.sc-coupon-type {
    display: flex;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-danger-900);
    background: var(--color-danger-100);
    padding: 0 6px;
    border-radius: 6px;
}
.sc-coupon-details {
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    color: var(--color-heading);
    margin-bottom: 5px;
}
.sc-coupon-expiry {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-size: 11px;
}
.sc-coupon-expiry svg {
    width: 11px;
    height: 11px;
}
.sc-coupon-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}
.sc-btn {
    display: flex;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none!important;
    width: fit-content;
    height: 24px;
    line-height: 24px;
    border-radius: 4px;
    padding: 0 8px;
}
.sc-btn.sc-btn-products {
    color: var(--color-primary-700)!important;
    background: var(--color-primary-100)!important;
}
.sc-btn.sc-btn-apply {
    color: #fff!important;
    background: var(--color-primary-700)!important;
}
.sc-coupon-restrictions {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    color: var(--color-grey);
}
.sc-coupon-restrictions p {
    margin: 0;
}
.sc-coupon-body {
    padding: 0 12px 12px 12px;
}
.die-cut {
    background-color: #fff;
    box-shadow: 0 1px 0 0 #fff, 0 -1px 0 0 #fff;
    height: 20px;
    margin: 0;
    position: relative;
    width: 100%;
}
.die-cut:after {
    border-bottom: 1px dashed rgba(0, 0, 0, .15);
    content: "";
    left: 16px;
    position: absolute;
    right: 16px;
    top: 30%;
    z-index: 1;
}
.die-cut .inner-line {
    position: relative;
    width: 100%;
}
.die-cut .inner-line:after, .die-cut .inner-line:before {
    background: #f5f5f5;
    bottom: 0;
    content: "";
    display: block;
    height: 16px;
    overflow: hidden;
    position: absolute;
    top: -2px;
    width: 8px;
}
.die-cut .inner-line:before {
    border-bottom-right-radius: 32px;
    border-top-right-radius: 32px;
    box-shadow: inset -1px 1px 1px rgba(0, 0, 0, .07);
    left: 0;
}
.die-cut .inner-line:after {
    border-bottom-left-radius: 32px;
    border-top-left-radius: 32px;
    box-shadow: inset 1px 1px 1px rgba(0, 0, 0, .08);
    overflow: hidden;
    right: -1px;
}
.sc-coupon-footer {
    padding: 0 12px 12px;
}
@media (max-width: 628px) {
    .sc-coupon-list {
        display: flex;
        flex-direction: column;
        padding-bottom: 1em;
    }
}
@media (min-width: 628px) {
    .sc-coupon-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        grid-column-gap: 10px;
        grid-row-gap: 10px;
    }
    .sc-image {
        max-width: 60px;
    }
}

.sc-single-coupon {
    position: relative;
    background: var(--color-warning-100);
    overflow: hidden;
}
.sc-single-coupon::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 82px;
    height: 82px;
    opacity: .4;
    filter: blur(30px);
    background: var(--color-warning-700) 0% 0% no-repeat padding-box;
}
.sc-terms {
    display: flex;
    align-items: center;
    width: fit-content;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-info-800);
    cursor: pointer;
}
.sc-terms:hover {
    text-decoration: underline;
}
.sc-terms svg {
    width: 16px;
    height: 16px;
}
.sc-image {
    position: absolute;
    top: 10px;
    right: 10px;
    max-height: 60px;
}
.sc-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.6);
}
body.sc-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
.sc-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    width: 100%;
    max-width: 500px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}
.sc-modal-content {
    transition: transform 0.3s ease-out;
    transform: translateX(-50%) translateY(100%);
}

@media (max-width: 728px) {
    .sc-modal.show .sc-modal-content {
        transform: translateX(-50%) translateY(0%);
    }
}
@media (min-width: 728px) {
    .sc-modal.show .sc-modal-content {
        transform: translateX(-50%) translateY(-100%);
    }
    .sc-modal-content {
        border-radius: 12px;
    }
}

.sc-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.sc-modal-close:hover {
    color: #000;
}

.sc-modal-body {
    margin-top: 10px;
}
.sc-modal-tc-title {
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
    text-align: center;
    position: relative;
    margin: 15px 0 10px;
    width: 100%;
}
.sc-modal-tc-title:before {
    content: "";
    display: block;
    width: 30%;
    height: 1px;
    background: #e4e4e4;
    left: 0;
    top: 50%;
    position: absolute;
}
.sc-modal-tc-title:after {
    content: "";
    display: block;
    width: 30%;
    height: 1px;
    background: #e4e4e4;
    right: 0;
    top: 50%;
    position: absolute;
}
ol.sc-coupon-terms-list {
    font-size: 14px;
    line-height: 1.5;
    margin-left: 20px;
}