.coupon-signature {
    --coupon-dark: var(--fanaue-dark, #2C564B);
    --coupon-light: var(--fanaue-light, #D1E5E8);
    --coupon-ink: #F5F7F7;
    position: relative;
    display: flex;
    min-height: 142px;
    overflow: hidden;
    color: var(--coupon-ink);
    border: 0;
    border-radius: 8px;
    background:
        radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.16) 0 0.7px, transparent 1.5px),
        radial-gradient(circle at 34% 72%, rgba(255, 255, 255, 0.1) 0 0.6px, transparent 1.6px),
        radial-gradient(circle at 64% 24%, rgba(255, 255, 255, 0.12) 0 0.5px, transparent 1.4px),
        radial-gradient(circle at 82% 78%, rgba(0, 0, 0, 0.1) 0 0.6px, transparent 1.6px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 11%, transparent 90%, rgba(0, 0, 0, 0.12)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%, rgba(0, 0, 0, 0.06)),
        linear-gradient(135deg, #2d5a4f 0%, var(--coupon-dark) 52%, #1f423a 100%);
    background-size: 120px 90px, 150px 110px, 180px 130px, 130px 95px, auto, auto, auto;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(0, 0, 0, 0.16),
        0 2px 5px rgba(15, 34, 29, 0.08),
        0 18px 42px rgba(15, 34, 29, 0.2);
    isolation: isolate;
}

.coupon-signature::before,
.coupon-signature::after {
    content: "";
    position: absolute;
    right: 52px;
    z-index: 4;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    pointer-events: none;
}

.coupon-signature::before {
    top: -13px;
}

.coupon-signature::after {
    bottom: -13px;
}

.coupon-signature:is(.dark *)::before,
.coupon-signature:is(.dark *)::after {
    background: #111827;
}

.sig-pattern {
    position: relative;
    flex: 0 0 18px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent),
        repeating-linear-gradient(
            -45deg,
            rgba(209, 229, 232, 0.62) 0 7px,
            rgba(209, 229, 232, 0.22) 7px 14px
        );
}

.sig-pattern::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.08));
}

.sig-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 66px 22px 22px;
}

.sig-content::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 48px;
    bottom: 18px;
    width: 1px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(209, 229, 232, 0.65) 0 7px,
        transparent 7px 13px
    );
}

.shopping-cart-sig-content {
    padding-right: 66px;
}

.info-group,
.code-group {
    min-width: 0;
}

.info-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 4px 9px;
    border: 1px solid rgba(209, 229, 232, 0.34);
    border-radius: 999px;
    color: var(--coupon-light);
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    background: rgba(209, 229, 232, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.coupon-heading {
    margin: 0 0 9px;
    color: var(--coupon-ink);
    font-size: clamp(22px, 4.2vw, 32px);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: 0;
}

.validity-text {
    color: rgba(245, 247, 247, 0.76);
    font-size: 12px;
    font-weight: 500;
}

.code-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.code-title {
    margin-bottom: 7px;
    color: var(--coupon-light);
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    opacity: 0.78;
}

.code-value {
    max-width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px dashed rgba(209, 229, 232, 0.58);
    border-radius: 6px;
    color: var(--coupon-dark);
    background: #D1E5E8;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        inset 0 -1px 0 rgba(44, 86, 75, 0.12),
        0 9px 18px rgba(10, 23, 20, 0.14);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.btn-remove-sig {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 52px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid rgba(209, 229, 232, 0.22);
    color: var(--coupon-light);
    background:
        linear-gradient(180deg, rgba(245, 247, 247, 0.08), rgba(0, 0, 0, 0.1)),
        rgba(11, 25, 22, 0.26);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.btn-remove-sig:hover,
.btn-remove-sig:focus-visible {
    color: #fff;
    background: #BF4C4C;
    outline: none;
}

.icon-trash {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.75;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.btn-remove-sig:hover .icon-trash,
.btn-remove-sig:focus-visible .icon-trash {
    opacity: 1;
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .coupon-signature {
        min-height: 128px;
    }

    .sig-content {
        flex-direction: row;
        align-items: center;
        gap: 26px;
        padding: 24px 78px 24px 28px;
    }

    .shopping-cart-sig-content {
        padding-right: 78px;
    }

    .code-group {
        align-items: flex-end;
        text-align: right;
        flex: 0 1 42%;
    }

    .info-group {
        flex: 1 1 auto;
    }

    .code-value {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .coupon-signature {
        min-height: 0;
        border-radius: 7px;
    }

    .coupon-signature::before,
    .coupon-signature::after,
    .sig-content::after {
        display: none;
    }

    .sig-pattern {
        flex-basis: 12px;
    }

    .sig-content,
    .shopping-cart-sig-content {
        padding: 18px 56px 18px 16px;
        gap: 16px;
    }

    .brand-label {
        margin-bottom: 9px;
    }

    .coupon-heading {
        font-size: 23px;
    }

    .code-value {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .btn-remove-sig {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(209, 229, 232, 0.26);
        border-radius: 50%;
        background: rgba(11, 25, 22, 0.32);
    }
}
