.caratsync-breakup-wrap {
	margin: 14px 0;
}

.caratsync-breakup-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 1px solid #c9a227;
	color: #8a6d00;
	padding: 9px 18px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	letter-spacing: .3px;
}

.caratsync-breakup-toggle .dashicons {
	font-size: 17px;
	width: 17px;
	height: 17px;
}

.caratsync-breakup-toggle:hover {
	background: #fbf6e6;
}

/* ===== Right-side drawer ===== */
.caratsync-drawer {
	position: fixed;
	inset: 0;
	z-index: 99999;
	visibility: hidden;
	opacity: 0;
	transition: opacity .25s ease, visibility .25s ease;
}
.caratsync-drawer.is-open {
	visibility: visible;
	opacity: 1;
}
.caratsync-drawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, .45);
}
.caratsync-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 380px;
	max-width: 90vw;
	background: #fff;
	box-shadow: -6px 0 24px rgba(0, 0, 0, .18);
	transform: translateX(100%);
	transition: transform .28s cubic-bezier(.4, 0, .2, 1);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}
.caratsync-drawer.is-open .caratsync-drawer-panel {
	transform: translateX(0);
}
.caratsync-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
	font-size: 16px;
	font-weight: 600;
	color: #1c1c1c;
	letter-spacing: .3px;
}
.caratsync-drawer-close {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #888;
	padding: 0 4px;
}
.caratsync-drawer-close:hover {
	color: #1c1c1c;
}
.caratsync-breakup-body {
	padding: 14px 20px 24px;
}

body.caratsync-noscroll {
	overflow: hidden;
}

.caratsync-breakup-table {
	width: 100%;
	max-width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 12.5px;
}

.caratsync-breakup-table th,
.caratsync-breakup-table td {
	padding: 7px 5px;
	border-bottom: 1px solid #efece2;
	text-align: left;
	vertical-align: top;
	white-space: nowrap;
}

/* Only the label column may wrap; numbers must stay on one line. */
.caratsync-breakup-table td:first-child,
.caratsync-breakup-table th:first-child {
	white-space: normal;
	word-break: break-word;
}

.caratsync-breakup-table .cs-right {
	text-align: right;
	white-space: nowrap;
}

/* Discounted value: net price on line 1, struck original + % on line 2. */
.cs-val-net {
	display: block;
	white-space: nowrap;
}
.cs-val-sub {
	display: block;
	margin-top: 1px;
	white-space: nowrap;
	line-height: 1.3;
}
.cs-val-sub .caratsync-was {
	margin-right: 2px;
}

.caratsync-breakup-table thead th {
	font-weight: 600;
	color: #6b6b6b;
	text-transform: uppercase;
	font-size: 10.5px;
	letter-spacing: .3px;
}

/* Column sizing for the section tables (Component · Rate/Count · Weight · Value) */
.caratsync-breakup-table:not(.cs-bk-totals) th:nth-child(1),
.caratsync-breakup-table:not(.cs-bk-totals) td:nth-child(1) { width: 30%; }
.caratsync-breakup-table:not(.cs-bk-totals) th:nth-child(2),
.caratsync-breakup-table:not(.cs-bk-totals) td:nth-child(2) { width: 24%; }
.caratsync-breakup-table:not(.cs-bk-totals) th:nth-child(3),
.caratsync-breakup-table:not(.cs-bk-totals) td:nth-child(3) { width: 16%; }
.caratsync-breakup-table:not(.cs-bk-totals) th:nth-child(4),
.caratsync-breakup-table:not(.cs-bk-totals) td:nth-child(4) { width: 30%; }
.cs-bk-totals td:first-child {
	width: 52%;
}

.caratsync-breakup-table tfoot td {
	font-weight: 500;
}

.caratsync-breakup-table tr.caratsync-final td {
	font-weight: 700;
	font-size: 15px;
	border-top: 2px solid #c9a227;
	border-bottom: none;
	color: #1c1c1c;
}

.caratsync-count {
	color: #999;
	font-size: 11px;
}

/* Sectioned breakup */
.cs-bk-section {
	margin-bottom: 16px;
}
.cs-bk-sectitle {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #c9a227;
	margin: 0 0 4px;
}
.caratsync-breakup-table.cs-bk-totals {
	margin-bottom: 14px;
}
.caratsync-breakup-table.cs-bk-totals td {
	padding: 8px 6px;
}
.caratsync-taxnote-line {
	font-size: 11.5px;
	color: #999;
	font-style: italic;
	margin: 4px 0 0;
}
.cs-bk-disclaimer {
	font-size: 11.5px;
	color: #777;
	margin: 10px 0 0;
	line-height: 1.5;
}

.caratsync-was {
	text-decoration: line-through;
	color: #999;
	margin-right: 5px;
	font-size: 12px;
}
.caratsync-off {
	display: inline-block;
	margin-left: 4px;
	color: #1a7f37;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}
.caratsync-breakup-table tr.caratsync-discount-line td {
	color: #1a7f37;
}
.caratsync-breakup-table tr.caratsync-save-line td {
	text-align: center;
	color: #1a7f37;
	font-weight: 700;
	background: #f0f9f1;
	border-radius: 4px;
	padding: 8px;
}

.caratsync-breakup-table tr.caratsync-taxnote td {
	font-size: 11.5px;
	color: #999;
	font-style: italic;
	border-bottom: none;
	padding-top: 6px;
}
