/* custom.css */
/* 父容器样式 */

.group-container {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.group-section {
  width: 50%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  /* 鼠标悬停时变成小手 */
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  margin-bottom: 15px;
}

.group-section:focus {
  outline: 2px solid #007bff;
  /* 添加聚焦样式 */
}

.green-light:focus {
  outline: 2px solid #007bff;
  /* 添加绿色小灯的聚焦样式 */
}


.group-section .left {
  display: flex;
  align-items: center;
}

.group-section .left .icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}


/* custom.css */
/* Sidebar 样式 */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 600px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  /* 设置轻微透明度 */
  color: black;
  box-shadow: -3px 0px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  z-index: 1000;
  padding: 15px;
  transform: translateX(100%);
  /* 初始隐藏时移动到右侧 */
}

/* 确保 iframe 容器的宽度自适应 */
#sidebar-pickup iframe {
  width: 100%;
  height: 500px;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
}


.sidebar.open {
  transform: translateX(0);
  /* 打开侧边栏时恢复 */
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  /* 半透明背景 */
  z-index: 999;
  /* 覆盖在侧边栏之上 */
  display: none;
  /* 默认隐藏 */
}

.sidebar-overlay.active {
  display: block;
  /* 显示遮罩层 */
}



.sidebar-content {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px;
	overflow-y: auto; /* 允许内容区域垂直滚动 */
  max-height: calc(100vh - 40px); /* 侧边栏最大高度，留出一些间隙 */
}

.sidebar .close-btn {
  position: absolute;
  top: -10px;
  /* 可以调整距离顶部的距离 */
  right: 20px;
  /* 可以调整距离右侧的距离 */
  font-size: 50px;
  color: #000;
  cursor: pointer;
  background: none;
  border: none;
}

.sidebar .sidebar-content .collect-item {
  border-top: 1px solid #dfdfdf;
  /* 为每个项添加顶部边框 */
  color: #767676;
  /* 默认文字颜色 */
  font-size: 14px;
  /* 字体大小 */
  font-style: normal;
  /* 正常字体样式 */
  font-weight: 400;
  /* 字体粗细 */
  line-height: 21px;
  /* 行高 */
  padding: 15px 0;
  /* 上下内边距 */
  position: relative;
  /* 相对定位，用于定位子元素 */
}

.sidebar .sidebar-content .collect-item .collect-info {
  align-items: center;
  /* 垂直居中对齐 */
  display: flex;
  /* 使用弹性盒布局 */
  justify-content: space-between;
  /* 左右分布，两个子元素对齐 */
  position: relative;
  /* 相对定位，方便子元素定位 */
}

h2.sidebar-content-title {
  display: contents;
  margin-top: 0;
  font-size: 24px;
  font-weight: bold;
}

.sidebar .sidebar-content .collect-item .detail {
  margin: 4px 0 0;
  /* 上边距为4px，底边距为0，保持内容间距紧凑 */
  position: relative;
  /* 相对定位，用于定位子元素 */
}


.sidebar .sidebar-content .collect-item .collect-info .name {
  color: #111;
  /* 文字颜色：深色，突出显示 */
  font-weight: 700;
  /* 字体加粗 */
  font-size: 24px;
  line-height: 45px;
  text-align: center;
  color: cf2929;
}


/* 满79包邮的小框样式 */
/*
.free-shipping {
  position: relative;
  background: linear-gradient(90deg, #eca5a7, #ffe2e2);
  padding: 10px 16px;
  margin-top: 10px;
  font-weight: bold;
  color: #333;
}
// 左边的圆
.free-shipping ::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -15px;
  width: 25px;
  height: 25px;
  background-color: #fff;
  border-radius: 50%;
  transform: translateY(-50%);
}

// 右边的圆
.free-shipping::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -15px;
  width: 25px;
  height: 25px;
  background-color: #fff;
  border-radius: 50%;
  transform: translateY(-50%);
}

.free-shipping.visible {
  opacity: 1;
}

.free-shipping .fire {
  width: 30px;
  height: 30px;
}
*/
.Promotions {
  background-color: #faf2e5;
}

.coupon-container {
  display: flex;
  align-items: center;
  /* 垂直居中对齐 */
  margin: 0;
  font-weight: 800;
}

.free-shipping #copy-code {
  cursor: pointer;
  /* text-decoration: underline; */
  text-align: center;
  display: inline-block;
  width: 50px;
  height: 30px;
  background: white;
  margin-left: 20px;
  border-radius: 15px;
  padding: 0px 5px;
  font-weight: 700;
}

#copy-code:hover {
  color: #0056b3;
}

.sidebar .sidebar-content .detail {
  font-family: Arial, sans-serif;
  /* 设置字体 */
  font-size: 16px;
  line-height: 1.8;
  /* 调整行高增加可读性 */
  color: #333;
  /* 设置文字颜色 */
  line-height: 1.6;
  /* 设置行间距 */
  margin: 20px;
  /* 设置外边距 */
  padding: 15px;
  /* 设置内边距 */
  border: 1px solid #ddd;
  /* 边框 */
  border-radius: 8px;
  /* 圆角 */
  background-color: #f9f9f9;
  /* 背景色 */
}

.free-delivery {
  font-weight: bold;
  /* 第一行文字加粗 */
  font-size: 18px;
  /* 调整字体大小 */
  color: #cf2929;
  /* 设置颜色 */
  margin-bottom: 10px;
  /* 设置底部间距 */
}

.free-delivery-details {
  color: #555;
  /* 设置颜色 */
  margin-bottom: 15px;
  /* 设置底部间距 */
}

.next-day-delivery {
  font-weight: bold;
  /* 下一行加粗 */
  font-size: 18px;
  /* 字体大小 */
  color: #cf2929;
  /* 设置颜色 */
  margin-bottom: 10px;
  /* 设置底部间距 */
}

.next-day-delivery-details,
.shoes121-delivery-details {
  color: #555;
  /* 设置颜色 */
  font-size: 14px;
  /* 字体大小 */
}



@media (max-width: 768px) {
  .sidebar {
    width: 90%;
    /* 在小屏幕设备上，侧边栏宽度为100% */
    padding: 0 !important;
  }

	  /* 确保在小屏幕上也能滚动 */
  .sidebar-content {
    max-height: 100vh; /* 侧边栏占满整个视口高度 */
  }

  h2.sidebar-content-title {
    font-size: 20px !important;
  }

  #sidebar-pickup iframe {
    height: 300px;
    /* 可根据需要调整高度 */
  }

  h2.sidebar-content-title {
    font-size: 20px !important;
  }
}

@media (min-width: 600px) and (max-width: 1024px) {

  .group-section {
    font-size: 14px !important;
  }
}
