/* ==================== 檔案名稱：components.css ==================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-outer: #E9E6E5; 
  --bg-body: #F1EFEE;              
  --bg-top-bar: #C8BFC7;           
  --border-main: #FFFFFF;          
  --text-main: #685E5B;            
  --text-sub: #685E5B;             
  --text-tag-new: #BB6A62;         
  --btn-nav: #C8BFC7;              
  --color-box-bg: #F4E8D1; 
  --btn-colors-bg: #FBF6F1;        
  --btn-calc-bg: #C8BFC7;          
  --font-text: "Microsoft JhengHei", "PingFang TC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-bahnschrift: 'Bahnschrift', "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-outer); 
  color: var(--text-main);
  font-family: var(--font-text);
  font-weight: 500;
  display: flex;
  flex-direction: column; 
  align-items: center;
  min-height: 100vh;
  padding: 16px 16px 16px;
  overflow-x: hidden;
}

.brand-title-area-outer {
  width: 100%;
  max-width: 1680px;
  text-align: center;
  padding: 16px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-brand-title {
  color: var(--text-main);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-decoration {
  font-size: 0.7em;
  font-weight: normal;
  opacity: 0.85;
}

.promo-bar-outer {
  width: 100%;
  max-width: 1680px;
  padding: 0 12px;
  margin-bottom: 6px;
  box-sizing: border-box;
}

.window-container {
  width: 100%;
  max-width: 1680px;
  background-color: var(--bg-body); 
  border-radius: 12px 12px 0 0; 
  box-shadow: none;
  padding: 12px 12px 36px; 
  border: none;
  box-sizing: border-box;
}

/* PC 端置中對齊橫幅 */
.promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px; 
  width: 100%;
  box-sizing: border-box;
}

.promo-item {
  flex: 1 1 0;
  max-width: 380px;
  min-width: 0;
  background-color: transparent;
  border: 1.5px dashed #D5CDC5 !important;
  box-shadow: none;
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.promo-item:hover {
  transform: translateY(-2px);
  border-color: #B8ADA5 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.promo-content-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.promo-title-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
  margin-bottom: 3px;
  max-width: 100%;
}

.promo-main-name {
  font-size: clamp(11.5px, 0.85vw, 13px);
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-sub-note {
  font-size: clamp(10px, 0.75vw, 11px);
  font-weight: 500;
  color: var(--text-main);
}

.promo-desc {
  color: var(--text-sub);
  font-size: clamp(10px, 0.75vw, 11.5px);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.promo-arrow {
  display: none;
}

.promo-separator {
  color: var(--text-sub);
  font-size: 12px;
  opacity: 0.7;
  user-select: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.promo-new-item .promo-main-name,
.promo-new-item .promo-sub-note,
.promo-new-item .promo-desc {
  color: var(--text-tag-new) !important;
}

.main-layout {
  display: flex;
  gap: 12px; 
  align-items: flex-start;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.products-section {
  flex: 1;
  min-width: 0;
}

.category-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 12px; 
  padding-left: 2px;
  align-items: center;
}

.category-tab {
  background-color: transparent !important;
  color: var(--text-main);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400; 
  padding: 4px 4px 3px;
  border: none !important;
  border-radius: 0;
  cursor: pointer;
  box-shadow: none !important;
  transition: all 0.2s ease;
  opacity: 0.55;
  white-space: nowrap;
  position: relative;
  line-height: 1.2;
}

.category-tab:hover {
  background-color: transparent !important; 
  opacity: 0.85;
}

.category-tab.active {
  background-color: transparent !important;
  color: var(--text-main);
  box-shadow: none !important;
  font-weight: 600; 
  opacity: 1;
}

.category-tab.active::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 2px;
  right: 2px;
  height: 1px;
  background-color: var(--text-main);
}

.products-wrapper {
  background-color: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  border: none;
  width: 100%;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)); 
  gap: 6px; 
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1366px) and (min-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) and (min-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-card {
  background-color: transparent !important;
  border: 1px solid var(--border-main) !important;
  box-shadow: none !important;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px 10px;
  position: relative;
  min-width: 0;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.product-card:hover {
  background-color: rgba(255, 255, 255, 0.5) !important; 
  transform: translateY(-4px); 
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important; 
}

.product-tag {
  color: var(--text-tag-new);
  font-size: 11px;
  font-weight: 700;
  height: 20px;
  line-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border: none !important;
  background: transparent !important;
  padding: 0;
  white-space: nowrap;
}

.product-tag.empty {
  border: none;
  background: transparent;
}

.product-name {
  color: var(--text-main);
  height: auto;
  min-height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
  line-height: 1.35;
  width: 100%;
}

.product-title-main {
  font-size: 13.5px;
  font-weight: bold;
  word-break: break-all;
}

.product-title-sub {
  font-size: 11.5px;
  font-weight: normal;
  margin-top: 4px;
}

.product-middle-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  margin-bottom: 14px;
}

.product-preview {
  flex: 1;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img {
  width: 80px;
  height: 80px;
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
  object-fit: contain;
}

.btn-nav-naked {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--text-main);
  font-size: 18px;
  font-weight: normal;
  cursor: pointer;
  padding: 4px 6px;
  user-select: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.btn-nav-naked:hover {
  color: #A0969F;
  transform: scale(1.25);
}

.product-bottom-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px; 
  margin-bottom: 10px; 
  border-bottom: 1px solid var(--border-main);
}

.product-color-display {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-main);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  text-align: center;
}

.product-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-price-row {
  display: flex;
  width: 100%;
  height: 24px; 
}

.product-price {
  font-family: var(--font-bahnschrift);
  font-size: 13.5px; 
  font-weight: bold;
  color: var(--text-main);
  background-color: var(--border-main);
  flex: 1;
  padding: 0 8px; 
  text-align: left;
  border-radius: 4px 0 0 4px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.btn-add-square {
  width: 24px; 
  height: 24px; 
  background-color: var(--btn-nav);
  border: none !important;
  border-radius: 0 4px 4px 0;
  color: var(--border-main);
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.btn-add-square:hover {
  background-color: #B5ABB4; 
}

.btn-colors {
  width: 100%;
  height: 24px; 
  background-color: var(--btn-colors-bg);
  border: none;
  border-radius: 4px;
  font-family: var(--font-bahnschrift);
  font-size: 12px;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.btn-colors:hover {
  background-color: #F2EAE2; 
}

.cart-section {
  width: clamp(280px, 21vw, 340px);
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  z-index: 90;
  margin-top: 38px; 
}

.cart-wrapper {
  background-color: var(--bg-outer) !important;
  box-shadow: none;
  border-radius: 4px;
  padding: 14px;
  border: none !important;
  box-sizing: border-box;
}

.cart-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
}

.cart-title {
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: bold;
  color: var(--text-main);
}

.btn-capsule-action {
  position: absolute;
  right: 0;
  background-color: var(--btn-colors-bg);
  border: none !important;
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--text-main);
  font-size: 12px !important;
  font-family: var(--font-text) !important;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease;
}

.btn-capsule-action:hover {
  opacity: 0.85;
}

.cart-top-collapsible {
  transition: all 0.25s ease-in-out;
}
.cart-top-collapsible.is-hidden {
  display: none !important;
}

.cart-top-collapsible.is-hidden + .calc-results-container {
  border-top: 1px solid #D5CDC5;
  padding-top: 14px;
  margin-top: 14px;
}

.cart-items-list {
  max-height: 400px;
  min-height: 110px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding-right: 6px;
}

.cart-items-list::-webkit-scrollbar {
  width: 5px;
}
.cart-items-list::-webkit-scrollbar-track {
  background: transparent;
}
.cart-items-list::-webkit-scrollbar-thumb {
  background: #D9D2CE;
  border-radius: 10px;
}

.cart-empty-hint {
  width: 100%;
  height: 100%;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  color: #8E8480;
  letter-spacing: 0.5px;
  user-select: none;
}

.cart-item-card {
  background-color: var(--border-main);
  border: 1px solid #D5CDC5 !important;
  border-radius: 6px;
  box-shadow: none;
  padding: 8px 12px; 
  display: grid; 
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: flex-start;
  min-width: 0; 
}

.cart-item-name {
  font-size: 12.5px !important;
  font-weight: bold;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.cart-item-color-desc {
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: normal;
  color: #887E7A;
  margin-top: 3px;
}

.cart-item-meta {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: flex-end;
  gap: 3px;
}

.cart-stepper {
  display: inline-flex;
  align-items: center;
  background-color: var(--border-main);
  border: 1px solid #E5E0DC;
  border-radius: 4px;
  height: 16px; 
}

.stepper-btn {
  background: var(--btn-calc-bg);
  color: white;
  border: none;
  width: 18px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}
.stepper-btn:first-child { border-radius: 3px 0 0 3px; }
.stepper-btn:last-child { border-radius: 0 3px 3px 0; }

.stepper-qty {
  min-width: 22px;
  text-align: center;
  font-family: var(--font-bahnschrift);
  font-size: 11.5px;
  color: var(--text-main);
  line-height: 16px;
}

.cart-item-single-price {
  font-family: var(--font-bahnschrift);
  font-size: 11px;
  color: var(--btn-calc-bg);
  letter-spacing: 0.5px;
  line-height: 1; 
  margin-top: 2px;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-calculate, .btn-clear-cart {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500; 
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.btn-calculate {
  background-color: var(--btn-calc-bg);
  color: var(--border-main);
  border: none;
}
.btn-calculate:hover {
  opacity: 0.9;
}

.btn-clear-cart {
  background-color: transparent !important;
  border: 1.5px dashed #988D96 !important;
  color: #988D96 !important;
  margin-bottom: 8px; 
}
.btn-clear-cart:hover {
  background-color: rgba(152, 141, 150, 0.1) !important;
}
.cart-actions::after {
  content: "";
  display: block;
  width: 100%;
  border-top: 1px solid #D5CDC5;
}

.calc-results-container {
  margin-top: 12px;
}

.calc-results-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 14px;
}

.calc-results-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-main);
}

.btn-capture-result {
  position: absolute;
  right: 0;
  background-color: var(--btn-colors-bg);
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-main);
  font-family: var(--font-text) !important; 
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease;
}

.btn-capture-result:hover {
  opacity: 0.85;
}

.calc-detail-box {
  background-color: var(--border-main);
  border-radius: 6px;
  padding: 14px;
  color: var(--text-main);
}

.calc-box-title {
  font-weight: bold;
  font-size: 14.5px;
  text-align: center;
  margin-bottom: 10px;
}

.calc-divider-dashed {
  border: none;
  border-top: 1px dashed #D5CDC5;
  margin: 10px 0;
}

.calc-promo-group {
  margin-bottom: 14px;
}

.calc-promo-group-title {
  font-size: 13.5px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.calc-promo-items-block {
  padding-left: 10px;
}

.calc-item-entry {
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.calc-totals-footer {
  text-align: right;
  margin-top: 16px;
}

.calc-original-striked {
  font-family: var(--font-bahnschrift);
  font-size: 12.5px;
  color: var(--btn-calc-bg);
  margin-bottom: 3px;
}

.calc-final-total {
  font-family: var(--font-bahnschrift);
  font-size: 18.5px;
  font-weight: bold;
  color: var(--text-main);
}

.calc-totals-footer::after {
  content: none;
  display: none;
}

.calc-reward-title {
  font-weight: bold;
  font-size: 13.5px;
  margin-top: 0;
  margin-bottom: 8px;
}

.calc-gift-status-list {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* More Colors 顏色彈窗 */
.color-popover {
  position: absolute;
  z-index: 1000;
  width: 380px;
  max-width: 90vw;
  background-color: var(--btn-colors-bg);
  border: 1px solid var(--border-main); 
  border-radius: 0 8px 8px 8px; 
  box-shadow: -2px 4px 12px rgba(0,0,0,0.04);
  padding: 10px 14px 12px;
  box-sizing: border-box;
}

.popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  padding-bottom: 8px;
  border-bottom: 1px dashed #D5CDC5;
  margin-bottom: 10px;
  line-height: 1; 
}

.popover-title {
  font-size: 13.5px;
  font-weight: bold;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
}

.popover-close-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 16px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-swatches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0;
  width: 100%;
  box-sizing: border-box;
}

.modal-swatches-grid::-webkit-scrollbar {
  width: 4px;
}
.modal-swatches-grid::-webkit-scrollbar-track {
  background: transparent;
}
.modal-swatches-grid::-webkit-scrollbar-thumb {
  background: #D9D2CE;
  border-radius: 10px;
}

.modal-swatch-card {
  background-color: var(--border-main);
  border: 1px solid transparent; 
  border-radius: 4px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s ease, background-color 0.15s ease;
}

.modal-swatch-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.modal-swatch-card.selected {
  background-color: #F4E8D1 !important;
}

.modal-swatch-card.selected::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 13px;
  font-weight: bold;
  color: var(--text-tag-new); 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1;
}

.modal-swatch-img {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: contain;
  image-rendering: pixelated;
  margin-bottom: 4px;
}

.modal-swatch-name {
  display: block;
  font-size: 10px;
  color: var(--text-main);
  line-height: 1.2;
  text-align: center;
  word-break: break-all;
}

.popover-footer {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.btn-popover-all {
  flex: 0 0 calc(25% - 4.5px);
  width: calc(25% - 4.5px);
  height: 34px;
  background-color: var(--bg-outer) !important;
  border: none !important;
  border-radius: 4px;
  font-family: var(--font-bahnschrift);
  font-stretch: semi-condensed; 
  font-size: 13px;
  font-weight: 700; 
  letter-spacing: 0.5px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-popover-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.btn-popover-all.is-active {
  background-color: var(--btn-nav) !important;
  color: #FFFFFF !important;
}

.btn-popover-all.is-active .all-check-mark {
  color: #FFFFFF !important;
}

.all-check-mark {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px;
  font-weight: bold;
  color: var(--text-main);
  line-height: 1;
  display: inline-block;
  margin-left: 2px;
}

.btn-popover-add {
  flex: 1;
  height: 34px;
  background-color: var(--bg-outer) !important;
  border: none !important;
  border-radius: 4px;
  font-family: var(--font-bahnschrift);
  font-size: 20px;
  font-weight: normal; 
  line-height: 1;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s ease, background-color 0.15s ease;
}

.btn-popover-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.site-footer {
  width: 100%;
  max-width: 1680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 0 8px;
  font-size: 11.5px;
  color: var(--text-sub);
  font-weight: 500;
  box-sizing: border-box;
}

.footer-row-top {
  text-align: center;
  letter-spacing: 0.5px;
  font-style: italic;
}

.footer-row-bottom {
  text-align: center;
  letter-spacing: 1px;
  opacity: 0.9;
}

#captureRenderArea {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 320px !important;
  background: #FFFFFF !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: -100;
}

#screenshotModal, #clearCartModal, #emptyCartModal, #promoModal {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.45) !important;
  z-index: 9999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.screenshot-modal-content {
  background: #FFFFFF !important;
  border-radius: 10px !important;
  border: 1px solid #D5CDC5 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18) !important;
  width: 100% !important;
  max-width: 330px !important;
  padding: 12px 14px 16px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; 
  position: relative !important;
  margin: 0 auto !important;
}

.screenshot-modal-header {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
}

.screenshot-modal-title {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #5A514F !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
}

.screenshot-close-btn {
  background: transparent !important;
  border: 1px solid #D5CDC5 !important;
  border-radius: 3px !important;
  width: 18px !important;
  height: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  color: #877266 !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.screenshot-hint-box {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px dashed #E0C8BA !important;
  border-radius: 6px !important;
  background-color: #FFFDFB !important;
  padding: 8px 10px !important;
  text-align: center !important;
  font-size: 11.5px !important;
  line-height: 1.55 !important;
  color: #7A6258 !important;
  margin-bottom: 10px !important;
}

.screenshot-img-container {
  width: 100% !important;
  max-height: 58vh !important;
  overflow-y: auto !important;
  border: 1px solid #E8E0DA !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important; 
  background-color: #FAFAF9 !important;
  box-sizing: border-box !important;
}

#screenshotExportImg {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;        
}

.clear-cart-modal-content {
  background: #FFFFFF !important;
  border-radius: 10px !important;
  border: 1px solid #D5CDC5 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18) !important;
  width: 100% !important;
  max-width: 300px !important;
  padding: 10px 14px 14px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; 
  position: relative !important;
  margin: 0 auto !important;
}

.clear-cart-modal-header {
  width: 100% !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin-bottom: 6px !important;
}

.clear-cart-hint-box {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px dashed #E0C8BA !important;
  border-radius: 6px !important;
  background-color: transparent !important;
  padding: 12px 10px !important;
  text-align: center !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #5A514F !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}

.promo-modal-content {
  max-width: 450px !important;
  width: 92vw !important;
}

.promo-modal-header {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
  padding: 0 2px;
}

.promo-modal-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  letter-spacing: 0.5px !important;
}

.promo-modal-hint-box {
  text-align: left !important;
  padding: 14px 16px !important;
  font-size: 12.5px !important;
  line-height: 1.85 !important;
  color: var(--text-main) !important;
  white-space: nowrap !important;
  overflow-x: auto !important;
}

.promo-highlight {
  background-color: #F4E8D1 !important;
  padding: 1px 4px !important;
  border-radius: 2px !important;
  display: inline-block !important;
  line-height: 1.4 !important;
}

.clear-cart-modal-actions {
  display: flex !important;
  gap: 8px !important;
  width: 100% !important;
}

.btn-confirm-clear, .btn-cancel-clear {
  flex: 1 !important;
  height: 34px !important;
  border-radius: 4px !important;
  font-family: var(--font-bahnschrift) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}

.btn-confirm-clear {
  background-color: var(--btn-calc-bg) !important;
  color: #FFFFFF !important;
  border: none !important;
}
.btn-confirm-clear:hover {
  opacity: 0.85 !important;
}

.btn-cancel-clear {
  background-color: #FFFFFF !important;
  border: 1px solid #D5CDC5 !important;
  color: var(--text-main) !important;
}
.btn-cancel-clear:hover {
  background-color: #F8F6F4 !important;
}
/* ==================== 檔案結尾：components.css ==================== */