/* Display styles for Dize Sports News ad slots and the logged-in customer portal. */
.dize-ad-slot {
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto 1rem;
  isolation: isolate;
  /* Align the label by the actual available width on narrower layouts. */
  container-type: inline-size;
}
.dize-ad-slot *, .dize-portal * { box-sizing: border-box; }
.dize-ad-slot .dize-ad-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--dize-ad-ratio);
  overflow: hidden;
  background: #071724;
  border: 1px solid rgba(4, 22, 31, .12);
  line-height: 0;
}
.dize-ad-slot .dize-ad-disclosure {
  display: block;
  margin: 0;
  padding: 3px 0 0;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0;
  color: #505b68;
}
.dize-ad-slot--compact .dize-ad-disclosure { text-align: left; }
.dize-ad-slot--wide .dize-ad-disclosure { text-align: center; }
/* 300px-wide placements stay left-aligned, even if a wider slot shrinks on mobile. */
@container (max-width: 300px) {
  .dize-ad-slot .dize-ad-disclosure { text-align: left; }
}
.dize-ad-slot .dize-ad-link {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.dize-ad-slot .dize-ad-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border: 0;
  margin: 0;
  padding: 0;
}
.dize-ad-slot .dize-ad-link[href] { cursor: pointer; }
.dize-ad-slot .dize-ad-link[href]:focus-visible { outline: 3px solid #e5001d; outline-offset: -3px; }

.dize-portal { width: 100%; max-width: 1100px; margin: 1.5rem auto; color: #172637; font-size: 15px; line-height: 1.5; }
.dize-portal-header { background: linear-gradient(113deg, #071725 0%, #0c283b 76%, #c90020 76.1%, #f5162c 100%); color: #fff; padding: 25px 30px; border-radius: 8px 8px 0 0; }
.dize-portal-header .dize-eyebrow { margin: 0 0 6px; color: #f4c2c9; letter-spacing: .18em; font-size: 11px; font-weight: 800; }
.dize-portal-header h2 { color: #fff; margin: 0 0 6px; font-size: clamp(23px,3vw,32px); }
.dize-portal-header p { margin: 0; color: #ebeff4; }
.dize-portal-panel, .dize-customer { background: #fff; border: 1px solid #e2e6ea; padding: 24px; border-top: 0; }
.dize-customer { border-radius: 0 0 8px 8px; }
.dize-customer + .dize-customer { border-top: 1px solid #e2e6ea; border-radius: 8px; margin-top: 20px; }
.dize-customer-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid #e9edf1; margin-bottom: 18px; }
.dize-customer-heading h3 { margin: 0 0 12px; color: #10263a; }
.dize-portal h4 { margin: 22px 0 10px; color: #10263a; font-size: 17px; }
.dize-pill { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #9a0820; background: #ffedf0; padding: 5px 9px; border-radius: 50px; white-space: nowrap; }
.dize-muted, .dize-note { color: #5d6b79; font-size: 13px; }
.dize-current-ads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px,100%),1fr)); gap: 15px; }
.dize-current-ad { border: 1px solid #e1e6ed; border-radius: 6px; padding: 13px; background: #fcfcfd; }
.dize-current-ad img { display: block; max-height: 180px; width: 100%; object-fit: contain; background: #071725; margin-bottom: 10px; }
.dize-current-ad p { margin: 5px 0; color: #4a5664; font-size: 13px; }
.dize-agreement { border: 1px solid #dfe6eb; border-radius: 6px; margin: 12px 0; overflow: hidden; background: white; }
.dize-agreement summary { cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding: 14px 16px; background: #f4f7f9; }
.dize-agreement summary small { display: block; color: #617080; font-size: 12px; }
.dize-agreement-body { padding: 0 16px 16px; }
.dize-agreement-body > p { font-size: 14px; }
.dize-terms { padding: 12px; background: #f7f8fa; border-left: 3px solid #c90c29; white-space: normal; }
.dize-table-wrap { overflow-x: auto; }
.dize-stats-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dize-stats-table th { background: #10263a; color: white; text-align: left; }
.dize-stats-table th, .dize-stats-table td { padding: 10px; border: 1px solid #dfe6eb; }
.dize-stats-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.dize-portal input[type='text'], .dize-portal input[type='password'] { max-width: 100%; }
@media (max-width: 540px) { .dize-portal-header, .dize-customer, .dize-portal-panel { padding: 15px; } }
