/* 구독 관리 모바일 카드 */
.bshop_subscription_mobile_card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bshop_subscription_mobile_header {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.bshop_subscription_mobile_image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.bshop_subscription_mobile_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.bshop_subscription_mobile_info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bshop_subscription_mobile_title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.bshop_subscription_mobile_option {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.bshop_subscription_mobile_body {
  padding: 16px;
}

.bshop_subscription_mobile_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.bshop_subscription_mobile_row:last-child {
  border-bottom: none;
}

.bshop_subscription_mobile_label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.bshop_subscription_mobile_value {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
  text-align: right;
}

.bshop_subscription_mobile_status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.bshop_subscription_mobile_status.ACTIVE {
  background: #dcfce7;
  color: #059669;
}

.bshop_subscription_mobile_status.CANCELLED,
.bshop_subscription_mobile_status.CANCELED_REFUND {
  background: #fee2e2;
  color: #dc2626;
}

.bshop_subscription_mobile_status.PENDING {
  background: #fef3c7;
  color: #d97706;
}

.bshop_subscription_mobile_status.FAILED_RENEW,
.bshop_subscription_mobile_status.FAILED_INITIAL {
  background: #fee2e2;
  color: #dc2626;
}

.bshop_subscription_mobile_status.OUT_OF_STOCK {
  background: #f3f4f6;
  color: #6b7280;
}

.bshop_subscription_mobile_footer {
  padding: 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.bshop_subscription_mobile_footer .bshop_btn {
  width: 100%;
}

.bshop_subscription_mobile_footer .bshop_subscription_no_action {
  display: block;
  color: #9ca3af;
  font-size: 14px;
}

/* Bean Shopping 모바일 카드 레이아웃 */

/* PC에서는 모바일 레이아웃 숨김 */
.bshop_mobile_only {
  display: none;
}

/* 모바일에서는 테이블 숨김 */
@media (max-width: 768px) {
  .bshop_desktop_only {
    display: none !important;
  }
  
  .bshop_mobile_only {
    display: block;
  }
}

/* 모바일 카드 스타일 */
.bshop_mobile_card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bshop_mobile_card.invalid {
  opacity: 0.6;
}

/* 이미지 영역 */
.bshop_mobile_image {
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 비율 */
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
}

.bshop_mobile_image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 상품 정보 */
.bshop_mobile_info {
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.bshop_mobile_title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.bshop_mobile_option {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* 정보 행 */
.bshop_mobile_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.bshop_mobile_row:last-child {
  border-bottom: none;
}

.bshop_mobile_label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.bshop_mobile_value {
  font-size: 16px;
  color: #111827;
  font-weight: 500;
}

.bshop_mobile_price {
  font-size: 18px;
  font-weight: 600;
  color: #2563eb;
}

/* 수량 입력 */
.mobile_quantity {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
}

/* 삭제 버튼 */
.bshop_mobile_delete {
  padding: 16px;
}

.delete_item_mobile {
  width: 100%;
  padding: 12px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.delete_item_mobile:hover {
  background: #dc2626;
}

/* 빈 장바구니 */
.bshop_mobile_empty {
  padding: 60px 20px;
  text-align: center;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 16px;
}

/* 주문 목록 페이지용 카드 */
.bshop_order_mobile_card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 주문 헤더 */
.bshop_order_mobile_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.bshop_order_mobile_id {
  background: #2563eb;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.bshop_order_mobile_status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.bshop_order_mobile_status[data-status="DONE"],
.bshop_order_mobile_status[data-status="APPROVED"] {
  background: #dcfce7;
  color: #059669;
  border: 1px solid #86efac;
}

.bshop_order_mobile_status[data-status="WAITING_FOR_DEPOSIT"],
.bshop_order_mobile_status[data-status="PENDING"] {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.bshop_order_mobile_status[data-status="CANCELED"],
.bshop_order_mobile_status[data-status="FAILED"],
.bshop_order_mobile_status[data-status="REFUNDED"] {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* 주문 상품 항목 */
.bshop_order_mobile_item {
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.bshop_order_mobile_item:last-child {
  border-bottom: none;
}

.bshop_order_mobile_product {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.bshop_order_mobile_thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.bshop_order_mobile_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.bshop_order_mobile_product_info {
  flex: 1;
}

.bshop_order_mobile_product_name {
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.bshop_order_mobile_product_name a {
  color: inherit;
  text-decoration: none;
}

.bshop_order_mobile_product_option {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.bshop_order_mobile_price_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.bshop_order_mobile_price_label {
  display: none; /* 금액 라벨 숨기기 */
}

.bshop_order_mobile_price_value {
  font-size: 16px;
  font-weight: 600;
  color: #2563eb;
  width: 100%;
  text-align: right;
}

/* 주문 날짜 */
.bshop_order_mobile_footer {
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  text-align: right;
  font-size: 13px;
  color: #6b7280;
}

.bshop_order_mobile_footer a {
  color: #2563eb;
  text-decoration: none;
  margin-left: 8px;
}

/* 반응형 조정 */
@media (max-width: 480px) {
  .bshop_mobile_card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    margin-bottom: 12px;
  }
  
  .bshop_mobile_title {
    font-size: 16px;
  }
  
  .bshop_mobile_price {
    font-size: 16px;
  }
  
  .mobile_quantity {
    width: 70px;
    font-size: 14px;
  }
}
