/**
 * QuantumAtom Social Login — buttons styles
 */
.qasl-buttons {
  margin: 18px 0 8px;
}

.qasl-divider {
  position: relative;
  text-align: center;
  font-size: 12px;
  color: #7c8480;
  margin: 18px 0 14px;
  letter-spacing: 0.05em;
}
.qasl-divider::before,
.qasl-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 80px);
  border-top: 1px solid #dfe0df;
}
.qasl-divider::before { left: 0; }
.qasl-divider::after  { right: 0; }
.qasl-divider span {
  background: #fff;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.qasl-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px !important;
  margin: 0 0 8px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: filter 0.2s, opacity 0.2s;
  box-shadow: none !important;
  text-transform: none;
  font-family: inherit !important;
}
.qasl-btn:hover {
  filter: brightness(0.92);
  color: #fff !important;
  opacity: 1 !important;
}
.qasl-btn:focus,
.qasl-btn:active { color: #fff !important; outline: none; }

.qasl-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* LINE green */
.qasl-btn-line {
  background: #06C755 !important;
}
.qasl-btn-line:hover { background: #06C755 !important; }

/* Facebook blue */
.qasl-btn-fb {
  background: #1877F2 !important;
}
.qasl-btn-fb:hover { background: #1877F2 !important; }

/* 結帳頁的 .woocommerce-info 容器（已有帳號 banner）內 spacing 調整 */
.woocommerce-info .qasl-buttons,
form.login .qasl-buttons,
form.register .qasl-buttons {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #dfe0df;
}
form.login .qasl-buttons .qasl-divider,
form.register .qasl-buttons .qasl-divider {
  margin-top: 0;
}

/* ─── Edit Account 頁：已連結社群帳號區塊 ─── */
.qasl-linked-accounts {
  border: 1px solid #dfe0df;
  padding: 20px 24px;
  margin: 32px 0 0;
}
.qasl-linked-accounts > legend {
  font-size: 14px;
  font-weight: 500;
  padding: 0 8px;
  color: #354238;
}
.qasl-linked-desc {
  font-size: 13px;
  color: #7c8480;
  margin: 0 0 18px;
  line-height: 1.7;
}
.qasl-linked-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qasl-linked-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #f5f5f3;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.qasl-linked-item.is-linked { border-color: #06C755; }
.qasl-linked-item--fb.is-linked { border-color: #1877F2; }

.qasl-provider-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.qasl-linked-item--line .qasl-provider-icon { background: #06C755; }
.qasl-linked-item--fb .qasl-provider-icon { background: #1877F2; }
.qasl-provider-icon svg { width: 22px; height: 22px; }

.qasl-provider-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.qasl-provider-info strong {
  font-size: 14px;
  font-weight: 500;
  color: #354238;
}
.qasl-status {
  font-size: 12px;
  color: #5a665d;
}
.qasl-status--off {
  color: #7c8480;
}

.qasl-actions {
  flex-shrink: 0;
}
.qasl-link-btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  text-decoration: none !important;
  color: #fff !important;
  border: 0;
  cursor: pointer;
  transition: filter 0.2s;
}
.qasl-link-btn:hover { filter: brightness(0.92); color: #fff !important; }
.qasl-link-btn--line { background: #06C755; }
.qasl-link-btn--fb   { background: #1877F2; }
.qasl-link-btn--danger {
  background: transparent;
  color: #c53d3d !important;
  border: 1px solid #c53d3d;
}
.qasl-link-btn--danger:hover {
  background: #c53d3d;
  color: #fff !important;
  filter: none;
}

@media (max-width: 560px) {
  .qasl-linked-item {
    flex-wrap: wrap;
    gap: 10px;
  }
  .qasl-actions { width: 100%; }
  .qasl-link-btn { display: block; text-align: center; }
}
