/* Customer Center — promotion board */

.cc-board-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

@media (min-width: 900px) {
  .cc-board-toolbar {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
  }
}

.cc-board-toolbar__total {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-family: Poppins, Pretendard, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  color: #333333;
}

.cc-board-toolbar__total-label {
  font-weight: 400;
}

.cc-board-toolbar__total-count {
  font-weight: 700;
  color: var(--cc-brand-blue);
}

.cc-board-search {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 13px;
  width: 100%;
}

@media (min-width: 900px) {
  .cc-board-search {
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
}

.cc-board-search__select-wrap {
  position: relative;
  flex: 1 1 160px;
  max-width: 100%;
}

@media (min-width: 900px) {
  .cc-board-search__select-wrap {
    flex: 0 0 160px;
    max-width: 160px;
  }
}

.cc-board-search__select {
  appearance: none;
  width: 100%;
  height: 50px;
  padding: 0 44px 0 20px;
  border: 1px solid #dddddd;
  border-radius: 0;
  background-color: #ffffff;
  font: inherit;
  font-size: 16px;
  color: #8b8b8b;
  cursor: pointer;
}

.cc-board-search__select:focus-visible {
  outline: 2px solid var(--cc-brand-blue);
  outline-offset: 2px;
}

.cc-board-search__select-icon {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.cc-board-search__input {
  flex: 1 1 200px;
  min-width: 0;
  height: 50px;
  padding: 15px 20px 16px;
  border: 1px solid #dddddd;
  font: inherit;
  font-size: 16px;
  color: #111111;
}

@media (min-width: 900px) {
  .cc-board-search__input {
    flex: 0 0 300px;
    width: 300px;
  }
}

.cc-board-search__input::placeholder {
  color: #8b8b8b;
}

.cc-board-search__input:focus-visible {
  outline: 2px solid var(--cc-brand-blue);
  outline-offset: 2px;
}

.cc-board-search__submit {
  flex: 1 1 120px;
  min-height: 50px;
  padding: 0 20px;
  border: none;
  background-color: var(--cc-brand-blue);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
}

@media (min-width: 900px) {
  .cc-board-search__submit {
    flex: 0 0 120px;
    width: 120px;
  }
}

.cc-board-search__submit:hover,
.cc-board-search__submit:focus-visible {
  filter: brightness(1.05);
}

.cc-board-search__submit:focus-visible {
  outline: 2px solid var(--cc-accent-blue);
  outline-offset: 2px;
}

.cc-board-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-board-item {
  border-top: 1px solid #e8e8e8;
}

.cc-board-item:first-child {
  border-top-color: #000000;
}

.cc-board-item:last-child {
  border-bottom: 1px solid #e8e8e8;
}

.cc-board-item__link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 10px;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.cc-board-item__link:hover .cc-board-item__title,
.cc-board-item__link:focus-visible .cc-board-item__title {
  color: var(--cc-brand-blue);
}

.cc-board-item__link:focus-visible {
  outline: 2px solid var(--cc-brand-blue);
  outline-offset: 2px;
}

.cc-board-item__num {
  font-family: Poppins, Pretendard, sans-serif;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 400;
  line-height: 1;
  color: #c4c4c4;
}

.cc-board-item__num--desktop {
  display: none;
}

.cc-board-item__num--mobile {
  font-size: 14px;
  color: #999999;
}

.cc-board-item__thumb {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 200 / 140;
  border-radius: 0;
  overflow: hidden;
  background-color: #d9d9d9;
}

.cc-board-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cc-board-thumb-play img {
  width: clamp(36px, 12vw, 48px);
  height: auto;
  max-width: 42%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.cc-board-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cc-board-item__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cc-board-item__title {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 500;
  line-height: 1.35;
  color: #333333;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: keep-all;
}

.cc-board-item__summary {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: #656565;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: keep-all;
}

.cc-board-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-top: 4px;
}

.cc-board-item__date {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: #a9a9a9;
}

.cc-board-item__views {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: #999999;
}

.cc-board-item__views--desktop {
  display: none;
}

@media (min-width: 900px) {
  .cc-board-item__link {
    display: grid;
    grid-template-columns: auto 200px minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 0;
    min-height: 140px;
    padding: 20px 10px;
  }

  .cc-board-item__num--desktop {
    display: block;
    grid-column: 1;
    grid-row: 1;
    padding: 0 30px 0 40px;
  }

  .cc-board-item__num--mobile {
    display: none;
  }

  .cc-board-item__thumb {
    grid-column: 2;
    grid-row: 1;
    width: 200px;
    height: 140px;
    max-width: none;
    aspect-ratio: auto;
  }

  .cc-board-item__body {
    grid-column: 3;
    grid-row: 1;
    padding: 0 40px 0 52px;
    gap: 10px;
  }

  .cc-board-item__summary {
    -webkit-line-clamp: 2;
  }

  .cc-board-item__meta {
    padding-top: 12px;
  }

  .cc-board-item__views--desktop {
    display: block;
    grid-column: 4;
    grid-row: 1;
    padding: 0 40px 0 10px;
    font-size: 14px;
    color: #999999;
    align-self: center;
  }

  .cc-board-item__views--inline {
    display: none;
  }
}

@media (min-width: 1024px) {
  .cc-board-item__link {
    min-height: 180px;
  }
}

.cc-board-empty {
  padding: 48px 16px;
  text-align: center;
  font-size: 16px;
  color: #666666;
  border-top: 1px solid #e8e8e8;
}

.cc-board-empty[hidden] {
  display: none;
}

.cc-board-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 12px;
}

.cc-board-pagination__link,
.cc-board-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 8px;
  border: none;
  border-radius: 100px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #474747;
  text-decoration: none;
  cursor: pointer;
}

.cc-board-pagination__link.is-active {
  background-color: var(--cc-brand-blue);
  color: #ffffff;
  pointer-events: none;
}

.cc-board-pagination__link:hover:not(.is-active),
.cc-board-pagination__link:focus-visible,
.cc-board-pagination__btn:hover,
.cc-board-pagination__btn:focus-visible {
  background-color: #f0f0f0;
}

.cc-board-pagination__link:focus-visible,
.cc-board-pagination__btn:focus-visible {
  outline: 2px solid var(--cc-brand-blue);
  outline-offset: 2px;
}

.cc-board-pagination__next {
  padding: 10px;
}

.cc-board-pagination__next img {
  display: block;
  width: 12px;
  height: 12px;
}

.cc-board-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Promotion detail */

.cc-pr-detail {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
  width: 100%;
  min-width: 0;
}

.cc-pr-detail__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0 24px;
  border-top: 2px solid #000000;
  border-bottom: 1px solid #e8e8e8;
}

.cc-pr-detail__title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  color: #333333;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: keep-all;
}

.cc-pr-detail__date {
  margin: 0;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 500;
  line-height: 1.2;
  color: #a9a9a9;
}

.cc-pr-detail__video {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: clamp(20px, 2.5vw, 32px) 0 0;
}

.cc-pr-detail__video-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #000000;
}

.cc-pr-detail__video-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
}

.cc-pr-detail__figure {
  margin: clamp(20px, 2.5vw, 32px) auto 0;
  width: 100%;
  max-width: min(920px, 86%);
  min-width: 0;
}

.cc-pr-detail__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(460px, 52vh);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.cc-pr-detail__body {
  padding: clamp(20px, 2.5vw, 32px) 0 0;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 400;
  line-height: 1.75;
  color: #333333;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: keep-all;
}

html[lang="en"] .cc-pr-detail__title,
html[lang="en"] .cc-pr-detail__body {
  word-break: normal;
  overflow-wrap: normal;
}

.cc-pr-detail__actions {
  display: flex;
  justify-content: center;
  padding-top: clamp(8px, 2vw, 16px);
  border-top: 1px solid #e8e8e8;
}

.cc-pr-detail__list-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 50px;
  padding: 0 32px;
  border: none;
  background-color: var(--cc-brand-blue);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.cc-pr-detail__list-btn:hover,
.cc-pr-detail__list-btn:focus-visible {
  filter: brightness(1.05);
}

.cc-pr-detail__list-btn:focus-visible {
  outline: 2px solid var(--cc-accent-blue);
  outline-offset: 2px;
}

.cc-pr-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: clamp(48px, 8vw, 80px) 16px;
  text-align: center;
  border-top: 1px solid #e8e8e8;
}

.cc-pr-detail-empty__message {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  color: #666666;
  text-wrap: pretty;
  word-break: keep-all;
}

@media (min-width: 900px) {
  .cc-pr-detail__header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 24px 0 28px;
  }

  .cc-pr-detail__date {
    flex-shrink: 0;
  }
}
