/* 社交登入相關樣式 */

/* 分隔線樣式 */
.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.separator span {
  padding: 0 10px;
  color: #6c757d;
  font-size: 14px;
}

/* 社交登入按鈕容器 */
.social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

/* 社交登入按鈕共通樣式 */
.social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

/* Google 按鈕特定樣式 */
.social-login-btn .fa-google {
  color: #4285f4;
}

/* Apple 按鈕特定樣式 */
.social-login-btn .fa-apple {
  color: #000;
}

/* 按鈕懸停效果 */
.social-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Banner */
.cookie-banner {
  z-index: 9999;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  max-width: 90%;
  width: 400px;
  padding: 20px;
  border-radius: 12px;
  font-size: 14px;
  color: #333;
}

@media (max-width: 768px) {
  .cookie-banner {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom) + 20px);
    left: 20px;
    width: 100%;
  }
}

/* 💻 桌機畫面：底部置中 */
@media (min-width: 769px) {
  .cookie-banner {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom) + 20px);
    left: 20px;
    border-radius: 12px 12px 0 0;
  }
}

.cookie-banner-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.cookie-banner-box h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.cookie-banner-box p {
  font-size: 13px;
  line-height: 1.4;
  color: #555;
}

.cookie-banner-box a {
  text-decoration: underline;
  color: #007aff;
  font-size: 13px;
}

.btn-accept {
  background-color: #111;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.cookie-banner-box h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.cookie-banner-box p {
  font-size: 14px;
  color: #444;
}
.cookie-banner-box a {
  text-decoration: underline;
  color: #333;
}
.btn-accept {
  margin-top: 12px;
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}
.cookie-strip {
  z-index: 9999;
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 12px 16px;
  font-size: 13px;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 90%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.cookie-strip a {
  text-decoration: underline;
  color: #007aff;
  font-size: 13px;
}

.cookie-strip .btn-accept {
  background: #111;
  color: #fff;
  border: none;
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
}

.cookie-strip a {
  text-decoration: underline;
  color: #007aff;
  font-size: 13px;
}

.cookie-strip .btn-accept {
  background: #111;
  color: #fff;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
}
/* Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-content {
  background: #fff;
  padding: 24px;
  max-width: 600px;
  width: 90%;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.cookie-group {
  margin: 20px 0;
}
.cookie-title {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cookie-desc {
  font-size: 13px;
  color: #555;
  margin-top: 6px;
}
.always-on {
  font-size: 12px;
  color: #888;
  font-weight: normal;
}
.btn-confirm {
  margin-top: 20px;
  padding: 10px 20px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.switch input {
  display: none;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.2s;
  border-radius: 20px;
}
.slider:before {
  position: absolute;
  content: '';
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #007bff;
}
input:checked + .slider:before {
  transform: translateX(20px);
}
