/* Store/Cart専用 LINEモーダル */

/* 既存LINEモーダルを強制非表示 */
#line-select-dialog {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.line-store-modal {
  position: fixed;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  visibility: hidden;
}

.line-store-modal.show {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.line-store-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  position: relative;
  width: 320px;
  max-width: 90vw;
}

/* Close Button */
.line-store-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  z-index: 1;
  transition: background-color 0.2s ease;
}

.line-store-close:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Header */
.line-store-header {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.line-store-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
}

.line-store-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.line-store-account h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* Message */
.line-store-message {
  padding: 20px;
}

.line-store-message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

/* Action Button */
.line-store-action {
  padding: 20px;
  padding-top: 0;
}

.line-store-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: #4ade80;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s ease;
}

.line-store-btn:hover {
  background: #22c55e;
  color: #fff;
  text-decoration: none;
}

/* Mobile: 下からスライドイン */
@media (max-width: 767px) {
  .line-store-modal {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }
  
  .line-store-modal.show {
    transform: translateX(-50%) translateY(0);
  }
  
  .line-store-content {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
  }
}

/* Desktop: 右からスライドイン */
@media (min-width: 768px) {
  .line-store-modal {
    bottom: 110px;
    right: 20px;
    transform: translateX(100%);
  }
  
  .line-store-modal.show {
    transform: translateX(0);
  }

    /* キャンペーンバナー表示時の調整 */
    .campaign-active .line-store-modal {
      bottom: 320px;
    }

}

/* Desktop LINEアイコン */
.line-desktop-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  display: none;
}

@media (min-width: 768px) {
  .line-desktop-icon {
    display: block;
  }
}

.line-icon-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #06c755;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.3);
  transition: all 0.3s ease;
  user-select: none;
}

.line-icon-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
}

.line-icon-btn:active {
  transform: scale(0.95);
}
