@charset "UTF-8";

/* Original file: modules/bshop/skins/default/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);
  margin: 0 0 32px 0;
  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;
}

/* 상품 리스트 (order_page.html) */
#r_content ul,
.bshop_product_list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

#r_content ul li,
.bshop_product_item {
  display: flex;
  padding: 20px;
  border: 1px solid var(--bshop-border);
  border-radius: var(--bshop-radius);
  margin-bottom: 12px;
  background: var(--bshop-bg-white);
  transition: var(--bshop-transition);
}

#r_content ul li:hover,
.bshop_product_item:hover {
  box-shadow: var(--bshop-shadow);
  transform: translateY(-2px);
}

#r_content ul li::after {
  display: none; /* float clear 제거 */
}

#r_content div.thumb,
.bshop_product_thumb {
  width: 200px;
  margin-right: 20px;
  flex-shrink: 0;
}

#r_content div.thumb img,
.bshop_product_thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--bshop-radius);
  border: 1px solid var(--bshop-border);
}

#r_content div.gdsInfo,
.bshop_product_info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 14px;
  line-height: 1.8;
}

#r_content div.gdsInfo p {
  margin: 8px 0;
}

#r_content div.gdsInfo span,
.bshop_product_info span {
  display: inline-block;
  min-width: 100px;
  font-weight: 500;
  color: var(--bshop-text-primary);
  margin-right: 10px;
}

#r_content div.gdsInfo select {
  min-width: 200px;
  width: 60%;
  max-width: 400px;
  padding: 8px;
  border: 1px solid var(--bshop-border);
  border-radius: var(--bshop-radius);
  background: var(--bshop-bg-white);
  font-size: 14px;
  margin-top: 10px;
}

/* 폼 요소 */
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%;
}

/* 버튼 스타일 */
button,
input[type="button"],
input[type="submit"],
.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;
}

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

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

/* Secondary 버튼 */
.bshop_btn_secondary,
.btn-secondary,
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,
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,
#purchase button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 24px;
  font-weight: 600;
}

#purchase {
  text-align: center;
  margin-top: 20px;
}

/* 버튼 레이어 */
#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#result,
.bshop_result {
  background: var(--bshop-bg-light);
  padding: 20px;
  border-radius: var(--bshop-radius);
  margin: 24px 0;
  border: 1px solid var(--bshop-border);
}

section#result p {
  margin: 8px 0;
  font-size: 15px;
  color: var(--bshop-text-primary);
}

section#result p:last-child {
  font-size: 18px;
  font-weight: 600;
  color: var(--bshop-primary);
}

section#result p.orange {
  background: var(--bshop-warning);
  color: white;
  padding: 12px;
  border-radius: var(--bshop-radius);
  margin-bottom: 12px;
}

/* 결제 수단 섹션 */
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;
}

/* 옵션 선택 섹션 */
.bshop_option_section {
  background: var(--bshop-bg-white);
  padding: 24px;
  border-radius: var(--bshop-radius);
  border: 1px solid var(--bshop-border);
  margin: 24px 0;
}

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

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

.bshop_option_item:last-child {
  margin-bottom: 0;
}

.bshop_option_label {
  min-width:fit-content;
  flex: 0 0 200px;
  font-size: 14px;
  color: var(--bshop-text-primary);
  font-weight: 500;
}

.bshop_option_item select {
  flex: 1;
  max-width: 400px;
}

@media (max-width: 768px) {
  .bshop_option_item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .bshop_option_label {
    flex: none;
  }
  
  .bshop_option_item select {
    max-width: 100%;
  }
}

/* 입금자 정보 */
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%;
  }
  
  #r_content ul li,
  .bshop_product_item {
    flex-direction: column;
  }
  
  #r_content div.thumb,
  .bshop_product_thumb {
    width: 100%;
    margin-right: 0;
    margin-bottom: 12px;
  }
  
  #r_content div.thumb img,
  .bshop_product_thumb img {
    height: auto;
    max-height: 300px;
  }
  
  #r_content div.gdsInfo {
    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_btn,
  button,
  input[type="button"],
  input[type="submit"] {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  /* 작은 화면에서도 썸네일이 잘 보이도록 */
  .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);
}

/* Original file: modules/bshop/skins/default/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;
  }
}

