.cts-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.cts-store-buttons-auto {
  margin-top: 0;
  margin-bottom: 0;
}

.cts-store-buttons.cts-layout-stacked {
  flex-direction: column;
  align-items: flex-start;
}

.cts-store-buttons.cts-align-left { justify-content: flex-start; }
.cts-store-buttons.cts-align-center { justify-content: center; }
.cts-store-buttons.cts-align-right { justify-content: flex-end; }
.cts-store-buttons.cts-layout-stacked.cts-align-center { align-items: center; }
.cts-store-buttons.cts-layout-stacked.cts-align-right { align-items: flex-end; }

.cts-store-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  min-height: 54px;
  padding: 8px 14px;
  border: 1px solid #1d1d1f;
  border-radius: 11px;
  background: #000;
  color: #fff !important;
  text-decoration: none !important;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.cts-store-button:hover,
.cts-store-button:focus {
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0,0,0,.17);
  opacity: .97;
}

.cts-store-button:focus-visible {
  outline: 3px solid #5b9dd9;
  outline-offset: 3px;
}

.cts-store-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
}

.cts-store-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.cts-play-icon { width: 29px; height: 29px; }

.cts-store-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  white-space: nowrap;
}

.cts-store-copy small {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1;
  color: #fff !important;
}

.cts-store-copy strong {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  color: #fff !important;
}

.cts-size-large .cts-store-button {
  min-width: 210px;
  min-height: 64px;
  padding: 10px 17px;
}
.cts-size-large .cts-store-icon { width: 33px; height: 33px; }
.cts-size-large .cts-store-copy small { font-size: 10px; }
.cts-size-large .cts-store-copy strong { font-size: 23px; }

@media (max-width: 560px) {
  .cts-store-buttons.cts-layout-horizontal {
    flex-direction: column;
    align-items: stretch;
  }
  .cts-store-buttons.cts-layout-horizontal .cts-store-button {
    width: 100%;
    max-width: 280px;
    justify-content: flex-start;
  }
}

/* Homepage header placement (v1.3.0) */
.cts-header .cts-header-right {
  align-items: flex-start !important;
  gap: 18px !important;
}

.cts-header .cts-header-menu-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.cts-header .cts-header-menu-stack .cts-nav {
  width: 100%;
  justify-content: center;
}

.cts-header .cts-header-store-buttons {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center !important;
  flex-wrap: nowrap;
  gap: 10px;
}

.cts-header .cts-header-store-buttons .cts-store-button {
  min-width: 142px;
  min-height: 43px;
  padding: 6px 11px;
  border-radius: 9px;
  gap: 8px;
}

.cts-header .cts-header-store-buttons .cts-store-icon {
  width: 22px;
  height: 22px;
}

.cts-header .cts-header-store-buttons .cts-play-icon {
  width: 23px;
  height: 23px;
}

.cts-header .cts-header-store-buttons .cts-store-copy {
  gap: 2px;
}

.cts-header .cts-header-store-buttons .cts-store-copy small {
  font-size: 7px;
}

.cts-header .cts-header-store-buttons .cts-store-copy strong {
  font-size: 15px;
}

@media (max-width: 980px) {
  .cts-header .cts-header-right {
    align-items: center !important;
    gap: 14px !important;
  }

  .cts-header .cts-header-menu-stack {
    width: 100%;
    gap: 12px;
  }

  .cts-header .cts-header-store-buttons {
    width: 100%;
    justify-content: center !important;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .cts-header .cts-header-store-buttons.cts-layout-horizontal {
    flex-direction: row;
    align-items: center;
  }

  .cts-header .cts-header-store-buttons.cts-layout-horizontal .cts-store-button {
    width: auto;
    max-width: none;
    min-width: 138px;
  }
}
