/* Loyalty offer page */
.offer-page {
    --offer-orange: #e87428;
    --offer-orange-dark: #d96a20;
    --offer-ink: #2b2b2b;
    --offer-muted: #6b6b6b;
    --offer-dark: #2f3540;
    --icon-size: 44px;
    box-sizing: border-box;
    width: 100%;
    padding: 12px 10px 28px;
}

.offer-page *,
.offer-page *::before,
.offer-page *::after {
    box-sizing: border-box;
}

.offer-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.offer-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid #e8e2dc;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(40, 30, 20, 0.08);
}

.offer-card-header {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.offer-card-header-loyalty {
    align-items: flex-start;
    justify-content: center;
    min-height: 104px;
    padding: 22px 24px;
    text-align: left;
    background: linear-gradient(145deg, #f5863a 0%, #f27429 48%, #e86820 100%);
}

.offer-header-watermark {
    position: absolute;
    right: -6px;
    top: 50%;
    z-index: 0;
    width: 132px;
    height: 132px;
    color: rgba(255, 255, 255, 0.18);
    pointer-events: none;
    transform: translateY(-50%);
    user-select: none;
}

.offer-header-watermark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.offer-card-header-loyalty .offer-brand,
.offer-card-header-loyalty .offer-card-title {
    position: relative;
    z-index: 1;
}

.offer-card-header-register {
    align-items: center;
    justify-content: center;
    min-height: 108px;
    padding: 26px 24px;
    text-align: left;
    background: #1f242c;
}

.offer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.offer-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #fff;
}

.offer-brand-mark svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: currentColor;
}

.offer-card-header-loyalty .offer-card-title {
    font-size: 28px;
    letter-spacing: 0.06em;
}

.offer-card-title {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1.15;
    text-transform: uppercase;
}

.offer-register-header-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: auto;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

.offer-register-avatar {
    display: inline-flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
}

.offer-register-avatar svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: #f0a020;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.offer-register-heading {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-width: 0;
    text-align: left;
}

.offer-card-header-register .offer-card-title,
.offer-card-header-register .offer-card-subtitle {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
}

.offer-card-header-register .offer-card-title {
    font-size: 26px;
    letter-spacing: 0.05em;
}

.offer-card-subtitle {
    color: #c5ccd6;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.offer-card-media {
    position: relative;
    background: #f3ebe3;
}

.offer-card-media img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.offer-card-media-register {
    margin-bottom: 28px;
}

.offer-register-badge {
    position: absolute;
    left: 50%;
    bottom: -22px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
    padding: 10px 16px 10px 10px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(40, 30, 20, 0.16);
    color: var(--offer-ink);
    text-decoration: none;
    transform: translateX(-50%);
}

.offer-register-badge-icon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff3e8;
}

.offer-register-badge-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--offer-orange);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.offer-register-badge-copy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.offer-register-badge-copy span,
.offer-register-badge-copy strong {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
    letter-spacing: 0;
    line-height: 1.2;
}

.offer-register-badge-copy span {
    color: #7a736c;
    font-size: 12px;
    font-weight: 600;
}

.offer-register-badge-copy strong {
    color: var(--offer-orange);
    font-size: 18px;
    font-weight: 800;
}

.offer-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 16px;
    padding: 18px 18px 20px;
}

.offer-card-body-register {
    padding-top: 12px;
}

.offer-collect {
    display: flex;
    align-items: center;
    gap: 14px;
}

.offer-collect-icon {
    position: relative;
    display: flex;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 2px solid var(--offer-orange);
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--offer-orange) 0 22px, #fff 23px 27px, transparent 28px);
    box-shadow: 0 4px 14px rgba(232, 116, 40, 0.18);
    color: #fff;
}

.offer-collect-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.offer-collect-copy strong {
    display: block;
    color: var(--offer-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.offer-collect-copy span {
    display: block;
    margin-top: 3px;
    color: var(--offer-orange);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.offer-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #f0d2b8;
    border-radius: 12px;
    background: #fff9f4;
}

.offer-highlight-star {
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #f0a020;
}

.offer-highlight-star svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.offer-highlight-copy {
    min-width: 0;
}

.offer-highlight-copy strong {
    display: block;
    color: var(--offer-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.offer-highlight-copy span {
    display: block;
    margin-top: 3px;
    color: #8a837c;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.offer-howto-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--offer-ink);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.offer-howto-icon {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--offer-orange);
    box-shadow: 0 3px 10px rgba(232, 116, 40, 0.3);
}

.offer-howto-icon svg {
    width: 13px;
    height: 13px;
    fill: #fff;
}

.offer-reward-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.offer-reward-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: #fff7f0;
}

.offer-reward-points {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 2px solid #f0c39a;
    border-radius: 50%;
    background: #fff;
    color: var(--offer-orange);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
}

.offer-reward-copy {
    color: #5a544e;
    font-size: 12px;
    line-height: 1.45;
}

.offer-reward-copy strong {
    color: var(--offer-ink);
    font-weight: 800;
}

.offer-reward-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 78px;
    height: 36px;
    margin: 0;
    padding: 0 14px;
    border-radius: 6px;
    background: var(--offer-orange);
    box-shadow: none;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
}

.offer-divider {
    position: relative;
    height: 1px;
    margin: 2px 0;
    background: repeating-linear-gradient(90deg, #e4ddd6 0 6px, transparent 6px 12px);
}

.offer-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--offer-orange);
    box-shadow: 0 0 0 3px #fff;
    transform: translate(-50%, -50%);
}

.offer-terms {
    margin-top: auto;
    padding-top: 2px;
}

.offer-terms h3 {
    margin: 0 0 10px;
    color: var(--offer-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.offer-terms-copy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--offer-muted);
    font-size: 12px;
    line-height: 1.45;
}

.offer-terms-icon {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff3e8;
    border: 1px solid #f0d2b8;
}

.offer-terms-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--offer-orange);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.offer-page a {
    color: inherit;
}

@media (max-width: 900px) {
    .offer-page-grid {
        grid-template-columns: 1fr;
    }

    .offer-card-media img {
        height: 190px;
    }
}

@media (max-width: 640px) {
    .offer-page {
        padding: 8px 0 20px;
    }

    .offer-card-body {
        padding: 16px;
        gap: 14px;
    }

    .offer-card-title {
        font-size: 22px;
    }

    .offer-collect-icon {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
        background:
            radial-gradient(circle at center, var(--offer-orange) 0 19px, #fff 20px 24px, transparent 25px);
    }

    .offer-collect-copy strong {
        font-size: 16px;
    }

    .offer-reward-item {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .offer-reward-points {
        width: 42px;
        height: 42px;
        font-size: 12px;
    }

    .offer-reward-code {
        grid-column: 2;
        justify-self: stretch;
        width: 100%;
        max-width: 120px;
        margin: 0;
    }

    .offer-register-badge {
        min-width: 0;
        width: calc(100% - 28px);
    }
}
