.size-guide-drawer {
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 100vh;
  z-index: 9999;
}

.size-guide-drawer[aria-hidden="false"] {
  visibility: visible;
}

.size-guide-drawer__overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.size-guide-drawer[aria-hidden="false"] .size-guide-drawer__overlay {
  opacity: 1;
}

.size-guide-drawer__content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.size-guide-drawer[aria-hidden="false"] .size-guide-drawer__content {
  transform: translateX(0);
}

.size-guide-drawer__header {
  padding: 0 13px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid #F2F2F2;
  height: 50px;
}

.size-guide-drawer__title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.size-guide-drawer__title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: #333;
}

.size-guide-drawer__close {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #7D2898;
}

.size-guide-drawer__close:hover {
  opacity: 0.8;
}

.size-guide-drawer__close svg {
  width: 20px;
  height: 20px;
}

.size-guide-drawer__close svg path {
  stroke: currentColor;
  stroke-width: 1.5;
}

.size-guide-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.size-guide-drawer__tables {
  margin-top: 20px;
}

.size-guide-table {
  display: none;
}

.size-guide-table.active {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.size-guide-table img {
  width: auto;
  height: 240px;
  object-fit: contain;
  border-radius: 12px;
}

/* 响应式调整 */
@media screen and (max-width: 767px) {
  .size-guide-drawer__content {
    max-width: 100%;
  }
  
  .size-guide-drawer__header {
    padding: 56px 16px 16px;
  }
  
  .size-guide-drawer__body {
    padding: 16px;
  }
  
  .size-guide-drawer__title {
    font-size: 20px;
  }
}

[data-size-guide-id] {
  cursor: pointer;
}

.product-form__sku-size-title {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.product-form__sku-size-title:hover {
  opacity: 0.8;
}

.size-guide-switch {
  display: flex;
  align-items: center;
  gap: 12px;
}

.size-guide-switch span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  transition: .3s;
  border-radius: 24px;
  border: 1px solid #7D2898;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #7D2898;
  transition: .3s;
  border-radius: 50%;
}

.switch-input:checked + .switch-slider:before {
  transform: translateX(20px);
} 