/* ================================
   全站：小清理
================================ */

/* 隱藏導覽列中含有 "about" 的連結 */
header nav a[href*="about"]{
  display: none !important;
}

/* entry-content 的段落樣式（保留）*/
.entry-content p{
  /* 可自行補樣式 */
}

/* 完全隱藏 WordPress 前台的 Admin Bar */
#wpadminbar{
  display: none !important;
}
html{
  margin-top: 0px !important;
}

/* ================================
   ❌ Elementor / 舊版 bar：完全關掉
   （不再讓任何 .custom-user-bar 出現）
================================ */

.custom-user-bar{
  display: none !important;
}

/* ================================
   Dashboard（page-id-598）壓縮空白
================================ */

.page-id-598 h2.wp-block-post-title{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-id-598 .wp-block-post-title{
  margin: 0 !important;
  padding: 0 !important;
}

.page-id-598 .wp-block-group,
.page-id-598 .wp-block-group.has-global-padding,
.page-id-598 .wp-block-group.is-layout-constrained{
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 0 !important;
  gap: 0 !important;
}

/* ================================
   文字按鈕
================================ */

.text-button{
  all: unset;
  color: #D9753E;
  font-size: 16px;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0;
  line-height: 1.5;
  text-align: center;
}
.text-button:hover{
  color: #e58a54;
}

/* 隱藏 Elementor 頁面中的 WordPress.com 頁尾 */
footer, .footer, #footer,
.elementor-location-footer,
.elementor-footer,
footer.site-footer,
footer.wp-block-template-part {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

hr,
footer:before,
footer:after,
footer * {
  border: none !important;
  background: none !important;
}

/* 隱藏 page-id-1304 的標題 */
.page-id-1304 .wp-block-post-title {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 壓縮 page-id-1304 的整體空白 */
.page-id-1304 main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.page-id-1304 .wp-block-group.has-global-padding {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 0 !important;
}

/* 1418 線換顏色 */
.page-id-1304 .wp-block-group[style*="border-bottom-width"] {
  border-bottom: 1px solid #363636 !important;
}

/* 隱藏 page-id-1535 的標題 */
.page-id-1535 .wp-block-post-title {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 壓縮 page-id-1535 的整體空白 */
.page-id-1535 main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.page-id-1535 .wp-block-group.has-global-padding {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 0 !important;
}

/* 1535 線換顏色 */
.page-id-1535 .wp-block-group[style*="border-bottom-width"] {
  border-bottom: 1px solid #363636 !important;
}

/* 隱藏文章日期（只針對 page-id-1535） */
.page-id-1535 time,
.page-id-1535 .wp-block-post-date {
  display: none !important;
}

/* 隱藏文章日期（只針對 page-id-1535） */
.page-id-1535 time,
.page-id-1535 .wp-block-post-date {
  display: none !important;
}

/* 活動區塊統一上下間距（只在首頁 dashboard） */
body.page-id-598 .wp-block-group.alignwide.wp-block-group-is-layout-flow {
  margin-top: 48px;
  margin-bottom: 48px;
}

/* 確保段落不被壓縮（只在首頁 dashboard） */
body.page-id-598 .wp-block-group p {
  margin: 0.2em 0;
  line-height: 1.6;
}

/* 修正每個小活動卡片內部的按鈕與文字區距離（只在首頁 dashboard） */
body.page-id-598 .wp-block-buttons {
  margin-left: 1em;
}

/* 修正一月太擠問題（只在首頁 dashboard） */
body.page-id-598 .wp-block-heading.has-text-align-right {
  margin-bottom: 24px !important;
}

/* ✅ 修正主頁活動線條顏色（只針對 border-bottom:1px 的活動區塊） */
body.page-id-598 .wp-block-group[style*="border-bottom-width:1px;padding-top:32px;padding-bottom:32px"] {
  border-bottom: 1px solid #363636 !important;
}

/* ✅ 修正歷史活動的活動區塊線條顏色為 #363636 */
body.page-id-598 .wp-block-group[style*="border-bottom-width:1px"] {
  border-bottom-color: #363636 !important;
}

/* ✅ 手機版：縮短最後一筆活動與 View More 間距（只在首頁 dashboard） */
@media (max-width: 768px) {
  /* ✅ 壓縮所有活動區塊的底部間距 */
  body.page-id-598 .wp-block-group.alignwide.wp-block-group-is-layout-flow {
    margin-bottom: 16px !important;
    padding-bottom: 16px !important;
  }

  /* ✅ 壓縮 View More 區塊本身的上方間距 */
  body.page-id-598 .wp-block-button__link {
    margin-top: 8px !important;
  }
}
/* ✅ 僅壓縮「View More」上方那層空白（第 2 個 .wp-container-core-group-is-layout-e8cb54ee） */
body.page-id-598 .wp-container-core-group-is-layout-e8cb54ee.wp-block-group:nth-of-type(2) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ✅ 精準壓縮 View 按鈕上方的空白區塊（只限特定那個空白區，不影響其他） */
body.page-id-598 div.wp-block-group.alignwide.is-layout-flow.wp-container-core-group-is-layout-8a368f38.wp-block-group-is-layout-flow {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ✅ 確保按鈕區塊本身靠左，不要預設靠右或置中 */
body.page-id-598 .wp-container-core-group-is-layout-8a368f38 .wp-block-buttons {
  margin-left: 0 !important;
  justify-content: flex-start !important;
}

/* ✅ WooCommerce 結帳頁面 padding 調整 */
body.woocommerce-checkout .wp-block-group.has-global-padding {
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* ✅ WooCommerce 購物車頁面 padding 調整 */
body.woocommerce-cart .wp-block-group.has-global-padding {
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* css控制輸入匡內文字顏色 */
body.woocommerce-checkout input::placeholder,
body.woocommerce-checkout textarea::placeholder {
  color: #000 !important;
  opacity: 1;
}

/* ✅ 結帳頁輸入框背景色 */
body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout input[type="tel"] {
  background-color: #cc7a4a !important;
  color: #000000 !important;
}

/* ✅ placeholder 提示字顏色 */
body.woocommerce-checkout input::placeholder {
  color: #4b4b4b !important;
  opacity: 1;
}

/* ✅ 隱藏 WooCommerce 結帳頁浮動 label，避免與 placeholder 重疊 */
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout label.wc-block-components-text-input__label {
  display: none !important;
}

/* 刪除購物車輸入匡上面空一行 */
body.woocommerce-checkout input,
body.woocommerce-checkout textarea {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  line-height: 1.4 !important;
  height: auto !important;
  display: block;
  box-sizing: border-box;
}

/* ✅ WooCommerce 結帳頁：標籤文字設為深灰色 */
body.woocommerce-checkout label.wc-blocks-components-select__label {
  color: #4b4b4b !important;
}

/* ✅ WooCommerce 結帳頁：下拉選單橘底黑字 */
body.woocommerce-checkout select,
body.woocommerce-checkout .wc-block-components-select__select,
body.woocommerce-checkout .wc-block-components-select select {
  background-color: #cc7a4a !important;
  color: #000000 !important;
  border: 1px solid #333333 !important;
}

/* ✅ 歷史活動按鈕顏色反白 */
.view-more-events-button:hover,
.view-more-events-button:active {
  background-color: #818A8F !important;
  color: #000 !important;
  border-color: #818A8F !important;
}

/* ✅ upcoming-events-button：橘色反白、無淡化、無邊框、hover 與 active 保持一致 */
.upcoming-events-button {
  transition: none !important;
}

.upcoming-events-button:hover,
.upcoming-events-button:active,
.upcoming-events-button:focus {
  background-color: #b0613f !important;
  color: #000 !important;
  border-color: #b0613f !important;
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* 結帳頁以記錄地址的文字改顏色 */
.wc-block-components-address-card__address-section--secondary {
  color: #cc7a4a !important;
}

