/* ========== Cabinet Package Cards (Apple Style) ========== */
.mf601-cabinet-order-template > .tit {
  margin: 0 0 24px;
  color: #1d1d1f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
.mf601-cabinet-buy-wrap {
  margin-top: 24px;
}
.mf601-cabinet-buy-wrap .mf-dcim {
  color: #1d1d1f;
}
.mf601-cabinet-buy-wrap .custom-config {
  margin-top: 8px;
}
.mf601-cabinet-order-template .cloud-box {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mf601-cabinet-order-template .cloud-box .cloud-item {
  min-height: 132px;
  padding: 12px 16px;
  border: 1.5px solid #d2d2d7;
  border-radius: 4px;
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.mf601-cabinet-order-template .cloud-box .cloud-item:hover {
  border-color: #86868b;
  box-shadow: none;
}
.mf601-cabinet-order-template .cloud-box .cloud-item.active {
  border-color: #1d1d1f;
  background: rgba(0, 0, 0, 0.05);
  box-shadow: none;
}
.mf601-cabinet-order-template .cloud-box .cloud-item.active::after {
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  background-size: 12px;
}
.mf601-cabinet-order-template .cloud-box .cloud-item .inner {
  height: 100%;
}
.mf601-cabinet-order-template .cloud-box .cloud-item .top {
  justify-content: flex-start;
  min-height: 22px;
  padding-right: 28px;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: left;
}
.mf601-cabinet-order-template .cloud-box .cloud-item .info {
  margin-top: 8px;
}
.mf601-cabinet-order-template .cloud-box .cloud-item .info p {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 2px 0;
  color: #86868b;
  font-size: 12px;
  line-height: 18px;
}
.mf601-cabinet-order-template .cloud-box .cloud-item .info .name {
  flex: 0 0 auto;
  color: #86868b;
  font-weight: 400;
}
.cabinet-packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 100%;
  width: 100%;
}
.cabinet-package-card {
  min-width: 0;
  overflow: hidden;
  padding: 10px 14px;
  border: 1.5px solid #d2d2d7;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
  position: relative;
  font-size: 12px;
}
.cabinet-package-card:hover {
  border-color: #86868b;
}
.cabinet-package-card.selected {
  background: rgba(0, 0, 0, 0.05);
  border-color: #1d1d1f;
}
.cabinet-package-card.selected::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  background: #1d1d1f;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.cabinet-package-card__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 4px;
}
.cabinet-package-card__specs {
  font-size: 12px;
  color: #86868b;
  line-height: 1.5;
}
.cabinet-package-card__price {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  margin-top: 6px;
}
.cabinet-package-card__price-unit {
  font-size: 11px;
  font-weight: 400;
  color: #86868b;
}
/* ========== Line Capsules ========== */
.line-capsules {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.line-capsule {
  padding: 8px 18px;
  border: 1.5px solid #d2d2d7;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  user-select: none;
}
.line-capsule:hover {
  border-color: #86868b;
}
.line-capsule.selected {
  background: #1d1d1f;
  color: #ffffff;
  border-color: #1d1d1f;
  font-weight: 500;
}
/* ========== Responsive ========== */
@media (max-width: 768px) {
  .shop-layout {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 72px 0 0;
    gap: 18px;
    box-sizing: border-box;
  }
  .shop-layout__visual {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 340px;
    aspect-ratio: auto;
    top: auto;
  }
  .shop-layout__config {
    width: 100%;
    max-width: none;
  }
  .config-section {
    padding: 36px 0;
  }
  .config-section__title {
    font-size: 24px;
  }
  .cabinet-packages {
    grid-template-columns: 1fr;
  }
  .region-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .apple-action-bar {
    padding: 10px 16px;
  }
  .apple-action-bar__inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .apple-action-bar__config {
    display: none;
  }
  .apple-action-bar__right {
    width: 100%;
    justify-content: space-between;
  }
  .apple-action-bar__purchase {
    flex-wrap: wrap;
    gap: 8px;
  }
  .apple-action-bar__price-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .line-capsules {
    gap: 8px;
  }
  .line-capsule {
    padding: 10px 20px;
    font-size: 14px;
  }
}
/* MF601 configurable left panel and product selector */
.mf601-visual-copy {
  position: absolute;
  top: clamp(48px, 8vw, 96px);
  left: clamp(36px, 7vw, 88px);
  max-width: min(420px, 70%);
  color: #1d1d1f;
  z-index: 2;
}
.mf601-visual-copy h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.16;
  font-weight: 800;
  margin: 0 0 18px;
}
.mf601-visual-copy__subtitle {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 24px;
}
.mf601-visual-copy__desc {
  color: rgba(29, 29, 31, 0.34);
  font-size: 14px;
  line-height: 1.6;
  text-transform: uppercase;
  margin: 0 0 28px;
}
.mf601-visual-copy__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 270px;
  height: 29px;
  padding: 0 18px;
  border-radius: 3px;
  background: #303033;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}
.mf601-product-selector__list:empty::before {
  content: "No products selected";
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  width: 100%;
  border: 1px dashed rgba(29, 29, 31, 0.18);
  border-radius: 6px;
  color: rgba(29, 29, 31, 0.45);
  font-size: 13px;
}
.mf601-product-card {
  cursor: pointer;
}
.mf601-product-card.selected,
.mf601-product-card:hover {
  border-color: rgba(29, 29, 31, 0.46);
  box-shadow: 0 10px 26px rgba(20, 23, 31, 0.08);
}
@media (max-width: 900px) {
  .mf601-visual-copy {
    position: static;
    max-width: none;
    padding: 24px 22px 0;
  }
  .mf601-visual-copy__button {
    min-width: 0;
    width: 100%;
  }
}
