/* BD Partial COD — front-end payment page styles */

.bd-pcod-payment {
	margin: 24px 0;
	padding: 20px;
	border: 1px solid #e4e4e4;
	border-radius: 10px;
	background: #fafafa;
}

.bd-pcod-title {
	margin-top: 0;
	font-size: 1.25em;
}

.bd-pcod-amounts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.bd-pcod-amounts p {
	flex: 1 1 200px;
	margin: 0;
	padding: 12px 16px;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
}

.bd-pcod-amount-due {
	background: #e7f6ec;
	border: 1px solid #46b450;
}

.bd-pcod-amount-cod {
	background: #eef2f7;
	border: 1px solid #c9d4e0;
}

.bd-pcod-amounts p span {
	font-size: 0.85em;
	color: #555;
}

.bd-pcod-amounts p strong {
	font-size: 1.4em;
}

.bd-pcod-methods {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
}

.bd-pcod-method {
	flex: 1 1 240px;
	padding: 16px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	text-align: center;
}

.bd-pcod-method__name {
	margin: 0 0 12px;
}

.bd-pcod-qr img {
	max-width: 180px;
	height: auto;
	margin: 0 auto 12px;
	display: block;
}

.bd-pcod-number {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.bd-pcod-number__label {
	font-size: 0.8em;
	color: #666;
}

.bd-pcod-number__value {
	font-size: 1.3em;
	font-weight: 700;
	letter-spacing: 1px;
	background: #f3f3f3;
	padding: 4px 10px;
	border-radius: 4px;
}

.bd-pcod-method__instructions {
	font-size: 0.85em;
	color: #555;
	margin: 10px 0 0;
}

.bd-pcod-form {
	max-width: 560px;
	margin: 0 auto;
	padding: 16px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
}

.bd-pcod-form__intro {
	font-weight: 600;
}

/* Method dropdown + details panels */
.bd-pcod-method-panels {
	margin: 4px 0 22px;
}

.bd-pcod-method-panel {
	padding: 16px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fafafa;
	text-align: center;
}

.bd-pcod-method-panel[hidden] {
	display: none;
}

/* Standalone gateway page */
body.bd-pcod-standalone {
	margin: 0;
	padding: 24px 16px;
	background: #eef1f5;
	color: #1f2733;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
}

.bd-pcod-gateway {
	max-width: 540px;
	margin: 0 auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.bd-pcod-gateway__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 22px;
	background: #1f2733;
	color: #fff;
}

.bd-pcod-gateway__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 1.05em;
}

.bd-pcod-gateway__icon {
	height: 28px;
	width: auto;
	max-width: 80px;
	display: block;
	border-radius: 4px;
}

.bd-pcod-gateway__order {
	font-size: 0.85em;
	opacity: 0.85;
}

.bd-pcod-gateway__body {
	padding: 22px;
}

.bd-pcod-standalone .bd-pcod-title {
	font-size: 1.2em;
	margin: 0 0 16px;
}

.bd-pcod-standalone .bd-pcod-form {
	max-width: none;
	border: 0;
	padding: 0;
}

.bd-pcod-standalone select,
.bd-pcod-standalone input[type="tel"],
.bd-pcod-standalone input[type="text"] {
	width: 100%;
	padding: 12px 14px;
	font-size: 1em;
	color: #1f2733;
	border: 1.5px solid #c9d2dd;
	border-radius: 10px;
	box-sizing: border-box;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bd-pcod-standalone select:focus,
.bd-pcod-standalone input[type="tel"]:focus,
.bd-pcod-standalone input[type="text"]:focus {
	outline: none;
	border-color: #2f6fed;
	box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

.bd-pcod-standalone input::placeholder {
	color: #9aa6b3;
}

.bd-pcod-field-hint {
	display: block;
	margin-top: 6px;
	font-size: 0.8em;
	color: #6b7682;
}

.bd-pcod-optional {
	font-weight: 400;
	color: #8a94a0;
	font-size: 0.85em;
}

.bd-pcod-standalone .bd-pcod-submit {
	width: 100%;
	padding: 14px 18px;
	margin-top: 4px;
	font-size: 1.08em;
	font-weight: 700;
	color: #fff;
	background: #2f6fed;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}

.bd-pcod-standalone .bd-pcod-submit:hover {
	background: #1f5bd0;
}

.bd-pcod-standalone .bd-pcod-submit:active {
	transform: translateY(1px);
}

.bd-pcod-gateway__foot {
	padding: 14px 22px;
	border-top: 1px solid #eceff3;
	font-size: 0.82em;
	color: #6b7682;
	text-align: center;
}

.bd-pcod-form .form-row {
	margin-bottom: 14px;
}

.bd-pcod-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.bd-pcod-form input,
.bd-pcod-form select {
	width: 100%;
	padding: 8px 10px;
	box-sizing: border-box;
}

.bd-pcod-form .required {
	color: #dc3232;
}

.bd-pcod-submit[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.bd-pcod-alert {
	padding: 14px 16px;
	border-radius: 8px;
	font-weight: 600;
}

.bd-pcod-alert--success {
	background: #e7f6ec;
	border: 1px solid #46b450;
	color: #1e7e34;
}

.bd-pcod-alert--info {
	background: #fff8e5;
	border: 1px solid #e0a800;
	color: #8a6d00;
}

.bd-pcod-alert--warning {
	background: #fdecea;
	border: 1px solid #dc3232;
	color: #a8201a;
	margin-bottom: 16px;
}

.bd-pcod-form__message {
	margin-top: 12px;
	font-weight: 600;
}

.bd-pcod-form__message.is-error {
	color: #dc3232;
}

.bd-pcod-form__message.is-success {
	color: #1e7e34;
}

.bd-pcod-copy.is-copied {
	background: #46b450;
	color: #fff;
	border-color: #46b450;
}

/* Bank transfer — account detail rows */
.bd-pcod-bank-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #edf0f4;
	flex-wrap: wrap;
}

.bd-pcod-bank-row:last-child { border-bottom: 0; }

.bd-pcod-bank-row__label {
	flex: 0 0 130px;
	font-size: 0.82em;
	color: #6b7682;
}

.bd-pcod-bank-row__value {
	flex: 1 1 auto;
	font-size: 1em;
	font-weight: 600;
	background: #fff;
	border: 1px dashed #c9d2dd;
	padding: 4px 10px;
	border-radius: 4px;
	letter-spacing: 0.5px;
}

.bd-pcod-bank-row--acct .bd-pcod-bank-row__value {
	font-size: 1.15em;
	border-color: #2f6fed;
	color: #1a3d8a;
}
.bd-pcod-standalone .bd-pcod-method-panel {
	background: #f7f9fc;
	border: 1.5px solid #e3e9f1;
	border-radius: 12px;
	padding: 20px;
}

.bd-pcod-standalone .bd-pcod-number {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 6px 0 12px;
}

.bd-pcod-standalone .bd-pcod-number__label {
	flex-basis: 100%;
	font-size: 0.82em;
	color: #6b7682;
}

.bd-pcod-standalone .bd-pcod-number__value {
	font-size: 1.35em;
	background: #fff;
	border: 1px dashed #c9d2dd;
	padding: 6px 14px;
}

.bd-pcod-standalone .bd-pcod-copy {
	padding: 8px 16px;
	font-size: 0.9em;
	font-weight: 600;
	color: #2f6fed;
	background: #eaf1fe;
	border: 1px solid #c4d6fb;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.bd-pcod-standalone .bd-pcod-copy:hover {
	background: #dbe7fd;
}

.bd-pcod-standalone .bd-pcod-method__instructions {
	text-align: left;
	background: #fff;
	border-radius: 8px;
	padding: 12px 14px;
	margin-top: 14px;
}

.bd-pcod-standalone .bd-pcod-qr img {
	border: 1px solid #e3e9f1;
	border-radius: 10px;
	padding: 8px;
	background: #fff;
}
