@charset "utf-8";
/*	교재 쿠폰 (2026-11-23)
	- my_coupon.php 화면(.myCoupon 안)과 질문방·강의 상세·주문내역의 안내 줄·태그.
	- 이 파일의 규칙은 모두 bc 로 시작하는 클래스나 .myCoupon 안에서만 걸린다. 다른 화면에 영향이 없다.
	- 색: #0091db(사이트 기본 파랑) · #0017e7(링크 파랑) · #e2341d(경고 빨강) — sub.css·my_benefit 과 같다. */

/*	안내 줄 — 질문방 교재 선택이 비었을 때, 질문방 글쓰기 권한이 없을 때, 강의 권한이 없을 때 */
.bcHint{margin:10px 0 0;padding:9px 12px;font-size:0.88em;line-height:1.6;color:#333;text-align:left;word-break:keep-all;background:#fff8e6;border:1px solid #f3dfa8;border-radius:6px;}
.bcHint a{color:#0017e7;font-weight:700;text-decoration:none;white-space:nowrap;}
.bcHint a:hover{text-decoration:underline;}

/*	주문내역 '서점 구매 · 쿠폰' 표시 */
.bcTag{display:inline-block;margin-left:6px;padding:0 6px;font-size:0.75em;font-weight:400;line-height:1.7;color:#fff;background:#0091db;border-radius:3px;white-space:nowrap;vertical-align:middle;}

/*	─── my_coupon.php ─── */
.myCoupon .bcDesc{margin:0 0 20px;font-size:0.92em;line-height:1.7;color:#777;word-break:keep-all;}

/*	코드 입력 */
.myCoupon .bcCodeBox{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 10px;}
.myCoupon .bcCodeBox input{flex:0 1 330px;min-width:0;height:50px;padding:0 16px;box-sizing:border-box;font-family:Consolas,Menlo,"Courier New",monospace;font-size:19px;letter-spacing:.12em;color:#222;text-transform:uppercase;background:#fff;border:1px solid #ddd;border-radius:7px;}
.myCoupon .bcCodeBox input::placeholder{color:#bbb;letter-spacing:.12em;}
.myCoupon .bcCodeBox input:focus{outline:none;border-color:#0091db;}
.myCoupon .bcCodeBox button{height:50px;padding:0 26px;font-size:15px;font-weight:700;color:#fff;background:#0091db;border:0;border-radius:7px;cursor:pointer;}
.myCoupon .bcCodeBox button[disabled]{opacity:.6;cursor:default;}
.myCoupon .bcHelp{margin:0 0 24px;padding:0;list-style:none;font-size:0.82em;line-height:1.7;color:#777;}

/*	결과 — 등록 완료(G) · 오류(H) */
.myCoupon .bcResult:empty{display:none;}
.myCoupon .bcResult{margin:0 0 28px;}
.myCoupon .bcOk{display:grid;gap:9px;padding:18px 20px;background:#f3faff;border:1px solid #cfe7f5;border-radius:10px;}
.myCoupon .bcOk .bcOkTitle{margin:0;font-size:1.1em;font-weight:700;color:#111;}
.myCoupon .bcOk .bcOkTitle em{font-style:normal;color:#0091db;}
.myCoupon .bcBenefit{display:grid;grid-template-columns:96px 1fr auto;align-items:center;gap:10px;padding:9px 12px;background:#fff;border:1px solid #e3eef6;border-radius:8px;}
.myCoupon .bcBenefit .k{font-weight:700;color:#111;}
.myCoupon .bcBenefit .v{min-width:0;word-break:keep-all;}
.myCoupon .bcBenefit .v small{display:block;font-size:0.85em;color:#777;}
.myCoupon .bcBenefit .v small.bcWarn{color:#e2341d;}
.myCoupon .bcOk .bcNote{margin:0;font-size:0.85em;color:#777;}
.myCoupon .bcOk .bcNote.bcWarn{color:#e2341d;}
.myCoupon .bcErr{padding:12px 14px;font-size:0.92em;line-height:1.6;background:#f6f6f6;border-radius:6px;}
.myCoupon .bcErr b{display:block;margin-bottom:2px;color:#e2341d;}
.myCoupon .bcErr p{margin:0;color:#333;word-break:keep-all;}
.myCoupon .bcErr p.bcErrSub{margin-top:4px;font-size:0.9em;color:#777;}

/*	버튼(작게) */
.myCoupon .bcBtn{display:inline-block;padding:3px 10px;font-size:12px;line-height:1.6;color:#0017e7;white-space:nowrap;text-decoration:none;background:#fff;border:1px solid #0017e7;border-radius:3px;}
.myCoupon .bcBtn.fill{color:#fff;background:#0091db;border-color:#0091db;}

/*	내가 등록한 쿠폰 — 표 골격은 포인트 내역(.pointTable/.pointHistory)과 같다. 열 폭만 정한다 */
.myCoupon .pointHistoryTh dt, .myCoupon .pointHistoryTh dd,
.myCoupon .pointHistoryTd dt, .myCoupon .pointHistoryTd dd{height:auto;line-height:1.45;}
.myCoupon .pointHistory .bcName{width:28%;padding:12px 8px;text-align:left;box-sizing:border-box;}
.myCoupon .pointHistory .bcDate{width:14%;}
.myCoupon .pointHistory .bcSum{width:44%;text-align:left;}
.myCoupon .pointHistory .bcAct{width:14%;}
.myCoupon .pointHistoryTh .bcName{text-align:center;}
.myCoupon .pointHistoryTd .bcSum .bcWarn{display:block;font-size:0.88em;color:#e2341d;}
.myCoupon .pointHistoryTd .bcSum .bcNone{color:#999;}

@media (max-width:768px){
	.myCoupon .bcCodeBox input{flex:1 1 100%;font-size:17px;}
	.myCoupon .bcCodeBox button{flex:1 1 100%;}
	.myCoupon .bcBenefit{grid-template-columns:72px 1fr;}
	.myCoupon .bcBenefit > :last-child{grid-column:1 / -1;justify-self:end;}
	.myCoupon .bcBenefit > :last-child:empty{display:none;}
	.myCoupon .pointHistory .bcName{width:30%;}
	.myCoupon .pointHistory .bcDate{width:20%;font-size:0.9em;}
	.myCoupon .pointHistory .bcSum{width:32%;font-size:0.9em;}
	.myCoupon .pointHistory .bcAct{width:18%;}
}
