@charset "UTF-8";

/* Original file: modules/bshop/usr/css/bshop_unified.css */

/* Bean Shopping 통합 디자인 시스템 - 모던 미니멀 스타일 */
/* 모든 클래스에 bshop_ 접두사 사용 */

:root {
  --bshop-primary: #2563eb;
  --bshop-primary-hover: #1d4ed8;
  --bshop-success: #10b981;
  --bshop-danger: #ef4444;
  --bshop-warning: #f59e0b;
  --bshop-info: #3b82f6;
  --bshop-text-primary: #111827;
  --bshop-text-secondary: #6b7280;
  --bshop-text-muted: #9ca3af;
  --bshop-border: #e5e7eb;
  --bshop-bg-white: #ffffff;
  --bshop-bg-light: #f9fafb;
  --bshop-bg-hover: #f3f4f6;
  --bshop-radius: 4px;
  --bshop-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --bshop-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --bshop-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --bshop-transition: all 0.2s ease;
}

/* 다크모드 */
body.color_scheme_dark {
  --bshop-text-primary: #f3f4f6;
  --bshop-text-secondary: #d1d5db;
  --bshop-text-muted: #9ca3af;
  --bshop-border: #374151;
  --bshop-bg-white: #1f2937;
  --bshop-bg-light: #111827;
  --bshop-bg-hover: #374151;
}

/* 기본 컨테이너 - 모든 페이지 통일 */
.bshop_container,
.flex-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

#p_content, #r_content {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 100%;
  margin: 0;
}

/* 타이포그래피 */
h1, .bshop_page_title {
  font-size: 24px;
  font-weight: 600;
  color: var(--bshop-text-primary);
  padding: 0;
  border: none;
  line-height: 1.4;
}

h2, .bshop_section_title {
  font-size: 18px;
  font-weight: 600;
  color: var(--bshop-text-primary);
  margin: 24px 0 16px 0;
  border: none;
  padding: 0;
}

h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--bshop-text-primary);
  margin: 16px 0 12px 0;
}

p {
  color: var(--bshop-text-secondary);
  line-height: 1.6;
  margin: 8px 0;
}

/* 테이블 스타일 */
.bshop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bshop-bg-white);
  border: 1px solid var(--bshop-border);
  border-radius: var(--bshop-radius);
  overflow: hidden;
  margin: 20px 0;
}

.bshop_table thead {
  background: var(--bshop-bg-light);
}

.bshop_table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  font-size: 14px;
  color: var(--bshop-text-secondary);
  border-bottom: 1px solid var(--bshop-border);
}

.bshop_table tbody tr {
  border-bottom: 1px solid var(--bshop-border);
  transition: var(--bshop-transition);
}

.bshop_table tbody tr:hover {
  background: var(--bshop-bg-hover);
}

.bshop_table tbody tr:last-child {
  border-bottom: none;
}

.bshop_table tbody td {
  padding: 16px;
  color: var(--bshop-text-primary);
  font-size: 14px;
  vertical-align: middle;
}

/* 장바구니 테이블 특별 스타일 */
.bshop_order {
  position: relative;
}

.bshop_order.invalid {
  opacity: 0.6;
}

.bshop_order.invalid .bshop_order_item span {
  text-decoration: line-through;
}

.bshop_order_empty {
  text-align: center;
  padding: 40px !important;
  color: var(--bshop-text-muted);
}

/* 썸네일 스타일 */
.bshop_thumbnail,
.bshop_order_thumbnail {
  display: inline-block;
  width: 80px;
  height: 80px;
}

.bshop_thumbnail img,
.bshop_order_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--bshop-radius);
  border: 1px solid var(--bshop-border);
}

/* 주문 항목 스타일 */
.bshop_order_item {
  font-size: 14px;
  color: var(--bshop-text-primary);
  line-height: 1.6;
}

.bshop_order_item span {
  display: block;
}

/* 수량 입력 */
.bshop_order_quantity {
  text-align: center;
  width: auto;
}

.bshop_quantity {
  width: 50px !important;
  max-width: 50px !important;
  padding: 4px;
  border: 1px solid var(--bshop-border);
  border-radius: var(--bshop-radius);
  text-align: center;
  font-size: 14px;
}

/* 가격 표시 */
.bshop_order_total {
  font-weight: 600;
  color: var(--bshop-primary);
  font-size: 15px;
}

/* 삭제 버튼 */
.bshop_order_delete {
  text-align: center;
}

.delete_item {
  padding: 6px 12px;
  background: var(--bshop-danger);
  color: white;
  border: none;
  border-radius: var(--bshop-radius);
  cursor: pointer;
  font-size: 12px;
  transition: var(--bshop-transition);
}

.delete_item:hover {
  background: #dc2626;
  transform: scale(1.05);
}

/* 주문 ID와 상태 */
.bshop_order_id {
  display: block;
  font-size: 13px;
  color: var(--bshop-text-secondary);
  margin-bottom: 8px;
}

.bshop_order_created_at {
  font-size: 13px;
  color: var(--bshop-text-secondary);
  line-height: 1.5;
}

.bshop_order_created_at a {
  color: var(--bshop-primary);
  text-decoration: none;
}

.bshop_order_created_at a:hover {
  text-decoration: underline;
}

/* 상태 태그 */
.bshop_tag {
  display: inline-block;
  border-radius: var(--bshop-radius);
  font-size: 12px;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 6px;
}

.bshop_status,
.bshop_order_status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--bshop-radius);
  font-size: 12px;
  font-weight: 500;
}

.bshop_status[data-status="DONE"],
.bshop_status[data-status="APPROVED"] {
  background: #dcfce7;
  color: var(--bshop-success);
  border: 1px solid #86efac;
}

.bshop_status[data-status="WAITING_FOR_DEPOSIT"],
.bshop_status[data-status="PENDING"] {
  background: #fef3c7;
  color: var(--bshop-warning);
  border: 1px solid #fde68a;
}

.bshop_status[data-status="CANCELED"],
.bshop_status[data-status="FAILED"],
.bshop_status[data-status="REFUNDED"] {
  background: #fee2e2;
  color: var(--bshop-danger);
  border: 1px solid #fecaca;
}



/* 폼 요소 */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bshop-border);
  border-radius: var(--bshop-radius);
  font-size: 14px;
  color: var(--bshop-text-primary);
  background: var(--bshop-bg-white);
  transition: var(--bshop-transition);
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--bshop-primary);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* 라디오 & 체크박스 */
input[type="radio"],
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
  cursor: pointer;
}

input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--bshop-border);
  border-radius: 50%;
  position: relative;
  background: var(--bshop-bg-white);
  transition: var(--bshop-transition);
}

input[type="radio"]:checked {
  border-color: var(--bshop-primary);
  background: var(--bshop-primary);
}

input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

/* 버튼 스타일 */
.bshop_container button,
.bshop_container input[type="button"],
.bshop_container input[type="submit"],
.bshop_btn {
  display: inline-block;
  border: none;
  border-radius: var(--bshop-radius);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--bshop-transition);
  text-decoration: none;
  padding: 10px 20px;
}

/* Primary 버튼 */
.bshop_btn_primary,
#purchase_btn,
#ok_btn,
.bshop_container input[type="submit"] {
  background: var(--bshop-primary);
  color: white;
}

.bshop_btn_primary:hover,
#purchase_btn:hover,
#ok_btn:hover,
.bshop_container input[type="submit"]:hover {
  background: var(--bshop-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--bshop-shadow-md);
}

/* Secondary 버튼 */
.bshop_btn_secondary,
.btn-secondary,
.bshop_container input[type="button"]:not(.delete_item) {
  background: var(--bshop-bg-light);
  color: var(--bshop-text-primary);
  border: 1px solid var(--bshop-border);
}

.bshop_btn_secondary:hover,
.btn-secondary:hover,
.bshop_container input[type="button"]:not(.delete_item):hover {
  background: var(--bshop-bg-hover);
}

/* Danger 버튼 */
.bshop_btn_danger,
.btn-danger,
.cancel_subscription {
  background: var(--bshop-danger);
  color: white;
}

.bshop_btn_danger:hover,
.btn-danger:hover,
.cancel_subscription:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: var(--bshop-shadow-md);
}

/* 구매 버튼 특별 스타일 */
#purchase_btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 24px;
  font-weight: 600;
}

/* 버튼 레이어 */
#btn_layer {
  text-align: center;
  margin-top: 30px;
}

#btn_layer input[type="button"],
#btn_layer button {
  margin: 0 5px;
  min-width: 120px;
}

/* 섹션 스타일 */
section {
  margin: 24px 0;
  padding: 0;
  background: transparent;
  border: none;
}

/* 결제 수단 섹션 */
section#pay_method {
  background: var(--bshop-bg-white);
  padding: 24px;
  border-radius: var(--bshop-radius);
  border: 1px solid var(--bshop-border);
  margin: 24px 0;
  text-align: left;
}

section#pay_method h2 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--bshop-text-primary);
}

section#pay_method label {
  display: inline-flex;
  align-items: center;
  margin: 8px 16px 8px 0;
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--bshop-transition);
  font-size: 14px;
  color: var(--bshop-text-primary);
}

section#pay_method label:hover {
  background: var(--bshop-bg-hover);
  border-radius: var(--bshop-radius);
}

section#pay_method label img {
  vertical-align: middle;
  margin-left: 4px;
}

/* 배송지 정보 */
#delivery_info,
.bshop_delivery_info {
  background: var(--bshop-bg-white);
  padding: 24px;
  border-radius: var(--bshop-radius);
  border: 1px solid var(--bshop-border);
  margin: 24px 0;
}

.bshop_address_title {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 20px 0;
  color: var(--bshop-text-primary);
}

.bshop_address_form p {
  color: var(--bshop-text-primary);
  font-weight: 500;
  margin: 16px 0 8px 0;
  font-size: 14px;
}

.bshop_address_required {
  color: var(--bshop-danger);
}

/* 주소 입력 필드 스타일 */
.bshop_address_wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.bshop_address_postcode {
  flex: 0 0 30%;
}

.bshop_address_wrapper button,
#search_postcode {
  padding: 10px 16px;
  background: var(--bshop-primary);
  color: white;
  border: none;
  border-radius: var(--bshop-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--bshop-transition);
  white-space: nowrap;
  font-size: 14px;
}

.bshop_address_wrapper button:hover,
#search_postcode:hover {
  background: var(--bshop-primary-hover);
}

/* 주소 필드 간격 */
#address {
  margin-bottom: 12px;
}

#address_details {
  margin-bottom: 12px;
}



/* 입금자 정보 */
section#depositor {
  background: var(--bshop-bg-light);
  padding: 20px;
  border-radius: var(--bshop-radius);
  margin: 24px 0;
  border: 1px solid var(--bshop-border);
}

section#depositor p {
  margin: 0 0 8px 0;
  font-weight: 500;
  color: var(--bshop-text-primary);
  font-size: 14px;
}

section#depositor span#required {
  color: var(--bshop-danger);
}

/* 추가 정보 섹션 */
.additional-info {
  background: var(--bshop-bg-light);
  padding: 20px;
  border-radius: var(--bshop-radius);
  margin: 24px 0;
}

.additional-info-item {
  margin-bottom: 16px;
}

.additional-info-item-title {
  font-weight: 500;
  color: var(--bshop-text-primary);
  margin-bottom: 8px;
  font-size: 14px;
}

/* 포인트 할인 */
#point_discount {
  background: var(--bshop-bg-light);
  padding: 20px;
  border-radius: var(--bshop-radius);
  margin: 24px 0;
  border: 1px solid var(--bshop-border);
}

#point_discount p {
  color: var(--bshop-text-primary);
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

#point_discount a {
  color: var(--bshop-primary);
  text-decoration: none;
  font-weight: 500;
  margin-left: 8px;
}

#point_discount a:hover {
  text-decoration: underline;
}

#point_discount input[type="number"] {
  width: 120px;
  margin-right: 4px;
}

/* 구매 확인 체크박스 */
#purchase_check {
  background: var(--bshop-bg-light);
  padding: 16px;
  border-radius: var(--bshop-radius);
  margin: 20px 0;
  border: 1px solid var(--bshop-border);
}

#purchase_check label {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 14px;
  color: var(--bshop-text-primary);
  cursor: pointer;
}

#purchase_check a {
  color: var(--bshop-danger);
  font-weight: 500;
  text-decoration: underline;
  margin: 0 4px;
}

/* 성공/실패 페이지 스타일 */
#p_content #p_title {
  font-size: 24px;
  font-weight: 600;
  margin: 20px 0;
  color: var(--bshop-text-primary);
}

#p_content #p_icn {
  width: 60px;
  height: 60px;
  margin: 20px auto;
  display: block;
}

#s_content {
  text-align: left;
  margin: 20px auto;
  max-width: 500px;
}

#s_title {
  font-size: 14px;
  color: var(--bshop-text-secondary);
  font-weight: 500;
  margin: 8px;
}

#s_value {
  font-size: 16px;
  color: var(--bshop-text-primary);
  margin: 8px;
}

#s_hr {
  border: none;
  border-top: 1px solid var(--bshop-border);
  margin: 20px;
}

/* 모달 */
.bshop_modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bshop_modal_content {
  background: var(--bshop-bg-white);
  margin: 10% auto;
  border-radius: var(--bshop-radius);
  max-width: 500px;
  width: 90%;
  box-shadow: var(--bshop-shadow-md);
  animation: slideIn 0.2s;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bshop_modal_header {
  padding: 20px;
  border-bottom: 1px solid var(--bshop-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bshop_modal_header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--bshop-text-primary);
}

.bshop_modal_close {
  font-size: 24px;
  font-weight: normal;
  color: var(--bshop-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.bshop_modal_close:hover {
  color: var(--bshop-text-primary);
}

.bshop_modal_body {
  padding: 24px;
}

.bshop_modal_body p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.bshop_modal_footer {
  padding: 16px 24px;
  border-top: 1px solid var(--bshop-border);
  text-align: right;
  background: var(--bshop-bg-light);
}

.bshop_modal_footer button {
  margin-left: 8px;
}

/* 알림 메시지 */
.alert,
.bshop_alert {
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: var(--bshop-radius);
  font-size: 14px;
}

.alert-success,
.bshop_alert_success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-warning,
.bshop_alert_warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.alert-danger,
.bshop_alert_danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info,
.bshop_alert_info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* 카드 레이아웃 */
.card,
.bshop_card {
  background: var(--bshop-bg-white);
  border: 1px solid var(--bshop-border);
  border-radius: var(--bshop-radius);
  margin-bottom: 16px;
}

.card-header,
.bshop_card_header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--bshop-border);
  background: var(--bshop-bg-light);
}

.card-body,
.bshop_card_body {
  padding: 20px;
}

.card-footer,
.bshop_card_footer {
  padding: 16px 20px;
  border-top: 1px solid var(--bshop-border);
  background: var(--bshop-bg-light);
}

/* 쿠폰 컨테이너 */
.bshop_coupon_container {
  max-width: 500px;
  margin: 40px auto;
  padding: 32px;
  background: var(--bshop-bg-white);
  border: 1px solid var(--bshop-border);
  border-radius: var(--bshop-radius);
}

.bshop_title {
  text-align: center;
  color: var(--bshop-text-primary);
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 600;
}

.bshop_coupon_info {
  text-align: center;
  color: var(--bshop-text-secondary);
  margin-bottom: 24px;
  font-size: 14px;
}

.bshop_input_group {
  margin-bottom: 16px;
}

.bshop_button_group {
  text-align: center;
}

/* 로딩 스피너 */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--bshop-border);
  border-radius: 50%;
  border-top-color: var(--bshop-primary);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 구독 관리 페이지 */
.bshop_subscription_list {
  margin: 24px 0;
}

.bshop_table_wrapper {
  overflow-x: auto;
}

.bshop_subscription_thumbnail {
  width: 80px;
  height: 80px;
}

.bshop_subscription_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--bshop-radius);
  border: 1px solid var(--bshop-border);
}

.bshop_subscription_name {
  font-weight: 500;
  color: var(--bshop-text-primary);
  font-size: 14px;
}

.bshop_subscription_status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--bshop-radius);
  font-size: 12px;
  font-weight: 500;
}

.bshop_subscription_status.ACTIVE {
  background: #dcfce7;
  color: var(--bshop-success);
}

.bshop_subscription_status.CANCELLED,
.bshop_subscription_status.CANCELED_REFUND {
  background: #fee2e2;
  color: var(--bshop-danger);
}

.bshop_subscription_status.PENDING {
  background: #fef3c7;
  color: var(--bshop-warning);
}

.bshop_subscription_no_action {
  color: var(--bshop-text-muted);
  font-size: 13px;
}

.bshop_empty_list {
  padding: 40px;
  text-align: center;
  background: var(--bshop-bg-light);
  border-radius: var(--bshop-radius);
  color: var(--bshop-text-muted);
}

.bshop_info_section {
  background: var(--bshop-bg-light);
  padding: 24px;
  border-radius: var(--bshop-radius);
}

.bshop_info_content ul {
  padding-left: 20px;
  margin: 0;
}

.bshop_info_content li {
  margin-bottom: 8px;
  color: var(--bshop-text-secondary);
  line-height: 1.6;
}

/* 텍스트 유틸리티 */
.text-center, .bshop_text_center { text-align: center; }
.text-right, .bshop_text_right { text-align: right; }
.text-left, .bshop_text_left { text-align: left; }
.text-info, .bshop_text_info { color: var(--bshop-info); font-size: 13px; }

/* 반응형 디자인 */
@media (max-width: 768px) {
  .bshop_container,
  .flex-container {
    padding: 20px 16px;
  }
  
  /* 테이블을 카드 형식으로 변경 */
  .bshop_table {
    border: none;
    background: transparent;
  }
  
  .bshop_table thead {
    display: none;
  }
  
  .bshop_table tbody {
    display: block;
  }
  
  .bshop_table tbody tr,
  .bshop_order {
    display: block;
    margin-bottom: 16px;
    border: 1px solid var(--bshop-border);
    border-radius: var(--bshop-radius);
    padding: 16px;
    background: var(--bshop-bg-white);
    box-shadow: var(--bshop-shadow-sm);
  }
  
  .bshop_table tbody td {
    display: block;
    text-align: left;
    padding: 8px 0;
    border: none;
    position: relative;
  }
  
  /* 썸네일 반응형 처리 - 모바일에서 전체 너비 사용 */
  .bshop_thumbnail,
  .bshop_order_thumbnail {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 16px;
  }
  
  .bshop_thumbnail img,
  .bshop_order_thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  
  /* 장바구니 테이블 모바일 레이아웃 */
  .bshop_order td:nth-child(1) {
    padding-bottom: 16px;
  }
  
  .bshop_order td:nth-child(2) {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bshop-border);
  }
  
  .bshop_order td:nth-child(3),
  .bshop_order td:nth-child(4) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
  }
  
  .bshop_order td:nth-child(3)::before {
    content: '수량';
    font-weight: 500;
    color: var(--bshop-text-secondary);
  }
  
  .bshop_order td:nth-child(4)::before {
    content: '금액';
    font-weight: 500;
    color: var(--bshop-text-secondary);
  }
  
  .bshop_order td:nth-child(5) {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bshop-border);
  }
  
  .bshop_order td:nth-child(5) .delete_item {
    width: 100%;
    padding: 10px;
  }
  
  /* 주문 목록 페이지 모바일 */
  .bshop_order_id {
    display: inline-block;
    background: var(--bshop-primary);
    color: white;
    padding: 4px 8px;
    border-radius: var(--bshop-radius);
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  /* rowspan 처리 */
  td[rowspan] {
    display: block !important;
    border-bottom: 1px solid var(--bshop-border);
    padding-bottom: 12px !important;
    margin-bottom: 12px;
  }
  
  /* 모바일에서 비어있는 테이블 처리 */
  .bshop_order_empty td {
    display: block;
    text-align: center;
    padding: 30px 20px !important;
  }
  
  /* 구독 관리 테이블 */
  .bshop_subscription_item td {
    display: block;
    padding: 8px 0;
    border: none;
  }
  
  .bshop_subscription_item td:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bshop-border);
    margin-bottom: 12px;
  }
  
  .bshop_subscription_thumbnail {
    flex-shrink: 0;
  }
  
  .bshop_subscription_name {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
  }
  
  .bshop_subscription_item td:nth-child(2),
  .bshop_subscription_item td:nth-child(3),
  .bshop_subscription_item td:nth-child(4),
  .bshop_subscription_item td:nth-child(5),
  .bshop_subscription_item td:nth-child(6) {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
  }
  
  .bshop_subscription_item td:nth-child(2)::before {
    content: '옵션:';
    color: var(--bshop-text-secondary);
    font-weight: 500;
  }
  
  .bshop_subscription_item td:nth-child(3)::before {
    content: '금액:';
    color: var(--bshop-text-secondary);
    font-weight: 500;
  }
  
  .bshop_subscription_item td:nth-child(4)::before {
    content: '결제 주기:';
    color: var(--bshop-text-secondary);
    font-weight: 500;
  }
  
  .bshop_subscription_item td:nth-child(5)::before {
    content: '마지막 결제일:';
    color: var(--bshop-text-secondary);
    font-weight: 500;
  }
  
  .bshop_subscription_item td:nth-child(6)::before {
    content: '다음 예정일:';
    color: var(--bshop-text-secondary);
    font-weight: 500;
  }
  
  .bshop_subscription_item td:nth-child(7) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid var(--bshop-border);
    margin-top: 8px;
  }
  
  .bshop_subscription_item td:nth-child(7)::before {
    content: '상태:';
    color: var(--bshop-text-secondary);
    font-weight: 500;
  }
  
  .bshop_subscription_item td:nth-child(8) {
    display: block;
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--bshop-border);
    margin-top: 8px;
  }
  
  .bshop_subscription_item td:nth-child(8) button {
    width: 100%;
  }
  
  
  section#pay_method label {
    display: block;
    margin: 8px 0;
  }
  
  .bshop_address_wrapper {
    flex-direction: column;
  }
  
  .bshop_address_postcode {
    flex: 1;
  }
  
  .bshop_address_wrapper button {
    width: 100%;
    margin-top: 8px;
  }
  
  .bshop_modal_content {
    margin: 20% auto;
    width: 95%;
  }
}

@media (max-width: 480px) {
  h1, .bshop_page_title {
    font-size: 20px;
  }
  
  h2, .bshop_section_title {
    font-size: 16px;
  }

  
  /* 작은 화면에서도 썸네일이 잘 보이도록 */
  .bshop_thumbnail,
  .bshop_order_thumbnail {
    width: 100%;
    height: auto;
  }
  
  .bshop_thumbnail img,
  .bshop_order_thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  
  .bshop_table tbody td {
    padding: 8px;
    font-size: 12px;
  }
}

/* HR 스타일 */
hr {
  border: none;
  border-top: 1px solid var(--bshop-border);
  margin: 20px 0;
}

/* 다크모드 select option 스타일 */
body.color_scheme_dark select option {
  background-color: var(--bshop-bg-white);
  color: var(--bshop-text-primary);
}

/* 쿠폰 버튼 스타일 */
#apply_coupon:hover {
  background-color: #0056b3 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,123,255,0.3);
  transition: all 0.2s ease;
}

#apply_coupon:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,123,255,0.2);
}

#remove_coupon:hover {
  background-color: #5a6268 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(108,117,125,0.3);
  transition: all 0.2s ease;
}

#remove_coupon:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(108,117,125,0.2);
}

/* Original file: modules/bshop/usr/css/bshop_usr.css */

/* Bean Shopping Mall - USR 통합 CSS */
/* 모든 스타일은 .bshop_container 내부에서만 작동하여 라이믹스 코어와 격리됩니다 */

/* ===== CSS 변수 정의 ===== */
.bshop_container {
  --bshop-primary: #333;
  --bshop-primary-hover: #000;
  --bshop-success: #10b981;
  --bshop-danger: #dc2626;
  --bshop-warning: #f59e0b;
  --bshop-info: #333;
  --bshop-text-primary: #111827;
  --bshop-text-secondary: #6b7280;
  --bshop-text-muted: #9ca3af;
  --bshop-border: #ddd;
  --bshop-bg-white: #ffffff;
  --bshop-bg-light: #fafafa;
  --bshop-bg-hover: #f5f5f5;
  --bshop-radius: 0;
  --bshop-transition: all 0.15s ease;
}

/* 다크모드 */
body.color_scheme_dark .bshop_container {
  --bshop-text-primary: #f3f4f6;
  --bshop-text-secondary: #d1d5db;
  --bshop-text-muted: #9ca3af;
  --bshop-border: #374151;
  --bshop-bg-white: #1f2937;
  --bshop-bg-light: #111827;
  --bshop-bg-hover: #374151;
}

/* ===== 기본 레이아웃 ===== */
.bshop_container {
  margin: 0 auto;
  padding: 40px 20px;
}

.bshop_container .flex-container {
  margin: 0 auto;
  padding: 40px 20px;
}

.bshop_container #p_content,
.bshop_container #r_content {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 100%;
  margin: 0;
}

/* ===== 타이포그래피 ===== */
.bshop_container h1,
.bshop_container .bshop_page_title {
  font-size: 24px;
  font-weight: 600;
  color: var(--bshop-text-primary);
  margin: 0 0 32px 0;
  padding: 0;
  border: none;
  line-height: 1.4;
}

.bshop_container h2,
.bshop_container .bshop_section_title {
  font-size: 18px;
  font-weight: 600;
  color: var(--bshop-text-primary);
  margin: 24px 0 16px 0;
  border: none;
  padding: 0;
}

.bshop_container h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--bshop-text-primary);
  margin: 16px 0 12px 0;
}

.bshop_container p {
  color: var(--bshop-text-secondary);
  line-height: 1.6;
  margin: 8px 0;
}

.bshop_container hr {
  border: none;
  border-top: 1px solid var(--bshop-border);
  margin: 20px 0;
}

/* ===== 반응형 표시 제어 ===== */
/* 모바일은 기본적으로 숨김 */
.bshop_container .bshop_mobile_only {
  display: none !important;
}

/* 데스크톱은 기본적으로 표시 */
.bshop_container .bshop_desktop_only {
  display: block !important;
}

.bshop_container table.bshop_desktop_only {
  display: table !important;
}

.bshop_container div.bshop_table_wrapper.bshop_desktop_only {
  display: block !important;
}

/* 모바일 환경 (768px 이하) */
@media (max-width: 768px) {
  .bshop_container .bshop_mobile_only {
    display: block !important;
  }

  .bshop_container .bshop_desktop_only {
    display: none !important;
  }

  .bshop_container table.bshop_desktop_only {
    display: none !important;
  }

  .bshop_container div.bshop_table_wrapper.bshop_desktop_only {
    display: none !important;
  }
}

/* ===== 폼 요소 ===== */
.bshop_container input[type="text"],
.bshop_container input[type="number"],
.bshop_container input[type="email"],
.bshop_container input[type="tel"],
.bshop_container input[type="date"],
.bshop_container input[type="datetime-local"],
.bshop_container input[type="password"],
.bshop_container textarea,
.bshop_container select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bshop-border);
  border-radius: var(--bshop-radius);
  font-size: 14px;
  color: var(--bshop-text-primary);
  background: var(--bshop-bg-white);
  transition: var(--bshop-transition);
  box-sizing: border-box;
}

.bshop_container input:focus,
.bshop_container textarea:focus,
.bshop_container select:focus {
  outline: none;
  border-color: var(--bshop-primary);
}

.bshop_container input[type="radio"],
.bshop_container input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
  cursor: pointer;
}

.bshop_container input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--bshop-border);
  border-radius: 50%;
  position: relative;
  background: var(--bshop-bg-white);
  transition: var(--bshop-transition);
}

.bshop_container input[type="radio"]:checked {
  border-color: var(--bshop-primary);
  background: var(--bshop-primary);
}

.bshop_container input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

/* ===== 버튼 ===== */
.bshop_container button,
.bshop_container input[type="button"],
.bshop_container input[type="submit"],
.bshop_container .bshop_btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: var(--bshop-radius);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--bshop-transition);
  text-decoration: none;
  background: var(--bshop-primary);
  color: white;
}

.bshop_container .bshop_btn_primary,
.bshop_container #purchase_btn,
.bshop_container #ok_btn,
.bshop_container input[type="submit"] {
  background: var(--bshop-primary);
  color: white;
}

.bshop_container .bshop_btn_primary:hover,
.bshop_container #purchase_btn:hover,
.bshop_container #ok_btn:hover,
.bshop_container input[type="submit"]:hover {
  background: var(--bshop-primary-hover);
}

.bshop_container .bshop_btn_secondary,
.bshop_container .btn-secondary,
.bshop_container input[type="button"]:not(.delete_item) {
  background: var(--bshop-bg-light);
  color: var(--bshop-text-primary);
  border: 1px solid var(--bshop-border);
}

.bshop_container .bshop_btn_secondary:hover,
.bshop_container .btn-secondary:hover,
.bshop_container input[type="button"]:not(.delete_item):hover {
  background: var(--bshop-bg-hover);
}

.bshop_container .bshop_btn_danger,
.bshop_container .btn-danger,
.bshop_container .cancel_subscription {
  background: var(--bshop-danger);
  color: white;
}

.bshop_container .bshop_btn_danger:hover,
.bshop_container .btn-danger:hover,
.bshop_container .cancel_subscription:hover {
  background: #b91c1c;
}

/* order_page 구매하기 버튼 */
input#ok_btn[type="submit"] {
  width: 100% !important;
  padding: 14px !important;
  font-size: 16px !important;
  margin-top: 24px !important;
  font-weight: 600 !important;
  background: #333 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

input#ok_btn[type="submit"]:hover {
  background: #000 !important;
}

.bshop_container #btn_layer {
  text-align: center;
  margin-top: 30px;
}

.bshop_container #btn_layer input[type="button"],
.bshop_container #btn_layer button {
  margin: 0 5px;
  min-width: 120px;
}

/* ===== 테이블 ===== */
.bshop_container .bshop_table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bshop-bg-white);
  border: 1px solid var(--bshop-border);
  margin: 20px 0;
}

.bshop_container .bshop_table thead {
  background: var(--bshop-bg-light);
}

.bshop_container .bshop_table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  font-size: 14px;
  color: var(--bshop-text-secondary);
  border-bottom: 1px solid var(--bshop-border);
}

.bshop_container .bshop_table tbody tr {
  border-bottom: 1px solid var(--bshop-border);
  transition: var(--bshop-transition);
}

.bshop_container .bshop_table tbody tr:hover {
  background: var(--bshop-bg-hover);
}

.bshop_container .bshop_table tbody tr:last-child {
  border-bottom: none;
}

.bshop_container .bshop_table tbody td {
  padding: 16px;
  color: var(--bshop-text-primary);
  font-size: 14px;
  vertical-align: middle;
  text-align: left;
}

/* ===== 장바구니 테이블 ===== */
.bshop_container .bshop_order {
  position: relative;
}

.bshop_container .bshop_order.invalid {
  opacity: 0.6;
}

.bshop_container .bshop_order.invalid .bshop_order_item span {
  text-decoration: line-through;
}

.bshop_container .bshop_order_empty {
  text-align: center;
  padding: 40px !important;
  color: var(--bshop-text-muted);
}

.bshop_container .bshop_thumbnail,
.bshop_container .bshop_order_thumbnail {
  display: inline-block;
  width: 80px;
  height: 80px;
}

.bshop_container .bshop_thumbnail img,
.bshop_container .bshop_order_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--bshop-radius);
  border: 1px solid var(--bshop-border);
}

.bshop_container .bshop_order_item {
  font-size: 14px;
  color: var(--bshop-text-primary);
  line-height: 1.6;
}

.bshop_container .bshop_order_item span {
  display: block;
}

.bshop_container .bshop_quantity {
  width: 50px !important;
  max-width: 50px !important;
  padding: 4px;
  border: 1px solid var(--bshop-border);
  border-radius: var(--bshop-radius);
  text-align: center;
  font-size: 14px;
}

.bshop_container .bshop_order_total {
  font-weight: 600;
  color: var(--bshop-primary);
  font-size: 15px;
}

.bshop_container .delete_item {
  padding: 6px 12px;
  background: var(--bshop-danger);
  color: white;
  border: none;
  border-radius: var(--bshop-radius);
  cursor: pointer;
  font-size: 12px;
  transition: var(--bshop-transition);
}

.bshop_container .delete_item:hover {
  background: #b91c1c;
}

/* ===== 주문 목록 헤더 ===== */
.bshop_container .bshop_order_list_header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bshop-border);
}

/* ===== 주문 ID와 상태 ===== */
.bshop_container .bshop_order_id {
  display: inline-block;
  padding: 4px 8px;
  background: var(--bshop-text-primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  font-family: monospace;
  border: 1px solid var(--bshop-text-primary);
}

.bshop_container .bshop_order_created_at {
  font-size: 13px;
  color: var(--bshop-text-secondary);
  line-height: 1.5;
}

.bshop_container .bshop_order_created_at a {
  color: var(--bshop-primary);
  text-decoration: none;
}

.bshop_container .bshop_order_created_at a:hover {
  text-decoration: underline;
}

/* ===== 상태 태그 ===== */
.bshop_container .bshop_tag,
.bshop_container .bshop_status,
.bshop_container .bshop_order_status {
  display: inline-block;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
}

.bshop_container .bshop_status[data-status="DONE"],
.bshop_container .bshop_status[data-status="APPROVED"] {
  color: var(--bshop-success);
  border-color: var(--bshop-success);
}

.bshop_container .bshop_status[data-status="WAITING_FOR_DEPOSIT"],
.bshop_container .bshop_status[data-status="PENDING"] {
  color: var(--bshop-warning);
  border-color: var(--bshop-warning);
}

.bshop_container .bshop_status[data-status="CANCELED"],
.bshop_container .bshop_status[data-status="FAILED"],
.bshop_container .bshop_status[data-status="REFUNDED"] {
  color: var(--bshop-danger);
  border-color: var(--bshop-danger);
}

/* ===== 결제 수단 섹션 ===== */
.bshop_container section#pay_method {
  padding: 20px 0;
  border-top: 1px solid var(--bshop-border);
  border-bottom: 1px solid var(--bshop-border);
  margin: 24px 0;
  text-align: left;
}

.bshop_container section#pay_method h2 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--bshop-text-primary);
}

.bshop_container section#pay_method input[type="radio"] {
  display: none;
}

.bshop_container section#pay_method label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border: 2px solid var(--bshop-border);
  cursor: pointer;
  transition: var(--bshop-transition);
  font-size: 14px;
  font-weight: 500;
  color: var(--bshop-text-secondary);
  background: var(--bshop-bg-white);
  gap: 8px;
}

.bshop_container section#pay_method input[type="radio"]:checked + label {
  border-color: var(--bshop-primary);
  background: var(--bshop-primary);
  color: white;
}

.bshop_container section#pay_method label:hover {
  border-color: var(--bshop-primary);
}

.bshop_container section#pay_method label svg {
  width: 20px;
  height: 20px;
}

/* PC: 가로 flex 정렬 */
.bshop_container section#pay_method > div {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

/* 모바일: 세로 정렬 */
@media (max-width: 768px) {
  .bshop_container section#pay_method > div {
    flex-direction: column;
  }

  .bshop_container section#pay_method label {
    width: 100%;
  }
}

/* ===== 배송지 정보 ===== */
.bshop_container #delivery_info,
.bshop_container .bshop_delivery_info {
  padding: 20px 0;
  border-top: 1px solid var(--bshop-border);
  border-bottom: 1px solid var(--bshop-border);
  margin: 24px 0;
}

/* 배송지 정보 헤더 영역 (제목 + 관리 버튼) */
.bshop_container #delivery_info > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.bshop_container .bshop_address_title {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  color: var(--bshop-text-primary);
}

.bshop_container .bshop_btn_address_manage {
  padding: 8px 16px;
  background: var(--bshop-bg-white);
  border: 1px solid var(--bshop-border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--bshop-text-primary);
  transition: var(--bshop-transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bshop_container .bshop_btn_address_manage:hover {
  background: var(--bshop-bg-hover);
}

.bshop_container .bshop_address_form {
  text-align: left;
}

.bshop_container .bshop_address_form p {
  color: var(--bshop-text-primary);
  font-weight: 500;
  margin: 16px 0 8px 0;
  font-size: 14px;
  text-align: left;
}

.bshop_container .bshop_address_required {
  color: var(--bshop-danger);
}

.bshop_container .bshop_address_wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.bshop_container .bshop_address_postcode {
  flex: 0 0 30%;
}

.bshop_container .bshop_address_wrapper button,
.bshop_container #search_postcode {
  padding: 10px 16px;
  background: var(--bshop-primary);
  color: white;
  border: none;
  border-radius: var(--bshop-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--bshop-transition);
  white-space: nowrap;
  font-size: 14px;
}

.bshop_container .bshop_address_wrapper button:hover,
.bshop_container #search_postcode:hover {
  background: var(--bshop-primary-hover);
}

/* 새 배송지 추가 폼 기본 숨김 */
.bshop_container #newAddressForm {
  display: none;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--bshop-border);
  border-radius: 8px;
  background: var(--bshop-bg-light);
}

/* ===== 옵션 선택 섹션 숨김 ===== */
.bshop_container .bshop_option_section {
  display: none !important;
}

/* ===== 입금자 정보 ===== */
.bshop_container section#depositor {
  padding: 20px 0;
  margin: 24px 0 24px auto;
  border-top: 1px solid var(--bshop-border);
  border-bottom: 1px solid var(--bshop-border);
  width: 100%;
  max-width: 400px;
}

.bshop_container section#depositor p {
  margin: 0 0 8px 0;
  font-weight: 500;
  color: var(--bshop-text-primary);
  font-size: 14px;
  text-align: left;
}

.bshop_container section#depositor input {
  width: 100%;
}

.bshop_container section#depositor span#required {
  color: var(--bshop-danger);
}

/* ===== 포인트 할인 ===== */
.bshop_container #point_discount {
  padding: 20px;
  margin: 24px 0 0 auto;
  border: 1px solid var(--bshop-border);
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  background: var(--bshop-bg-white);
}

.bshop_container #point_discount > p:first-child {
  color: var(--bshop-text-primary);
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bshop_container #point_discount .point_actions {
  display: flex;
  gap: 6px;
}

.bshop_container #point_discount a {
  color: var(--bshop-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  padding: 4px 12px;
  border: 1px solid var(--bshop-primary);
  border-radius: 4px;
  transition: var(--bshop-transition);
}

.bshop_container #point_discount a:hover {
  background: var(--bshop-primary);
  color: white;
  text-decoration: none;
}

.bshop_container #point_discount a.point_clear {
  color: var(--bshop-text-secondary);
  border-color: var(--bshop-border);
}

.bshop_container #point_discount a.point_clear:hover {
  background: var(--bshop-bg-hover);
  color: var(--bshop-text-primary);
  border-color: var(--bshop-border);
}

.bshop_container #point_discount .point_input_wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bshop_container #point_discount input[type="number"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--bshop-border);
  border-radius: 4px;
  font-size: 14px;
  text-align: right;
}

.bshop_container #point_discount .point_unit {
  color: var(--bshop-text-secondary);
  font-weight: 500;
  font-size: 14px;
}

.bshop_container #point_discount .point_notice {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: var(--bshop-text-muted);
  font-weight: 400;
}

@media (max-width: 768px) {
  .bshop_container #point_discount {
    width: 100%;
    margin-left: 0;
  }
}

/* ===== 쿠폰 섹션 ===== */
.bshop_container #coupon_section {
  padding: 20px 0;
  margin: 20px 0;
  border-top: 1px solid var(--bshop-border);
  border-bottom: 1px solid var(--bshop-border);
}

.bshop_container .bshop_coupon_form {
  margin-top: 10px;
}

.bshop_container .bshop_coupon_input_wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bshop_container .bshop_coupon_input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--bshop-border);
  border-radius: var(--bshop-radius);
  font-size: 14px;
}

.bshop_container .bshop_coupon_button {
  padding: 10px 20px;
  background: var(--bshop-primary);
  color: white;
  border: none;
  border-radius: var(--bshop-radius);
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.bshop_container .bshop_coupon_button:hover {
  opacity: 0.9;
}

.bshop_container #coupon_message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 10px;
  border-radius: var(--bshop-radius);
  font-size: 14px;
}

.bshop_container #coupon_message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: var(--bshop-radius);
  font-size: 14px;
}

.bshop_container #coupon_discount_line {
  color: #ff4757;
  font-weight: 500;
}

.bshop_container .bshop_price_summary,
.bshop_container .bshop_price_row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* ===== 구매 확인 체크박스 ===== */
.bshop_container #purchase_check {
  padding: 16px 0;
  margin: 20px 0;
  border-top: 1px solid var(--bshop-border);
  border-bottom: 1px solid var(--bshop-border);
}

.bshop_container #purchase_check label {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 14px;
  color: var(--bshop-text-primary);
  cursor: pointer;
}

.bshop_container #purchase_check a {
  color: var(--bshop-danger);
  font-weight: 500;
  text-decoration: underline;
  margin: 0 4px;
}

/* ===== 성공/실패 페이지 ===== */
.bshop_container #p_content #p_title {
  font-size: 24px;
  font-weight: 600;
  margin: 20px 0;
  color: var(--bshop-text-primary);
}

.bshop_container #p_content #p_icn {
  width: 60px;
  height: 60px;
  margin: 20px auto;
  display: block;
}

.bshop_container #s_content {
  text-align: left;
  margin: 20px auto;
}

.bshop_container #s_title {
  font-size: 14px;
  color: var(--bshop-text-secondary);
  font-weight: 500;
  margin: 8px;
}

.bshop_container #s_value {
  font-size: 16px;
  color: var(--bshop-text-primary);
  margin: 8px;
}

.bshop_container #s_hr {
  border: none;
  border-top: 1px solid var(--bshop-border);
  margin: 20px;
}

/* ===== 구독 관리 ===== */
.bshop_container .bshop_subscription_list {
  margin: 24px 0;
}

.bshop_container .bshop_subscription_thumbnail {
  width: 80px;
  height: 80px;
}

.bshop_container .bshop_subscription_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--bshop-radius);
  border: 1px solid var(--bshop-border);
}

.bshop_container .bshop_subscription_name {
  font-weight: 500;
  color: var(--bshop-text-primary);
  font-size: 14px;
}

.bshop_container .bshop_subscription_status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--bshop-radius);
  font-size: 12px;
  font-weight: 500;
}

.bshop_container .bshop_subscription_status.ACTIVE {
  color: var(--bshop-success);
  border-color: var(--bshop-success);
}

.bshop_container .bshop_subscription_status.CANCELLED,
.bshop_container .bshop_subscription_status.CANCELED_REFUND {
  color: var(--bshop-danger);
  border-color: var(--bshop-danger);
}

.bshop_container .bshop_subscription_status.PENDING {
  color: var(--bshop-warning);
  border-color: var(--bshop-warning);
}

.bshop_container .bshop_subscription_no_action {
  color: var(--bshop-text-muted);
  font-size: 13px;
}

.bshop_container .bshop_empty_list {
  padding: 40px;
  text-align: center;
  border: 1px solid var(--bshop-border);
  color: var(--bshop-text-muted);
}

/* ===== 알림 메시지 ===== */
.bshop_container .alert,
.bshop_container .bshop_alert {
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: var(--bshop-radius);
  font-size: 14px;
}

.bshop_container .alert-success,
.bshop_container .bshop_alert_success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.bshop_container .alert-warning,
.bshop_container .bshop_alert_warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.bshop_container .alert-danger,
.bshop_container .bshop_alert_danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.bshop_container .alert-info,
.bshop_container .bshop_alert_info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* ===== 카드 레이아웃 ===== */
.bshop_container .card,
.bshop_container .bshop_card {
  background: var(--bshop-bg-white);
  border: 1px solid var(--bshop-border);
  border-radius: var(--bshop-radius);
  margin-bottom: 16px;
}

.bshop_container .card-header,
.bshop_container .bshop_card_header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--bshop-border);
  background: var(--bshop-bg-light);
}

.bshop_container .card-body,
.bshop_container .bshop_card_body {
  padding: 20px;
}

.bshop_container .card-footer,
.bshop_container .bshop_card_footer {
  padding: 16px 20px;
  border-top: 1px solid var(--bshop-border);
  background: var(--bshop-bg-light);
}

/* ===== 쿠폰 컨테이너 ===== */
.bshop_container .bshop_coupon_container {
  margin: 40px auto;
  padding: 32px 20px;
  border-top: 2px solid var(--bshop-border);
  border-bottom: 2px solid var(--bshop-border);
  max-width: 600px;
}

.bshop_container .bshop_title {
  text-align: center;
  color: var(--bshop-text-primary);
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 600;
}

.bshop_container .bshop_coupon_info {
  text-align: center;
  color: var(--bshop-text-secondary);
  margin-bottom: 24px;
  font-size: 14px;
}

.bshop_container .bshop_input_group {
  margin-bottom: 16px;
}

.bshop_container .bshop_button_group {
  text-align: center;
}

/* ===== 로딩 스피너 ===== */
.bshop_container .loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--bshop-border);
  border-radius: 50%;
  border-top-color: var(--bshop-primary);
  animation: bshop-spin 0.8s linear infinite;
}

@keyframes bshop-spin {
  to { transform: rotate(360deg); }
}

/* ===== 텍스트 유틸리티 ===== */
.bshop_container .text-center,
.bshop_container .bshop_text_center { text-align: center; }
.bshop_container .text-right,
.bshop_container .bshop_text_right { text-align: right; }
.bshop_container .text-left,
.bshop_container .bshop_text_left { text-align: left; }
.bshop_container .text-info,
.bshop_container .bshop_text_info { color: var(--bshop-info); font-size: 13px; }

/* ===== 모바일 카드 스타일 ===== */
.bshop_container .bshop_mobile_card {
  background: var(--bshop-bg-white);
  border: 1px solid var(--bshop-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.bshop_container .bshop_mobile_card.invalid {
  background: #fef2f2;
  border-color: #fca5a5;
}

.bshop_container .bshop_mobile_image {
  width: 100%;
  max-width: 120px;
  margin: 0 auto 12px;
}

.bshop_container .bshop_mobile_image img {
  object-fit: cover;
  border: 1px solid var(--bshop-border);
  border-radius: 4px;
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
}

.bshop_container .bshop_mobile_title {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--bshop-text-primary);
  line-height: 1.4;
}

.bshop_container .bshop_mobile_option {
  margin: 0 0 12px 0;
  padding: 6px 10px;
  background: var(--bshop-bg-light);
  color: var(--bshop-text-secondary);
  font-size: 13px;
  display: inline-block;
  border-radius: 4px;
  border: 1px solid var(--bshop-border);
}

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

.bshop_container .bshop_mobile_row:first-of-type {
  border-top: 2px solid var(--bshop-border);
  margin-top: 12px;
}

.bshop_container .bshop_mobile_label {
  font-size: 13px;
  color: var(--bshop-text-secondary);
  font-weight: 500;
}

.bshop_container .bshop_mobile_value {
  font-size: 14px;
  font-weight: 600;
  color: var(--bshop-text-primary);
}

.bshop_container .mobile_quantity {
  width: 70px !important;
  padding: 6px 10px;
  border: 1px solid var(--bshop-border);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.bshop_container .bshop_mobile_empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px solid var(--bshop-border);
  color: var(--bshop-text-muted);
  font-size: 14px;
}

.bshop_container .delete_item_mobile {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: var(--bshop-danger);
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--bshop-transition);
}

.bshop_container .delete_item_mobile:hover {
  background: #b91c1c;
}

.bshop_container .bshop_cart_header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bshop-border);
}

.bshop_container #result {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--bshop-border);
  border-radius: 8px;
  margin-left: auto;
  width: 100%;
  max-width: 400px;
  background: var(--bshop-bg-white);
}

.bshop_container #result p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--bshop-text-secondary);
}

.bshop_container #result p:last-child {
  margin: 16px 0 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--bshop-border);
  font-weight: 700;
  font-size: 18px;
  color: var(--bshop-text-primary);
}

.bshop_container #result span {
  font-weight: 600;
  color: var(--bshop-text-primary);
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: right;
}

.bshop_container #purchase {
  margin-top: 16px;
  margin-left: auto;
  width: 100%;
  max-width: 400px;
}

.bshop_container #purchase #purchase_btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .bshop_container #result,
  .bshop_container #purchase,
  .bshop_container #point_discount,
  .bshop_container section#depositor {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
}

/* ===== 주문 목록 모바일 카드 ===== */
.bshop_container .bshop_order_mobile_card {
  background: var(--bshop-bg-white);
  border: 1px solid var(--bshop-border);
  padding: 16px;
  margin-bottom: 16px;
}

.bshop_container .bshop_order_mobile_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bshop-border);
}

.bshop_container .bshop_order_mobile_id {
  font-size: 14px;
  font-weight: 600;
  color: var(--bshop-text-primary);
}

.bshop_container .bshop_order_mobile_status {
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
}

.bshop_container .bshop_order_mobile_status[data-status="DONE"] {
  color: var(--bshop-success);
  border-color: var(--bshop-success);
}

.bshop_container .bshop_order_mobile_status[data-status="WAITING_FOR_DEPOSIT"] {
  color: var(--bshop-warning);
  border-color: var(--bshop-warning);
}

.bshop_container .bshop_order_mobile_status[data-status="CANCELED"] {
  color: var(--bshop-danger);
  border-color: var(--bshop-danger);
}

.bshop_container .bshop_order_mobile_thumb {
  width: 60px;
  height: 60px;
  margin-right: 12px;
  float: left;
}

.bshop_container .bshop_order_mobile_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--bshop-border);
}

.bshop_container .bshop_order_mobile_product_info {
  overflow: hidden;
}

.bshop_container .bshop_order_mobile_product_name {
  font-size: 14px;
  font-weight: 600;
  color: var(--bshop-text-primary);
  margin: 0 0 4px 0;
}

.bshop_container .bshop_order_mobile_product_option {
  font-size: 12px;
  color: var(--bshop-text-secondary);
  margin: 2px 0;
}

.bshop_container .bshop_order_mobile_price_row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--bshop-border);
}

.bshop_container .bshop_order_mobile_price_label {
  font-size: 13px;
  color: var(--bshop-text-secondary);
}

.bshop_container .bshop_order_mobile_price_value {
  font-size: 14px;
  font-weight: 600;
  color: var(--bshop-text-primary);
}

.bshop_container .bshop_order_mobile_total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 2px solid var(--bshop-border);
  margin-top: 8px;
}

.bshop_container .bshop_order_mobile_total_label {
  font-size: 14px;
  font-weight: 600;
  color: var(--bshop-text-primary);
}

.bshop_container .bshop_order_mobile_total_value {
  font-size: 16px;
  font-weight: 700;
  color: var(--bshop-text-primary);
}

.bshop_container .bshop_order_mobile_footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--bshop-border);
  text-align: right;
}

/* ===== 구독 관리 모바일 카드 ===== */
.bshop_container .bshop_subscription_mobile_card {
  background: var(--bshop-bg-white);
  border: 1px solid var(--bshop-border);
  padding: 16px;
  margin-bottom: 16px;
}

.bshop_container .bshop_subscription_mobile_header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bshop-border);
}

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

.bshop_container .bshop_subscription_mobile_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--bshop-border);
}

.bshop_container .bshop_subscription_mobile_info {
  flex: 1;
}

.bshop_container .bshop_subscription_mobile_title {
  font-size: 14px;
  font-weight: 600;
  color: var(--bshop-text-primary);
  margin: 0 0 4px 0;
}

.bshop_container .bshop_subscription_mobile_option {
  font-size: 12px;
  color: var(--bshop-text-secondary);
  margin: 0;
}

.bshop_container .bshop_subscription_mobile_body {
  margin-bottom: 12px;
}

.bshop_container .bshop_subscription_mobile_row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--bshop-border);
}

.bshop_container .bshop_subscription_mobile_label {
  font-size: 13px;
  color: var(--bshop-text-secondary);
}

.bshop_container .bshop_subscription_mobile_value {
  font-size: 14px;
  font-weight: 600;
  color: var(--bshop-text-primary);
}

.bshop_container .bshop_subscription_mobile_status {
  display: inline-block;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
}

.bshop_container .bshop_subscription_mobile_status.ACTIVE {
  color: var(--bshop-success);
  border-color: var(--bshop-success);
}

.bshop_container .bshop_subscription_mobile_status.CANCELLED {
  color: var(--bshop-danger);
  border-color: var(--bshop-danger);
}

.bshop_container .bshop_subscription_mobile_status.PENDING {
  color: var(--bshop-warning);
  border-color: var(--bshop-warning);
}

.bshop_container .bshop_subscription_mobile_footer {
  padding-top: 12px;
  border-top: 1px solid var(--bshop-border);
  text-align: right;
}

/* ===== 반응형 디자인 - 테이블 ===== */
@media (max-width: 768px) {
  .bshop_container {
    padding: 20px 16px;
  }

  .bshop_container .bshop_table {
    border: none;
    background: transparent;
  }

  .bshop_container .bshop_table thead {
    display: none;
  }

  .bshop_container .bshop_table tbody {
    display: block;
  }

  .bshop_container .bshop_table tbody tr,
  .bshop_container .bshop_order {
    display: block;
    margin-bottom: 16px;
    border: 1px solid var(--bshop-border);
    padding: 16px;
    background: var(--bshop-bg-white);
  }

  .bshop_container .bshop_table tbody td {
    display: block;
    text-align: left;
    padding: 8px 0;
    border: none;
  }

  .bshop_container .bshop_thumbnail,
  .bshop_container .bshop_order_thumbnail {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 16px;
  }

  .bshop_container .bshop_thumbnail img,
  .bshop_container .bshop_order_thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .bshop_container section#pay_method label {
    display: block;
    margin: 8px 0;
  }

  .bshop_container .bshop_address_wrapper {
    flex-direction: column;
  }

  .bshop_container .bshop_address_postcode {
    flex: 1;
  }

  .bshop_container .bshop_address_wrapper button {
    width: 100%;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .bshop_container h1,
  .bshop_container .bshop_page_title {
    font-size: 20px;
  }

  .bshop_container h2,
  .bshop_container .bshop_section_title {
    font-size: 16px;
  }

  .bshop_container .bshop_btn,
  .bshop_container button,
  .bshop_container input[type="button"],
  .bshop_container input[type="submit"] {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* 결제 수단 버튼은 폰트 크기 유지 */
  .bshop_container section#pay_method label {
    font-size: 14px;
  }
}

/* 다크모드 select option */
body.color_scheme_dark .bshop_container select option {
  background-color: var(--bshop-bg-white);
  color: var(--bshop-text-primary);
}

/* ===== 주문 완료/실패 결과 페이지 ===== */
.bshop_container #p_content {
  text-align: center;
  margin: 60px auto;
  padding: 40px 20px;
  border-top: 2px solid var(--bshop-border);
  border-bottom: 2px solid var(--bshop-border);
}

.bshop_container #p_content #p_title {
  font-size: 26px;
  font-weight: 600;
  margin: 20px 0;
  color: var(--bshop-text-primary);
}

.bshop_container #p_content #p_icn {
  width: 70px;
  height: 70px;
  margin: 30px auto 20px;
  display: block;
}

.bshop_container #p_content #p_msg {
  margin: 20px 0;
  font-size: 15px;
  color: var(--bshop-text-secondary);
  line-height: 1.6;
}

.bshop_container #p_content #btn_layer {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.bshop_container #p_content #btn_layer input[type="button"],
.bshop_container #p_content #btn_layer button {
  padding: 12px 24px;
  font-size: 15px;
  min-width: 120px;
}

.bshop_container #r_content {
  margin: 40px auto;
  padding: 32px 20px;
  border-top: 2px solid var(--bshop-border);
  border-bottom: 2px solid var(--bshop-border);
}

.bshop_container #r_title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--bshop-text-primary);
  text-align: center;
}

.bshop_container #s_content {
  margin: 24px 0;
}

.bshop_container .bshop_info_row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--bshop-border);
}

.bshop_container .bshop_info_row:first-child {
  border-top: 1px solid var(--bshop-border);
}

.bshop_container #s_title {
  font-size: 14px;
  color: var(--bshop-text-secondary);
  font-weight: 500;
}

.bshop_container #s_value {
  font-size: 15px;
  color: var(--bshop-text-primary);
  font-weight: 600;
  text-align: right;
}

.bshop_container #s_hr {
  border: none;
  border-top: 1px solid var(--bshop-border);
  margin: 24px 0;
}

.bshop_container #r_content #btn_layer {
  margin-top: 32px;
  text-align: center;
}

/* ===== 모달 공통 스타일 ===== */
.bshop_modal,
.option_modal,
.coupon_modal,
.delivery_modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  overflow: auto;
}

.bshop_modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.option_modal .modal_content,
.coupon_modal .modal_content,
.delivery_modal .modal_content {
  background: var(--bshop-bg-white);
  margin: 5% auto;
  padding: 0;
  border: none;
  width: 90%;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.option_modal .modal_content {
  max-width: 500px;
}

.coupon_modal .modal_content {
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.delivery_modal .modal_content {
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.delivery_modal .modal_header {
  padding: 24px;
}

.modal_header h3 {
  margin: 0;
  color: var(--bshop-text-primary);
  font-size: 18px;
  font-weight: 700;
}

.modal_header .close {
  color: #9ca3af;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  line-height: 1;
  transition: var(--bshop-transition);
  border-radius: 4px;
}

.modal_header .close:hover {
  color: var(--bshop-text-primary);
  background: var(--bshop-bg-hover);
}

.modal_body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.delivery_modal .modal_body {
  padding: 24px;
}

.modal_footer {
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.modal_footer button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: var(--bshop-transition);
}

.modal_footer button:first-child {
  background: var(--bshop-bg-light);
  color: var(--bshop-text-primary);
  border: 1px solid var(--bshop-border);
}

.modal_footer button:first-child:hover {
  background: var(--bshop-bg-hover);
}

.modal_footer button:last-child {
  background: var(--bshop-primary);
  color: white;
}

.modal_footer button:last-child:hover {
  background: var(--bshop-primary-hover);
}

.bshop_modal_content {
  background: var(--bshop-bg-white);
  width: 90%;
  max-width: 500px;
  border: 2px solid var(--bshop-border);
}

.bshop_modal_header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--bshop-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bshop_modal_header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--bshop-text-primary);
}

.bshop_modal_close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--bshop-text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bshop_modal_close:hover {
  color: var(--bshop-text-primary);
}

.bshop_modal_body {
  padding: 24px;
}

.bshop_modal_body p {
  margin: 12px 0;
  color: var(--bshop-text-secondary);
  line-height: 1.6;
  font-size: 14px;
}

.bshop_modal_body p strong {
  color: var(--bshop-text-primary);
}

.bshop_modal_footer {
  padding: 20px 24px;
  border-top: 1px solid var(--bshop-border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.bshop_modal_footer button {
  padding: 10px 20px;
  font-size: 14px;
  min-width: 100px;
}

/* ===== 주문 페이지 요약 테이블 ===== */
.bshop_container .bshop_summary_table {
  width: 100%;
  margin: 24px 0;
  border-top: 2px solid var(--bshop-border);
  border-bottom: 2px solid var(--bshop-border);
}

.bshop_container .bshop_summary_table tr {
  border-bottom: 1px solid var(--bshop-border);
}

.bshop_container .bshop_summary_table tr:last-child {
  border-bottom: none;
}

.bshop_container .bshop_summary_table td {
  padding: 14px 16px;
  font-size: 14px;
}

.bshop_container .bshop_summary_table td:first-child {
  color: var(--bshop-text-secondary);
  font-weight: 500;
  width: 30%;
}

.bshop_container .bshop_summary_table td:last-child {
  color: var(--bshop-text-primary);
  font-weight: 600;
  text-align: right;
}

.bshop_container .bshop_summary_table .total-row td {
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--bshop-text-primary);
  border-top: 2px solid var(--bshop-border);
}

.bshop_container .bshop_summary_table .total-row td:last-child {
  font-size: 18px;
}

/* ===== 토스 결제 위젯 ===== */
.bshop_container #payment-widget,
.bshop_container #payment-method {
  margin: 24px 0;
  min-height: 200px;
}

.bshop_container .bshop_payment_section {
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--bshop-border);
  border-bottom: 1px solid var(--bshop-border);
}

.bshop_container .bshop_payment_title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--bshop-text-primary);
}

/* ===== 쿠폰 등록 페이지 ===== */
.bshop_container .bshop_coupon_register_container {
  margin: 60px auto;
  padding: 40px 20px;
  border-top: 2px solid var(--bshop-border);
  border-bottom: 2px solid var(--bshop-border);
}

.bshop_container .bshop_coupon_register_title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--bshop-text-primary);
}

.bshop_container .bshop_coupon_register_form {
  margin-bottom: 24px;
}

.bshop_container .bshop_coupon_register_input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--bshop-border);
  font-size: 15px;
  text-align: center;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
}

.bshop_container .bshop_coupon_register_button {
  width: 100%;
  padding: 14px;
  background: var(--bshop-primary);
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--bshop-transition);
  margin-top: 16px;
}

.bshop_container .bshop_coupon_register_button:hover {
  background: var(--bshop-primary-hover);
}

.bshop_container .bshop_coupon_back_button {
  width: 100%;
  padding: 12px;
  background: var(--bshop-bg-light);
  color: var(--bshop-text-primary);
  border: 1px solid var(--bshop-border);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--bshop-transition);
  margin-top: 12px;
}

.bshop_container .bshop_coupon_back_button:hover {
  background: var(--bshop-bg-hover);
}

/* ===== 반응형 - 결과 페이지 ===== */
@media (max-width: 768px) {
  .bshop_container #p_content,
  .bshop_container #r_content {
    margin: 30px auto;
    padding: 24px 16px;
  }

  .bshop_container #p_content #p_title {
    font-size: 22px;
  }

  .bshop_container #p_content #btn_layer {
    flex-direction: column;
  }

  .bshop_container #p_content #btn_layer input[type="button"],
  .bshop_container #p_content #btn_layer button {
    width: 100%;
  }
}

/* ===== 주문 페이지 버튼 스타일 ===== */
.bshop_container .btn_option_edit,
.bshop_container .btn_coupon_apply,
.bshop_container .btn_option_edit_mobile,
.bshop_container .btn_coupon_apply_mobile {
  font-size: 11px;
  background: var(--bshop-primary);
  color: white;
  border: none;
  padding: 3px 8px;
  margin-right: 5px;
  cursor: pointer;
}

.bshop_container .btn_coupon_apply,
.bshop_container .btn_coupon_apply_mobile {
  background: var(--bshop-success);
}

/* ===== 모달 내부 요소 스타일 ===== */
.option_section label,
.quantity_section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--bshop-text-primary);
  font-size: 14px;
  text-align: left;
}

.option_section select,
.quantity_section input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--bshop-border);
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
  transition: var(--bshop-transition);
}

.option_section select:focus,
.quantity_section input[type="number"]:focus {
  outline: none;
  border-color: var(--bshop-primary);
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.quantity_section > div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.quantity_section button {
  background: var(--bshop-bg-white);
  border: 1px solid var(--bshop-border);
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--bshop-transition);
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity_section button:hover {
  background: var(--bshop-bg-hover);
  border-color: var(--bshop-primary);
}

.quantity_section button:before {
  content: '−';
  font-size: 18px;
  line-height: 1;
}

.quantity_section button:last-of-type:before {
  content: '+';
}

.quantity_section input {
  width: 80px !important;
  text-align: center;
  margin: 0 !important;
}

.price_info {
  margin-top: 20px;
  padding: 16px;
  background: var(--bshop-bg-light);
  border-radius: 8px;
  border: 1px solid var(--bshop-border);
}

.price_info > div {
  display: flex;
  justify-content: space-between;
}

.price_info #modalTotalPrice {
  font-size: 18px;
  font-weight: bold;
  color: var(--bshop-primary);
}

/* 쿠폰 모달 전용 스타일 */
.coupon_info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.coupon_info h4 {
  margin: 0 0 12px 0;
  color: #1e40af;
  font-size: 14px;
  font-weight: 600;
}

.coupon_info ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #1e3a8a;
  line-height: 1.6;
}

.coupon_info ul li {
  margin-bottom: 4px;
}

.current_product_info {
  background: var(--bshop-bg-light);
  border: 1px solid var(--bshop-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.current_product_info > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.current_product_info > div:last-child {
  margin-bottom: 0;
}

.current_product_info > div span:first-child {
  color: var(--bshop-text-secondary);
  font-weight: 500;
}

.current_product_info > div span:last-child {
  color: var(--bshop-text-primary);
  font-weight: 600;
}

.coupon_inputs_section {
  margin-bottom: 20px;
}

.coupon_inputs_section h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--bshop-text-primary);
}

.coupon_discount_summary {
  margin-top: 20px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
}

.coupon_discount_summary h4 {
  margin: 0 0 12px 0;
  color: #15803d;
  font-size: 14px;
  font-weight: 600;
}

.coupon_discount_summary > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.coupon_discount_summary > div:last-child {
  font-weight: 700;
  font-size: 16px;
  padding-top: 12px;
  margin-top: 8px;
  margin-bottom: 0;
  border-top: 2px solid #22c55e;
}

.coupon_discount_summary > div span:first-child {
  color: #166534;
}

.coupon_discount_summary > div span:last-child {
  color: #15803d;
  font-weight: 600;
}

#totalCouponDiscount {
  color: var(--bshop-danger) !important;
  font-weight: 700 !important;
}

#finalProductPrice {
  color: #1e40af !important;
  font-weight: 700 !important;
}

/* ===== 결제 완료 페이지 - 입금 정보 카드 ===== */
.bshop_bank_info_card {
  background: var(--bshop-bg-white);
  border: 1px solid var(--bshop-border);
  border-radius: 12px;
  padding: 32px;
  margin: 24px auto;
  max-width: 700px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

body.color_scheme_dark .bshop_bank_info_card {
  background: var(--bshop-bg-white);
  border-color: var(--bshop-border);
}

.bshop_bank_info_title {
  font-size: 16px;
  font-weight: 600;
  color: var(--bshop-text-primary);
  margin: 0 0 20px 0;
  padding: 0;
}

.bshop_bank_info_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.bshop_bank_info_table tr {
  border-bottom: 1px solid #f3f4f6;
}

.bshop_bank_info_table tr:last-child {
  border-bottom: none;
}

body.color_scheme_dark .bshop_bank_info_table tr {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.bshop_bank_info_label {
  padding: 16px 0;
  font-weight: 600;
  color: #374151;
  width: 35%;
  vertical-align: top;
  font-size: 15px;
}

.bshop_bank_info_value {
  padding: 16px 0;
  color: #6b7280;
  font-size: 15px;
}

body.color_scheme_dark .bshop_bank_info_label {
  color: var(--bshop-text-primary);
}

body.color_scheme_dark .bshop_bank_info_value {
  color: var(--bshop-text-secondary);
}

.bshop_bank_info_deadline {
  color: var(--bshop-danger);
  font-weight: 600;
}

/* 결제 완료 페이지 - 하단 버튼 영역 */
.bshop_result_actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.bshop_result_actions .bshop_btn {
  min-width: 150px;
}

@media (max-width: 768px) {
  .bshop_bank_info_card {
    padding: 20px;
  }

  .bshop_bank_info_label {
    width: 35%;
    font-size: 14px;
    padding: 10px 12px 10px 0;
  }

  .bshop_bank_info_value {
    font-size: 14px;
    padding: 10px 0;
  }

  .bshop_result_actions {
    flex-direction: column;
    gap: 10px;
  }

  .bshop_result_actions .bshop_btn {
    width: 100%;
  }
}
/* ===== 주문 완료 페이지 스타일 ===== */
    .order_result_container {
        max-width: 700px;
        margin: 60px auto;
        padding: 20px;
    }

    .result_header {
        text-align: center;
        margin-bottom: 40px;
    }

    .result_icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100px;
        height: 100px;
        margin-bottom: 24px;
        border-radius: 50%;
    }

    .result_icon.success {
        background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    }

    .result_icon.warning {
        background: linear-gradient(135deg, #fef3c7, #fde68a);
    }

    .result_icon.info {
        background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    }

    .result_title {
        margin: 0;
        font-size: 28px;
        font-weight: 700;
    }

    .result_title.success {
        color: #059669;
    }

    .result_title.warning {
        color: #d97706;
    }

    .result_title.info {
        color: #2563eb;
    }

    .result_card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 32px;
        margin-bottom: 24px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

    .result_table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

    .result_table tr {
        border-bottom: 1px solid #f3f4f6;
    }

    .result_table tr:last-child {
        border-bottom: none;
    }

    .result_table td {
        padding: 16px 0;
        font-size: 15px;
    }

    .result_table td:first-child {
        width: 35%;
        font-weight: 600;
        color: #374151;
    }

    .result_table td:last-child {
        color: #6b7280;
    }

    .result_amount {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #111827 !important;
    }

    .bank_info_divider td {
        padding: 8px 0 !important;
        border-top: 2px solid #e5e7eb !important;
        border-bottom: none !important;
    }

    .bank_deadline {
        color: #dc2626 !important;
        font-weight: 700 !important;
    }

    .info_box {
        padding: 24px;
        background: #f0f9ff;
        border-left: 4px solid #3b82f6;
        border-radius: 8px;
        margin-bottom: 32px;
    }

    .info_box.warning {
        background: #fffbeb;
        border-left-color: #f59e0b;
    }

    .info_title {
        margin: 0 0 16px 0;
        font-size: 16px;
        font-weight: 600;
        color: #1e40af;
    }

    .info_box.warning .info_title {
        color: #92400e;
    }

    .info_box p {
        margin: 8px 0;
        color: #1e3a8a;
        font-size: 14px;
        line-height: 1.6;
    }

    .info_box.warning p {
        color: #78350f;
    }

    .result_button {
        text-align: center;
    }

    .confirm_btn {
        min-width: 200px;
        padding: 14px 32px;
        background: linear-gradient(to bottom, #3b82f6, #2563eb);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 2px 4px rgba(59,130,246,0.3);
    }

    .confirm_btn:hover {
        background: linear-gradient(to bottom, #2563eb, #1d4ed8);
        box-shadow: 0 4px 8px rgba(59,130,246,0.4);
    }

/* Original file: modules/bshop/usr/css/bshop_mobile_cards.css */

/* 구독 관리 모바일 카드 */
.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;
  }
}

