/* --- [elantory.com] 통합 광고 블록 CSS (중복 제로 & 바닥 정렬 복원) --- */

  /* 1. 공통 레이아웃 */
  #main-top-display, #main-mid1-display, #main-mid2-display, #main-btm-viewer { 
    width: 100%; clear: both; min-height: 250px; position: relative; z-index: 5;
  }
  #main-top-display { margin: 0 auto 10px auto; }
  #main-mid1-display, #main-mid2-display { margin: 35px auto; }
  #main-btm-viewer { margin: 40px auto; }

  /* 2. 레이어 및 박스 테두리 */
  .et-layer, .et-main-layer, .et-box-item, .et-main-box { background: #ffffff; }
  .et-layer, .et-main-layer { width: 100%; }
  .et-ad-tight { padding: 0; line-height: 0; }
  
  .et-box-item, .et-main-box { 
    border: 1px solid #e2e8f0; box-sizing: border-box; text-align: left; 
  }
  #main-top-display .et-box-item, #main-mid2-display .et-box-item { padding: 30px 45px; }
  #main-mid1-display .et-main-box, #main-btm-viewer .et-main-box { padding: 25px 30px; }

  /* 3. 플렉스 컨테이너 (★ 중심 안맞음 해결: 바닥선 정렬 flex-end 복구) */
  .et-flex-container, .et-main-flex { 
    display: flex; align-items: flex-end; justify-content: center; margin: 0 auto; 
  }
  #main-top-display .et-flex-container, #main-mid2-display .et-flex-container { gap: 45px; max-width: 1000px; }
  #main-mid1-display .et-main-flex, #main-btm-viewer .et-main-flex { gap: 45px; }
  
  .et-text-side { text-align: left; } /* flex:1 은 제거 상태 유지 (가운데 예쁘게 모이도록) */

  /* 4. 텍스트 및 뱃지 폰트 */
  .et-badge-top, .et-main-badge-blue { 
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 2px; margin-bottom: 12px; 
  }
  .et-badge-top, .et-point-orange { color: #ff6b3d; }
  .et-main-badge-blue, #main-mid1-display .et-main-point-blue { color: #00AEEF; } 
  #main-btm-viewer .et-main-badge-blue, #main-btm-viewer .et-main-point-blue { color: #2563eb; }

  .et-title-row, .et-main-row, .et-main-row-btm { 
    font-weight: 700; line-height: 1.4; color: #1a1a1a; letter-spacing: -0.5px; 
    white-space: normal; word-break: keep-all; 
  }
  .et-title-row, .et-main-row-btm { font-size: 24px; }
  .et-main-row { font-size: 22px; }

  /* 5. 버튼 공통 속성 */
  div[id*="-viewer"] a[class*="-btn"],
  div[id*="-display"] a[class*="-btn"] { 
    display: inline-flex; align-items: center; justify-content: center; 
    color: #ffffff; text-decoration: none; font-size: 17px; font-weight: 700; 
    white-space: nowrap; transition: all 0.2s ease; border: none; 
    margin-bottom: 2px; /* 텍스트 바닥선과 완벽하게 일치하도록 미세 조정 */
  }

  a.et-main-ali-btn { background: linear-gradient(135deg, #ff6b3d 0%, #e31b1b 100%); padding: 16px 42px; box-shadow: 0 4px 15px rgba(227, 27, 27, 0.2); }
  a.et-main-ali-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(227, 27, 27, 0.3); background: linear-gradient(135deg, #ff7d4d 0%, #ff5757 100%); color: #ffffff; }

  a.et-main-airalo-btn { background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%); padding: 16px 40px; box-shadow: 0 4px 15px rgba(0, 174, 239, 0.2); }
  a.et-main-airalo-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 114, 255, 0.3); background: linear-gradient(135deg, #1ad0ff 0%, #1a82ff 100%); color: #ffffff; }

  a.et-main-coupang-btn { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); padding: 18px 45px; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2); }
  a.et-main-coupang-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3); background: linear-gradient(135deg, #4d91ff 0%, #3572f5 100%); color: #ffffff; }

  /* 6. 아이콘 및 법적 문구 */
  .et-arrow { margin-left: 10px; font-size: 20px; }
  .et-main-icon { width: 20px; height: 20px; margin-left: 8px; }
  .et-main-legal { margin-top: 25px; padding-top: 15px; border-top: 1px dashed #e2e8f0; font-size: 11px; color: #333333; text-align: center; }

  /* 7. 모바일 반응형 */
  @media (max-width: 768px) {
    #main-top-display, #main-mid1-display, #main-mid2-display, #main-btm-viewer { min-height: 200px; }
    .et-flex-container, .et-main-flex { flex-direction: column; align-items: center; gap: 20px; text-align: center; }
    .et-title-row { font-size: 19px; }
    .et-main-row { font-size: 18px; }
    .et-main-row-btm { font-size: 20px; }
    
    div[id*="-viewer"] a[class*="-btn"], div[id*="-display"] a[class*="-btn"] { width: 100%; box-sizing: border-box; margin-bottom: 0; }
    .et-box-item, .et-main-box { padding: 20px 15px; }
  }

  /* 8. 사이드바 하이브리드 위젯 */
  .blog-custom-widget { position: relative; width: 100%; max-width: 320px; margin: 10px auto; padding: 2.5px; border-radius: 10px; overflow: hidden; background: #e1e5e9; box-shadow: rgba(0, 0, 0, 0.1) 0 2px 10px; z-index: 1; }
  .border-glow-layer { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(transparent, #009452 10%, transparent 20%, transparent 50%, #009452 60%, transparent 70%); animation: border-rotate 4s linear infinite; z-index: 0; }
  @keyframes border-rotate { 100% { transform: rotate(360deg); } }
  .inner-content-layer { position: relative; z-index: 1; background: var(--white); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
  #side-final-container .ad-notice-text { font-size: 10px; color: #666; padding: 12px 5px; border-bottom: 1px solid #f3f3f3; line-height: 1; letter-spacing: -0.8px; white-space: nowrap; text-align: center; background: #ffffff; }
  .view-wrap iframe { width: 100%; height: 320px; border: none; display: block; }
  .agoda-fallback-box { padding: 30px 0 20px; text-align: center; }
  .agoda-title { color: #101010; font-weight: 700; font-size: 19px; margin-bottom: 20px; }
  .agoda-render-container { min-height: 420px; display: flex; justify-content: center; }
  
  #side-agoda-view div#adgshp495563967 iframe { margin: 0 auto; display: block; }
  @media (max-width: 340px) { #adgshp495563967 { transform: scale(0.9); transform-origin: top center; } }
  
  /* 9. 쿠팡 및 서브 위젯 iframe CLS(덜컹거림) 방지용 강제 높이 */
  .et-box-item iframe, .et-mid-box iframe, .et-main-box iframe, .blog-custom-widget iframe { 
      min-height: 140px; display: block; margin: 0 auto;
  }