/* RAMBO SHOP — ncart override (loads after trendshop base css) */
#cart-items, #order-items, #order-complete, #addressList, #newAddress, .signin-wrap, .rc-scope {
	--rc-text: #1c1c1c;
	--rc-muted: #8a8a8a;
	--rc-line: #ececec;
	--rc-soft: #f6f6f6;
	--rc-sale: #e5322d;
	--rc-font-en: Montserrat, "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
	color: var(--rc-text);
	font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, sans-serif;
	font-size: 14px;
}
#cart-items *, #order-items *, #order-complete * { font-family: inherit; }

/* page titles */
.rc-title { display: grid; justify-items: center; gap: 4px; margin: 10px 0 34px; text-align: center; float: none !important; width: auto !important; }
.rc-title__en { font-family: var(--rc-font-en, Montserrat, sans-serif); font-size: 12px; font-weight: 600; letter-spacing: .3em; color: #8a8a8a; }
.rc-title h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: #1c1c1c; }

/* tables */
#cart-items table, #order-items table, #order-complete table { width: 100% !important; border-collapse: collapse; border-spacing: 0; }
#cart-items .item-table, #order-items .item-table, #order-complete .item-table { border-top: 1px solid var(--rc-text); }
#cart-items .item-table th, #order-items .item-table th, #order-complete .item-table th,
#order-items .fieldset-table th, #order-complete .fieldset-table th, #order-items .payment-table th {
	padding: 14px 10px !important; background: #fff !important; border: 0 !important; border-bottom: 1px solid var(--rc-line) !important;
	color: var(--rc-muted) !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .02em; text-align: center;
}
#cart-items .item-table td, #order-items .item-table td, #order-complete .item-table td {
	padding: 18px 10px !important; border: 0 !important; border-bottom: 1px solid var(--rc-line) !important; background: #fff !important;
	color: var(--rc-text) !important; font-size: 14px !important; vertical-align: middle; text-align: center;
}
#cart-items .item-table td img, #order-items .item-table td img { object-fit: cover; }
#cart-items .item_name, #order-items .item_name { text-align: left !important; font-weight: 600; }
#cart-items .item_name a, #order-items .item_name a { color: var(--rc-text) !important; text-decoration: none; }
#order-items .fieldset-table td, #order-complete .fieldset-table td, #order-items .payment-table td {
	padding: 12px 10px !important; border: 0 !important; border-bottom: 1px solid var(--rc-line) !important; text-align: left; background: #fff !important;
}
#order-items .fieldset-table th, #order-complete .fieldset-table th, #order-items .payment-table th { text-align: left; width: 160px; background: var(--rc-soft) !important; color: var(--rc-text) !important; }
.fieldset-title, .payment-info-title { margin: 44px 0 12px !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 17px !important; font-weight: 700 !important; color: var(--rc-text) !important; }

/* price summary */
#cart-items .price-table, #order-items .price-table { margin-top: 30px; background: var(--rc-soft) !important; border: 0 !important; }
#cart-items .price-table td, #order-items .price-table td { padding: 26px 10px !important; border: 0 !important; background: transparent !important; text-align: center; }
.price-section .price-title { display: block; margin-bottom: 6px; color: var(--rc-muted) !important; font-size: 13px !important; font-weight: 500 !important; }
.price-section, .price-section span { font-family: var(--rc-font-en, Montserrat, sans-serif); font-size: 18px !important; font-weight: 700 !important; color: var(--rc-text) !important; }
.price-total, .price-total span { color: var(--rc-sale) !important; font-size: 22px !important; }
.calculation img { opacity: .35; }

/* inputs */
#cart-items input[type="text"], #order-items input[type="text"], #order-items input[type="tel"], #order-items input[type="email"], #order-items select, #order-items textarea, #addressList input[type="text"], #newAddress input[type="text"] {
	height: 42px; padding: 0 12px; border: 1px solid #d6d6d6 !important; border-radius: 0; background: #fff; font: inherit; color: var(--rc-text); box-shadow: none;
}
#order-items textarea { height: auto; min-height: 80px; padding: 10px 12px; }
#cart-items .quantity-input, #order-items .quantity-input { display: inline-flex; align-items: center; border: 1px solid #d6d6d6; }
#cart-items .quantity-input .quantity { width: 44px !important; height: 34px; border: 0 !important; text-align: center; }

/* buttons */
#cart-items .item-btn, #order-items .item-btn, #order-complete .item-btn, #order-items .go-payment, #order-items .order-btn-back, .rc-scope .item-btn {
	display: inline-flex !important; align-items: center; justify-content: center; min-width: 72px; height: 36px; margin: 2px; padding: 0 14px !important;
	border: 1px solid var(--rc-text) !important; border-radius: 0 !important; background: #fff !important; color: var(--rc-text) !important;
	font-size: 13px !important; font-weight: 700 !important; text-decoration: none !important; line-height: 1 !important; cursor: pointer; box-shadow: none !important; float: none !important;
}
#cart-items .item-btn:hover, #order-items .item-btn:hover { background: var(--rc-soft) !important; }
#cart-items .item-btn-payment, #order-items .go-payment, #order-items .item-btn-payment { background: var(--rc-text) !important; color: #fff !important; }
#cart-items .item-btn-delete { border-color: var(--rc-line) !important; color: var(--rc-muted) !important; }
#cart-items .go-payment-table, #order-items .order-btn-area { display: flex; justify-content: center; gap: 8px; margin: 36px 0 20px !important; float: none !important; }
#cart-items .go-payment-table a, #cart-items .go-payment-table .item-btn { min-width: 200px; height: 56px; font-size: 15px !important; }
#order-items .go-payment, #order-items .order-btn-area .item-btn { min-width: 220px; height: 56px; font-size: 16px !important; }

/* misc */
#warning, .use-mileage, .mileage_saved { margin-top: 18px !important; padding: 14px 16px !important; background: var(--rc-soft) !important; border: 0 !important; color: #666 !important; font-size: 13px !important; }
#order-complete .account-info-arrow { display: none; }

@media (max-width: 760px) {
	#cart-items .item-table thead, #order-items .item-table thead { display: none; }
	#cart-items .item-table tr, #order-items .item-table tr { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--rc-line); }
	#cart-items .item-table td, #order-items .item-table td { display: block; padding: 2px 0 !important; border: 0 !important; text-align: left; }
	#cart-items .item-table td.thumbnail-td, #order-items .item-table td.thumbnail-td { grid-row: span 6; }
	#cart-items .price-table td, #order-items .price-table td { display: block; padding: 10px !important; }
	#cart-items .price-table .calculation, #order-items .price-table .calculation { display: none; }
	#order-items .fieldset-table th, #order-items .payment-table th { width: 110px; }
	#cart-items .go-payment-table, #order-items .order-btn-area { flex-direction: column; }
	#cart-items .go-payment-table a, #order-items .go-payment { width: 100%; }
}

/* total price block (cart) */
#cart-items #total-price { display: flex; flex-direction: column-reverse; gap: 22px; margin-top: 30px; padding: 0 !important; border: 0 !important; background: none !important; }
#cart-items #total-price .price-table { margin: 0 !important; width: 100% !important; }
#cart-items #total-price .go-payment-table { float: none !important; margin: 0 !important; display: flex; justify-content: center; }
#cart-items #total-price .go-payment { display: inline-flex !important; align-items: center; justify-content: center; min-width: 280px; height: 58px; padding: 0 30px !important; background: #1c1c1c !important; border: 1px solid #1c1c1c !important; color: #fff !important; font-family: inherit !important; font-size: 16px !important; font-weight: 700; text-decoration: none; }
#cart-items #total-price .go-payment:hover { background: #000 !important; }
@media (max-width: 760px) {
	#cart-items .item-table tr:has(td[colspan]), #order-items .item-table tr:has(td[colspan]) { display: block; }
	#cart-items .item-table td[colspan], #order-items .item-table td[colspan] { padding: 40px 0 !important; text-align: center; color: var(--rc-muted) !important; }
}
