/* 기존 모바일 CSS 다음에 로드하세요. 광고 영역에만 적용됩니다. */
.ad-include {
  padding-top:50px;
  width: 400px;
}

.al-ad {
  /*--ad-background: #f3f0f9;*/
  --ad-surface: #fff;
  --ad-border: #ddd;
  flex: 0 0 400px;
  width: 400px;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  color: #111;
  background: var(--ad-background);
  font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
}

.al-ad::-webkit-scrollbar {
  display: none;
}

.al-ad *,
.al-ad *::before,
.al-ad *::after {
  box-sizing: border-box;
}

.al-ad .al-ad-inner {
  padding: 24px 16px 20px;
}

.al-ad .al-ad-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  /*
  border: 1px solid var(--ad-border);
  border-radius: 9px;
  background: var(--ad-surface);
  */
  font-size: 24px;
  font-weight: 800;
}

.al-ad .al-ad-logo img {
  display: block;
  max-width: 55%;
  max-height: 30px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.al-ad .al-ad-features {
  display: grid;
  gap: 12px;
  margin: 36px 0 30px;
}

.al-ad .al-ad-feature {
  display: flex;
  align-items: center;
  height:120px;
  gap: 10px;
  padding: 22px 26px;
  background-color: #ffefef;
  border-radius: 12px;
}

.al-ad .al-ad-icon {
  flex: 0 0 70px;
  height: 70px;
  border: 1px solid var(--ad-border);
  border-radius: 50%;
  background: var(--ad-surface);
  overflow: hidden;
}

.al-ad .al-ad-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.al-ad .al-ad-copy {
  flex: 1;
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.al-ad .al-ad-copy strong {
  display: block;
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -.5px;
  color:#5e4a95;
}

.al-ad .al-ad-copy p {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -.3px;
  color: #444;
  word-break: keep-all;
}

.al-ad .al-ad-slides {
  overflow: hidden;
  border-radius: 12px;
  /*background: var(--ad-surface);
  border: 1px solid var(--ad-border);*/
}

.al-ad .al-ad-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 315 / 246;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
  word-break: keep-all;
}

.al-ad .al-ad-slide[hidden] {
  display: none;
}

/* 이미지 배너에는 al-ad-slide--image 클래스를 추가하세요. */
.al-ad .al-ad-slide--image {
  padding: 0;
}

.al-ad .al-ad-slide > a {
  display: block;
  width: 100%;
  height: 100%;
}

.al-ad .al-ad-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.al-ad .al-ad-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  margin: 3px 0 6px;
}

.al-ad .al-ad-dot {
  display: grid;
  place-items: center;
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.al-ad .al-ad-dot::before {
  content: "";
  width: inherit;
  height: inherit;
  background: #fff;
  border-radius:50%;
}

.al-ad .al-ad-dot[aria-current="true"]::before {
  background: var(--primary-color);
  border-color:var(--primary-color)
}

.al-ad .al-ad-socials {
  display: flex;
  gap: 7px;
  margin-bottom: 9px;
}

.al-ad .al-ad-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.al-ad .al-ad-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 4px;
  border: 1px solid var(--ad-border);
  border-radius: 7px;
  background: #fff;
  color: #111;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.al-ad a[aria-disabled="true"] {
  cursor: default;
  color:#545454;
}

.al-ad a[href]:hover {
  background: #f4f4f4;
}

.al-ad a:focus-visible,
.al-ad button:focus-visible {
  outline: 2px solid #222;
  outline-offset: -3px;
}

.al-ad .al-ad-slide--image {
  display: block;
  aspect-ratio: auto;
  padding: 0;
}

.al-ad .al-ad-slide--image[hidden] {
  display: none;
}

.al-ad .al-ad-slide--image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.al-ad .al-ad-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
}

.al-ad .al-ad-dots {
  margin: 0;
}

.al-ad .al-ad-dot::before {
  border: 1px solid #cfc5e1;
}

.al-ad .al-ad-toggle {
  color: #584675;
  font-size: 10px;
  padding: 0px;
  cursor: pointer;
}

.al-ad .al-ad-toggle[hidden] {
  display: none;
}

/* SNS의 로고/크기는 기존 common.css의 footer-sns-group 및 sns-round-icon을 재사용합니다. */
.al-ad .footer-sns-group.al-ad-socials {
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
}