.rwl-wrap { margin: 12px 0; }
.rwl-open-body { overflow: hidden; }

.rwl-modal[hidden] { display: none !important; }
.rwl-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rwl-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.rwl-dialog { position: relative; background: #fff; color: #111; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 10px; padding: 28px 24px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.rwl-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #555; padding: 4px 8px; }
.rwl-dialog h3 { margin: 0 0 6px; font-size: 1.35em; line-height: 1.25; }
.rwl-product-name { font-weight: 600; margin: 0 0 8px; }
.rwl-intro, .rwl-hint, .rwl-account-note { font-size: .92em; color: #555; margin: 0 0 14px; }
.rwl-account-note { background: #f4f7f4; padding: 8px 10px; border-radius: 6px; }

.rwl-form label { display: block; font-size: .88em; font-weight: 600; margin-bottom: 10px; }
.rwl-form input[type=text], .rwl-form input[type=email], .rwl-form input[type=tel], .rwl-form input[type=number], .rwl-form select, .rwl-form textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid #ccc; border-radius: 6px; font: inherit; font-weight: 400; box-sizing: border-box; }
.rwl-form > input[name=address_2] { margin: -4px 0 10px; }
.rwl-row { display: grid; gap: 10px; }
.rwl-2 { grid-template-columns: 1fr 1fr; }
.rwl-3 { grid-template-columns: 1.2fr 1fr 1.2fr; }
.rwl-qty input { max-width: 110px; }
.rwl-req { color: #b32d2e; }
.rwl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.rwl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rwl-actions[hidden], .rwl-step[hidden], .rwl-hint[hidden], .rwl-account-note[hidden], .rwl-error[hidden] { display: none !important; }
.rwl-actions .button { flex: 1 1 auto; text-align: center; }
.rwl-error { background: #fcf0f1; color: #8a1f11; border-radius: 6px; padding: 8px 10px; font-size: .9em; margin-top: 10px; }

@media (max-width: 480px) {
	.rwl-2, .rwl-3 { grid-template-columns: 1fr; }
	.rwl-dialog { padding: 24px 16px 16px; }
}

/* Solid brand button. !important beats theme button styles (e.g. Divi's outlined .button). */
:root { --rwl-btn: #C1272D; }
.rwl-wrap { margin: 14px 0 20px; clear: both; }
body .rwl-wrap .rwl-open, body .rwl-modal .button.alt, body .rwl-loop-btn {
	display: inline-block !important; background: var(--rwl-btn) !important; color: #fff !important;
	border: 2px solid var(--rwl-btn) !important; border-radius: 999px !important;
	padding: 12px 28px !important; font-size: 15px !important; font-weight: 700 !important;
	letter-spacing: .06em !important; text-transform: uppercase !important; line-height: 1.3 !important;
	box-shadow: none !important; cursor: pointer; transition: filter .15s, transform .15s;
}
body .rwl-wrap .rwl-open:hover, body .rwl-modal .button.alt:hover, body .rwl-loop-btn:hover { filter: brightness(.88); padding: 12px 28px !important; }
body .rwl-modal .button:not(.alt) {
	background: #fff !important; color: var(--rwl-btn) !important; border: 2px solid var(--rwl-btn) !important;
	border-radius: 999px !important; padding: 12px 20px !important; font-weight: 700 !important; font-size: 14px !important;
	text-transform: uppercase !important; letter-spacing: .06em !important; line-height: 1.3 !important; cursor: pointer;
}
body .rwl-open::after, body .rwl-modal .button::after { display: none !important; content: none !important; }
.rwl-modal .button:disabled { opacity: .6; cursor: wait; }
