.offer-ad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; background: #f2f7fc; border: 1px solid #dce5ef; border-radius: 14px; margin: 28px 0; color: #151616; }
.offer-ad__image { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.offer-ad__copy { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.offer-ad__name { color: #083f8f; font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.offer-ad__copy h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; margin: 0 0 18px; }
.offer-ad__copy p { margin-bottom: 22px; }
.offer-ad .btn { max-width: 100%; white-space: normal; }
.offer-ad .btn { display: inline-flex; padding: 15px 22px; border-radius: 4px; background: #083f8f; color: #fff; font-weight: 700; text-decoration: none; }
.offer-ad[data-layout="horizontal-right"] .offer-ad__image { order: 2; }
.offer-ad[data-layout="square"], .offer-ad[data-layout="vertical"] { grid-template-columns: minmax(0,1fr); }
.offer-ad[data-layout="square"] .offer-ad__image { aspect-ratio: 1; min-height: 0; }
.offer-ad[data-layout="vertical"] .offer-ad__image { aspect-ratio: 4/3; min-height: 0; }
.ad-library__section { padding: 34px 0; border-bottom: 1px solid #dce5ef; }
.ad-library__heading { font-size: 22px; }
.ad-library__choices { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.ad-library__choice { padding: 0; border: 3px solid transparent; border-radius: 8px; background: #f2f7fc; color: #151616; cursor: pointer; overflow: hidden; font: inherit; }
.ad-library__choice[aria-pressed=true] { border-color: #083f8f; }
.ad-library__choice img { width: 100%; height: 105px; object-fit: cover; }
.ad-library__choice span { display: block; padding: 6px; }
@media(max-width:760px) { .offer-ad { grid-template-columns: 1fr; } .offer-ad__image { height: 240px; min-height: 0; } .offer-ad__copy { padding: 24px; } .ad-library__choices { gap: 5px; } .ad-library__choice img { height: 65px; } }
@media(max-width:760px) { .offer-ad[data-layout="horizontal-right"] .offer-ad__image { order: 0; } }

.ad-library__section { scroll-margin-top: 110px; }

[data-wgm-rotating-ad],
[data-wgm-ad-current] {
    display: contents;
}

.offer-ad { grid-template-columns: minmax(0, 41%) minmax(0, 1fr); align-items: stretch; }
.offer-ad__image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.offer-ad__copy { justify-content: flex-start; align-self: center; gap: 10px; padding: clamp(16px, 2.6vw, 28px); min-width: 0; }
.offer-ad .offer-ad__copy h2 { margin: 0; font-size: clamp(21px, 2.6vw, 30px); line-height: 1.13; }
.offer-ad .offer-ad__copy p { margin: 0; font-size: clamp(15px, 1.65vw, 18px); line-height: 1.4; }
.offer-ad .offer-ad__copy .btn { margin: 2px 0 0; min-height: 44px; padding: 10px 15px; font-size: 15px; line-height: 1.2; }
.offer-ad__name { display: none; }
.card--shortcode-offer { min-width: 0; }
.card--shortcode-offer .offer-ad[data-layout="feed"] { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; aspect-ratio: 4 / 5; min-height: 100%; width: 100%; margin: 0; border: 0; border-radius: 0; background: #151616; color: white; }
.offer-ad[data-layout="feed"] .offer-ad__image { position: absolute; inset: 0; }
.offer-ad[data-layout="feed"] .offer-ad__copy { isolation: isolate; position: relative; width: 100%; box-sizing: border-box; padding: 16px; background: linear-gradient(transparent, #10141af2 25%); padding-top: 42px; }
.offer-ad[data-layout="feed"] .offer-ad__copy h2, .offer-ad[data-layout="feed"] .offer-ad__copy p { color: white; }
@media (max-width: 600px) {
    .offer-ad { grid-template-columns: minmax(0, 1fr); }
    .offer-ad:not([data-layout="feed"]) .offer-ad__image { height: auto; aspect-ratio: 4 / 5; }
    .offer-ad .offer-ad__copy { padding: 16px; }
    .offer-ad[data-layout="feed"] .offer-ad__copy { padding-top: 42px; }
}

@media (min-width: 601px) {
    .offer-ad[data-layout^="horizontal"] { min-height: 175px; }
    .offer-ad[data-layout^="horizontal"] .offer-ad__image { contain: size; }
}
