:root {
	--oc-accent: #c9a05c;
	--oc-accent-dark: #a9803f;
	--oc-accent-pale: #faf5ea;
	--oc-ink: #1f2430;
	--oc-muted: #6b7280;
	--oc-border: #e6e2d8;
	--oc-bg: #fdfcfa;
}

/* The whole widget is now one unified card (previously the header/progress bar
   floated directly on the page background with no container, then a separately
   -styled box below -- looked fragmented and got stuck flush-left on pages with
   nothing else on them). Centered with breathing room since on the dedicated
   "My Offer Code" page, this is the only content. */
.oc-widget {
	max-width: 640px;
	margin: 40px auto;
	padding: 32px clamp(20px, 4vw, 40px);
	background: #fff;
	border: 1px solid var(--oc-border);
	border-radius: 18px;
	box-shadow: 0 12px 40px rgba(31, 36, 48, 0.07);
	font-family: inherit;
	box-sizing: border-box;
}

.oc-widget-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--oc-border);
}
.oc-widget-header .dashicons {
	color: var(--oc-accent);
	font-size: 26px;
	width: 26px;
	height: 26px;
}
.oc-widget-header h3 {
	margin: 0;
	font-size: 1.4em;
	font-weight: 700;
	color: var(--oc-ink);
}

/* Generic box -- stripped of its own border/shadow so it blends into the unified
   .oc-widget card above instead of creating a visible "card inside a card". The
   specific box variants below (mycode/apply/auth/redeem) restore a lighter-weight
   background tint since some of those are also used completely standalone. */
.oc-box {
	border: none;
	padding: 0;
	border-radius: 0;
	margin: 0;
	background: none;
	box-shadow: none;
}
.oc-box p { margin: 8px 0; color: var(--oc-ink); }
.oc-box:last-child { margin-bottom: 0; }

.oc-queue-position {
	display: inline-block;
	margin-top: 4px;
	font-weight: 700;
	color: var(--oc-accent-dark);
	background: var(--oc-accent-pale);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.92em;
}

/* Buttons */
.oc-btn-primary {
	background: var(--oc-accent) !important;
	border-color: var(--oc-accent) !important;
	color: #fff !important;
	font-weight: 600;
	padding: 12px 22px !important;
	border-radius: 8px !important;
	transition: background 0.2s ease, transform 0.15s ease;
}
.oc-btn-primary:hover {
	background: var(--oc-accent-dark) !important;
	border-color: var(--oc-accent-dark) !important;
	transform: translateY(-1px);
}

/* Status badges */
.oc-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}
.oc-badge .dashicons { font-size: 15px; width: 15px; height: 15px; }
.oc-badge-pending  { background: #fff3cd; color: #8a6116; }
.oc-badge-active   { background: #d9f2e3; color: #157347; }
.oc-badge-rejected { background: #fbe0e0; color: #b3241c; }
.oc-badge-revoked  { background: #e9e9e9; color: #555; }

/* Code display -- this is the reward moment, so give it real presence instead
   of a thin dashed placeholder-looking outline. */
.oc-code-display {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	background: var(--oc-accent-pale);
	border: 1.5px solid var(--oc-accent);
	border-radius: 12px;
	padding: 18px 20px;
	margin: 8px 0 4px;
}
.oc-code-display code {
	font-size: 1.5em;
	font-weight: 800;
	letter-spacing: 2px;
	color: var(--oc-ink);
	background: none;
	padding: 0;
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}
.oc-copy-btn {
	border: none;
	background: var(--oc-accent);
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.2s ease, transform 0.15s ease;
}
.oc-copy-btn:hover { background: var(--oc-accent-dark); transform: scale(1.06); }
.oc-copy-btn.copied { background: #157347; }

.oc-offer-name {
	display: block;
	font-weight: 700;
	color: var(--oc-ink);
	font-size: 1.02em;
	margin: 4px 0 0;
}
.oc-offer-name::before {
	content: "Offer: ";
	font-weight: 500;
	color: var(--oc-muted);
}

.oc-meta-row {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
	font-size: 0.9em;
	color: var(--oc-muted);
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed var(--oc-border);
}
.oc-meta-row span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
}
.oc-meta-row .dashicons { font-size: 17px; width: 17px; height: 17px; color: var(--oc-accent); vertical-align: text-bottom; }

/* Box variants -- each gets its own light tint/border so they still read as a
   distinct "panel" even now that the generic .oc-box no longer draws one, and
   so they also look correct when used completely standalone (e.g. [oc_my_code]
   or [oc_redeem_form] dropped directly into a page with no .oc-widget wrapper). */
.oc-mycode-box,
.oc-apply-box,
.oc-auth-box,
.oc-redeem-box {
	background: var(--oc-bg);
	border: 1px solid var(--oc-border);
	border-radius: 12px;
	padding: 20px 22px;
}
.oc-apply-box, .oc-auth-box { text-align: center; }
.oc-apply-box p, .oc-auth-box p { margin: 0 0 16px; }

/* Real offer details shown on the apply page, in place of generic copy */
.oc-offer-summary { text-align: left; margin: 0 0 18px; display: flex; flex-direction: column; gap: 12px; }
.oc-offer-summary-item {
	display: flex; align-items: flex-start; gap: 12px;
	background: #fff; border: 1px solid var(--oc-border); border-radius: 10px;
	padding: 14px 16px;
}
.oc-offer-summary-item .fa-tag { color: var(--oc-accent); font-size: 1.1em; margin-top: 3px; flex-shrink: 0; }
.oc-offer-summary-item strong { display: block; color: var(--oc-ink); font-size: 1.02em; }
.oc-offer-summary-perks { display: inline-block; margin-top: 3px; font-weight: 700; color: var(--oc-accent-dark); font-size: 0.9em; }
.oc-offer-summary-desc { margin: 6px 0 0; font-size: 0.86em; color: var(--oc-muted); font-weight: 400; }
.oc-offer-summary-empty { color: var(--oc-muted); }

/* Auth tabs */
.oc-auth-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--oc-border);
}
.oc-auth-tab {
	background: none;
	border: none;
	padding: 8px 4px;
	margin-right: 20px;
	font-weight: 600;
	color: var(--oc-muted);
	cursor: pointer;
	border-bottom: 2px solid transparent;
}
.oc-auth-tab.active {
	color: var(--oc-ink);
	border-bottom-color: var(--oc-accent);
}
.oc-field { margin: 0 0 12px; text-align: left; }
.oc-field label { display: block; font-size: 0.85em; font-weight: 600; margin-bottom: 4px; color: var(--oc-ink); }
.oc-field input {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--oc-border);
	border-radius: 6px;
	box-sizing: border-box;
}
.oc-forgot-link {
	display: inline-block;
	margin-left: 12px;
	font-size: 0.85em;
	color: var(--oc-muted);
}
.oc-auth-result { font-weight: 600; min-height: 1.2em; }

/* Redeem form (cart/checkout) */
.oc-redeem-heading {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
	font-weight: 600;
}
.oc-redeem-heading .dashicons { color: var(--oc-accent); }
.oc-redeem-row {
	display: flex;
	gap: 8px;
	max-width: 420px;
}
.oc-redeem-row input[type="text"] {
	flex: 1;
	padding: 9px 12px;
	border: 1px solid var(--oc-border);
	border-radius: 6px;
}
.oc-apply-result,
#oc-redeem-result {
	font-weight: 600;
	min-height: 1.2em;
	margin-top: 8px;
}

@media (max-width: 480px) {
	.oc-widget { margin: 20px auto; border-radius: 14px; }
	.oc-redeem-row { flex-direction: column; }
	.oc-meta-row { flex-direction: column; gap: 8px; }
	.oc-code-display { flex-wrap: wrap; }
	.oc-code-display code { font-size: 1.25em; }
}

/* "Offer applied" banner on Cart/Checkout -- more visible than WooCommerce's
   default plain "Coupon: CODE  -$X" totals-table row. */
.oc-applied-offer-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--oc-accent-pale, #faf5ea);
	border: 1px solid var(--oc-accent, #c9a05c);
	border-radius: 10px;
	padding: 12px 16px;
	margin: 0 0 16px;
	font-size: 0.92em;
	color: var(--oc-ink, #1f2430);
}
.oc-applied-offer-banner .fa-gift {
	color: var(--oc-accent-dark, #a9803f);
	font-size: 1.1em;
	flex-shrink: 0;
}
.oc-applied-offer-banner strong { color: var(--oc-accent-dark, #a9803f); }

/* Product price treatment -- shown next to/under the price on shop/product
   pages via woocommerce_get_price_html. */
.oc-price-badge {
	display: block;
	font-size: 0.72em;
	font-weight: 600;
	color: #157347;
	margin-top: 3px;
}
.oc-price-badge .fa-check-circle { margin-right: 3px; }

.oc-price-apply-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.72em;
	font-weight: 700;
	color: var(--oc-accent-dark, #a9803f);
	margin-top: 4px;
	text-decoration: none;
	border-bottom: 1px dashed var(--oc-accent-dark, #a9803f);
	padding-bottom: 1px;
}
.oc-price-apply-link:hover { color: var(--oc-accent, #c9a05c); border-color: var(--oc-accent, #c9a05c); }
