:root {
    --uni-chat-font-sans: "Nunito Sans", serif;
    --blue: #0038FF;
}

@font-face {
    font-family: 'UniChat';
    src: url('/fonts/TTF/ClashDisplay-Variable.ttf') format('truetype');
}

body {
    font-family: var(--uni-chat-font-sans);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: fixed;
    bottom: 0;
    height: 100%;
    width: 100%;
}

/* General Styles */
.discount-banner {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin: 5px;
    max-width: 450px;
    width: calc(100% - 6px);
    z-index: 1;
    max-height: calc(100% - 12px);
    overflow-y: scroll;
    scrollbar-width: none;
}

.discount-banner:hover {
    cursor: pointer;
}

.discount-banner > div > img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.discount-banner-content {
    padding: 15px;
}

.discount-points-banner {
    position: relative;
    margin-bottom: 15px;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f7d16c, #f4b942);
    color: #4d3610;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.discount-points-info-button {
    align-self: flex-start;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    color: #4d3610;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.discount-points-info-button:hover {
    background: rgba(255, 255, 255, 0.55);
}

.discount-banner-title {
    font-family: "UniChat";
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 0;
}

.discount-preview-banner-title {
    font-family: "UniChat";
    font-size: 16px;
    color: black;
    margin-top: 5px;
    text-align: center;
}

.discount-banner-organisation {
    display: flex;
    align-items: center;
    flex-direction: column;
    border: 1px solid black;
    position: absolute;
    bottom: 0;
    left: 5px;
    background: white;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.25);
}

.discount-banner-organisation img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.discount-banner-organisation spec {
    font-size: 18px;
}

.discount-banner-how-to-redeem-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    font-family: "UniChat";
}

.discount-banner-how-to-redeem {
    margin-bottom: 10px;
    margin-top: 20px;
}

.discount-banner-button-container {
    position: fixed;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discount-banner-button {
    position: relative;
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--blue);
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--blue);
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

.discount-banner-button:hover {
    background-color: #0056b3;
}

.clicked {
    background-color: white;
    border: 1px solid var(--blue);
    color: var(--blue);
}

.clicked:hover {
    cursor: pointer;
    background-color: white;
}

.discount-preview-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    min-width: 150px;
    height: 150px;
    justify-content: center;
}

.discount-preview-banner img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 2px 7px 3px rgba(0, 0, 0, 0.15);
}

.discount-preview-gold {
    border: 2px solid #f4b942;
    position: relative;
    box-shadow: 0 10px 25px rgba(180, 134, 17, 0.2);
}

.discount-preview-points-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(90deg, #f7d16c, #f4b942);
    color: #4d3610;
    font-family: "UniChat";
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(77, 54, 16, 0.2);
}

.discount-banner-code {
    font-weight: bold;
    margin-bottom: 10px;
}

.discount-points-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.discount-points-modal {
    background: #fff7df;
    border-radius: 18px;
    padding: 24px;
    max-width: 420px;
    width: calc(97% - 48px);
    box-shadow: 0 20px 50px rgba(65, 45, 0, 0.25);
    color: #3f2a04;
    text-align: left;
}

.discount-points-modal h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-family: "UniChat";
    font-size: 1.3rem;
}

.discount-points-modal p {
    margin: 0 0 16px;
    line-height: 1.4;
}

.discount-points-modal-close {
    border: none;
    background: #4d3610;
    color: white;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.discount-points-modal-close:hover {
    opacity: 0.85;
}