@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

@font-face {
    font-family: "CastleT";
    src: url("../fonts/CastleT.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.coupon-container {
    /* background-color: #ffffff; */
    background-color: #ebe4e3;
    ;
    width: 400px;
    height: 875px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header section with logo and decorations */
.header-section {
    height: 106px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 17px 24px;
    margin-top: 40px;
}

/* Corner decorative elements - keep absolute for design purposes */
.corner-decoration {
    position: absolute;
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 48px;
    right: 14px;
}

.corner-pizza-image {
    position: absolute;
    width: 124px;
    height: 124px;
    background: url('../images/decor.png') center/cover;
}

.corner-pizza-image.top-left {
    top: 0;
    left: 0;
}

.corner-pizza-image.bottom-right {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

#logo-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 80%;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* Main offer section */
.offer-section {
    text-align: center;
    padding: 0 24px;
    margin-bottom: 24px;
}

.flat-text {
    font-family: "CastleT", serif;
    font-weight: bold;
    color: #af9e05;
    font-size: 35px;
    line-height: 38px;
}

.discount-text {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    color: #84482e;
    font-size: 50px;
    line-height: 34px;
    margin-bottom: 14px;
    margin-top: 6px;
    direction: initial;
}

.bill-amount-text {
    font-family: "CastleT", serif;
    font-weight: bold;
    color: #0d6836;
    font-size: 24px;
    line-height: 34px;
    margin-top: 8px;
}

.room-price {
    font-size: 34px;
}

.choco {
    color: #432A16;
}

.room-text {
    font-family: "CastleT", serif;
    font-weight: bold;
    color: #84482e;
    font-size: 24px;
    line-height: 34px;
}

/* Decorative line  move colors to variables later*/
.decorative-line {
    height: 1px;
    background: linear-gradient(90deg, #ebe4e3 0%, #0DAA45 53%, #ebe4e3 100%);
    margin: 8px auto;
    box-shadow: 0px 2px 9px rgba(138, 117, 117, 0.43);

}

.offer-section-2 {
    text-align: center;
    padding: 0 24px;
    margin-bottom: 24px;
}

.buffet-details {
    display: inline-flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0px;
    min-width: 200px;
}

.vertical-line {
    width: 1px;
    background-color: #b9b9b9;
    height: 32px;
    margin: 0 8px;
    align-self: center;
}

.discription {
    color: #0D6836;
    text-align: center;
    font-family: CastleT;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 19px;
}

.breakfast-section,
.instead-section {
    flex: 1;
}

.breakfast-label,
.instead-label {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #0d6836;
    font-size: 16px;
    line-height: 20px;
}

.instead-label {
    color: #84482e;
}

.breakfast-price,
.instead-price {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 16px;
}

.breakfast-price {
    color: #0d6836;
}

.instead-price {
    color: #84482e;
    text-decoration: line-through;
}

.timing-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.clock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.timing-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #492D10;
    font-size: 16px;
    line-height: 20px;
}

.timing-section-second {
    margin: 8px auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;

}

.timing-section-second .timing-text {
    font-size: 14px;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 8px;
    text-align: start;
}

.timing-section-second .timing-text .time {
    font-size: 13px;
}


/* .timing-section-second>div:nth-child(odd) {
    color: #492D10 !important;
}

.timing-section-second>div:nth-child(even) {
    color: #0D6836 !important;
} */


/* Pizza and coupon section - FIXED */
.pizza-coupon-section {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.pizza-image {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* max-width: 222px */
}

.pizza-image img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    object-fit: contain;
    /* Changed from 'cover' to 'contain' */
    object-position: center;

}

/* FIXED: Coupon code overlay positioning */
.coupon-code-box {
    position: absolute;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82vw;
    height: 90px;
    max-width: 300px;
    background-color: #0b4a25;
    border: 3px solid #048e3e;
    border-radius: 19px;
    opacity: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.choco-coupon {
    border: 3px solid #A85A19;
    background: #53351C;
}

.coupon-code-label {
    color: #f4dd0f;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    opacity: 0.9;
}

.coupon-code-value {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.46px;
    text-transform: uppercase;
    opacity: 0.9;
    text-shadow: rgba(0, 0, 0, 0.5) 0px 2px 4px;
}

.choco-value {
    font-size: 20px;
}

/* Info section */
.info-section {
    flex: 1;
    padding: 0 24px 24px 24px;
}

.info-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #000000;
    font-size: 16px;
    line-height: 17px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}


.info-item:nth-last-child(2) {
    margin-bottom: 2px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.checkmark {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    background-color: transparent;
    background-image: url('../images/checked.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
}

/* Variant with brown checkmark */
.checkmark-brown {
    background-image: url('../images/checked-brown.svg');
}

.info-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #1a1b1b;
    font-size: 13px;
    line-height: 17px;
    flex: 1;
}

.contact-info {
    margin-bottom: 2px;
}

.phone-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}

.phone-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
}

.phone-number {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #135121;
    font-size: 13px;
    letter-spacing: 0.619px;
    direction: initial;
}

.phone-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.info-text.bold {
    font-weight: 600;
}

.hidden-checkmark {
    visibility: hidden;
}


.benefits-section {
    flex: 1;
    padding: 0 24px 24px 24px;
}

.benefits-title {
    color: #5A530F;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 17px;
    margin-bottom: 10px;
    /* 121.429% */
}

.benefits-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.successmark {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    background-color: transparent;
    background-image: url('../images/tick.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
}

.benefits-text {
    color: #5A530F;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 12px;
    /* 100% */
}

@media (max-width: 480px) {
    .coupon-container {
        width: 100%;
        max-width: 430px;
        height: auto;
        min-height: 800px;
    }
}

@media (max-width: 320px) {
    .coupon-code-value {
        font-size: 8vw;
    }

    .choco-value {
        font-size: 6vw;
    }
}

html:not([dir]) .corner-decoration {
  visibility: hidden;
}


html[dir="rtl"] .corner-pizza-image.top-left {
    left: auto;
    right: 0;
    transform: rotate(90deg);
}

html[dir="rtl"] .corner-pizza-image.bottom-right {
    /* Swap bottom-right to bottom-left in RTL */
    right: auto;
    left: 0;
    transform: rotate(270deg);
}

/* Example: also move the smaller decoration */
html[dir="rtl"] .corner-decoration {
    right: auto;
    left: 14px;
}


/*FOOTER*/
.footer {
    padding: 0 24px 24px;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #333;
}

.footer hr {
    padding-bottom: 14px;
    border: none;
    border-top: 1px solid #D0C5C5;
    margin: 0 auto;
    width: 100%;
}

.footer h2 {
    color: #000;

    text-align: center;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 15px;
    /* 125% */
}

.footer div {
    /* display: flex; */
    /* gap: 2px; */
    margin: 4px 0
}

.footer-item {
    display: flex;
    margin-bottom: 12px;
    gap: 10px !important;
    text-align: initial;
    align-items: start;
}

.footer-contact {
    padding-inline-start: 20px;
    display: flex;
    flex-direction: column;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.footer img {
    width: 14px;
    height: 14px;
    display: block;
}

.footer a {
    color: #000000;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 15px;
    direction: initial;
    /* 125% */
}

.footer a:hover {
    color: #007bff;
}