/* global */
#cluetip-close img {
  border: 0;
}
#cluetip-title {
  overflow: hidden;
}
#cluetip-title #cluetip-close {
  float: right;
  position: relative;
}
#cluetip-waitimage {
  width: 43px;
  height: 11px;
  position: absolute;
  background-image: url(../../skin/common_files/lib/cluetip/images/wait.gif);
}
.cluetip-arrows {
  display: none;
  position: absolute;
  top: 0;
  left: -11px;
  height: 22px;
  width: 11px;
  background-repeat: no-repeat;
  background-position: 0 0;
}
#cluetip-extra {
  display: none;
}
/***************************************
   =cluetipClass: 'default' 
-------------------------------------- */

.cluetip-default {
  background-color: #d9d9c2;
}
.cluetip-default #cluetip-outer {
  position: relative;
  margin: 0;
  background-color: #fff;
  border: 1px solid #bbb;
}
.cluetip-default h3#cluetip-title {
  margin: 0 0 5px;
  padding: 8px 10px 4px;
  font-size: 1.1em;
  font-weight: bold;
  background-color: #eee;
}
.cluetip-default #cluetip-title a {
  color: #d9d9c2;
  font-size: 0.95em;
}  
.cluetip-default #cluetip-inner {
  padding: 10px;
}
.cluetip-default div#cluetip-close { 
  text-align: right;
  margin: 0 5px 5px;
  color: #900;
}

/* default arrows */

.clue-right-default .cluetip-arrows {
  background-image: url(../../skin/common_files/lib/cluetip/images/darrowleft.gif);
}
.clue-left-default .cluetip-arrows {
  background-image: url(../../skin/common_files/lib/cluetip/images/darrowright.gif);
  left: 100%;
  margin-right: -11px;
}
.clue-top-default .cluetip-arrows {
  background-image: url(../../skin/common_files/lib/cluetip/images/darrowdown.gif);
  top: 100%;
  left: 50%;
  margin-left: -11px;
  height: 11px;
  width: 22px;  
}  
.clue-bottom-default .cluetip-arrows {
  background-image: url(../../skin/common_files/lib/cluetip/images/darrowup.gif);
  top: -11px;
  left: 50%;
  margin-left: -11px;
  height: 11px;
  width: 22px;
}

/***************************************
   =cluetipClass: 'jtip'
-------------------------------------- */
.cluetip-jtip {
  background-color: transparent;
}
.cluetip-jtip #cluetip-outer {
  border: 2px solid #ccc;
  position: relative;
  background-color: #fff;
}

.cluetip-jtip h3#cluetip-title {
  margin: 0 0 5px;
  padding: 2px 5px;
  font-size: 16px;
  font-weight: normal;
  background-color: #ccc;
  color: #333;
}

.cluetip-jtip #cluetip-inner {
  padding: 0 5px 5px;
  display: inline-block;
}
.cluetip-jtip div#cluetip-close { 
  text-align: right;
  margin: 0 5px 5px;
  color: #900;
}

/* jtip arrows */

.clue-right-jtip .cluetip-arrows {
  background-image: url(../../skin/common_files/lib/cluetip/images/arrowleft.gif);
}
.clue-left-jtip .cluetip-arrows {
  background-image: url(../../skin/common_files/lib/cluetip/images/arrowright.gif);
  left: 100%;
  margin-right: -11px;
}
.clue-top-jtip .cluetip-arrows {
  background-image: url(../../skin/common_files/lib/cluetip/images/arrowdown.gif);
  top: 100%;
  left: 50%;
  margin-left: -11px;
  height: 11px;
  width: 22px;  
}  
.clue-bottom-jtip .cluetip-arrows {
  background-image: url(../../skin/common_files/lib/cluetip/images/arrowup.gif);
  top: -11px;
  left: 50%;
  margin-left: -11px;
  height: 11px;
  width: 22px;
}

/***************************************
   =cluetipClass: 'rounded'
-------------------------------------- */

.cluetip-rounded {
  background: transparent url(../../skin/common_files/lib/cluetip/images/bl.gif) no-repeat 0 100%;
  margin-top: 10px;
  margin-left: 12px;
}

.cluetip-rounded #cluetip-outer {
  background: transparent url(../../skin/common_files/lib/cluetip/images/tl.gif) no-repeat 0 0;
  margin-top: -12px;
}

.cluetip-rounded #cluetip-title {
  background-color: transparent;
  padding: 12px 12px 0;
  margin: 0 -12px 0 0;
  position: relative;
}
.cluetip-rounded #cluetip-extra {
  position: absolute;
  display: block;
  background: transparent url(../../skin/common_files/lib/cluetip/images/tr.gif) no-repeat 100% 0;
  top: 0;
  right: 0;
  width: 12px;
  height: 30px;
  margin: -12px -12px 0 0;
}
.cluetip-rounded #cluetip-inner {
  background: url(../../skin/common_files/lib/cluetip/images/br.gif) no-repeat 100% 100%;
  padding: 5px 12px 12px;
  margin: -18px -12px 0 0;
  position: relative;
}

.cluetip-rounded div#cluetip-close { 
  text-align: right;
  margin: 0 5px 5px;
  color: #009;
  background: transparent;
}
.cluetip-rounded div#cluetip-close a {
  color: #777;
}

/* rounded arrows */

.clue-right-rounded .cluetip-arrows {
  background-image: url(../../skin/common_files/lib/cluetip/images/rarrowleft.gif);
}
.clue-left-rounded .cluetip-arrows {
  background-image: url(../../skin/common_files/lib/cluetip/images/rarrowright.gif);
  left: 100%;
  margin-left: 12px;
}
.clue-top-rounded .cluetip-arrows {
  background-image: url(../../skin/common_files/lib/cluetip/images/rarrowdown.gif);
  top: 100%;
  left: 50%;
  margin-left: -11px;
  height: 11px;
  width: 22px;  
}  
.clue-bottom-rounded .cluetip-arrows {
  background-image: url(../../skin/common_files/lib/cluetip/images/rarrowup.gif);
  top: -23px;
  left: 50%;
  margin-left: -11px;
  height: 11px;
  width: 22px;
}



/* stupid IE6 HasLayout hack */
.cluetip-rounded #cluetip-title,
.cluetip-rounded #cluetip-inner {
  zoom: 1;
}

/*
==============================================
CSS3 ANIMATION CHEAT SHEET
==============================================

Made by Justin Aguilar

www.justinaguilar.com/animations/

Questions, comments, concerns, love letters:
justin@justinaguilar.com
==============================================
*/

/*
==============================================
slideDown
==============================================
*/


.slideDown{
	animation-name: slideDown;
	-webkit-animation-name: slideDown;	

	animation-duration: 1s;	
	-webkit-animation-duration: 1s;

	animation-timing-function: ease;	
	-webkit-animation-timing-function: ease;	

	visibility: visible !important;						
}

@keyframes slideDown {
	0% {
		transform: translateY(-100%);
	}
	50%{
		transform: translateY(8%);
	}
	65%{
		transform: translateY(-4%);
	}
	80%{
		transform: translateY(4%);
	}
	95%{
		transform: translateY(-2%);
	}			
	100% {
		transform: translateY(0%);
	}		
}

@-webkit-keyframes slideDown {
	0% {
		-webkit-transform: translateY(-100%);
	}
	50%{
		-webkit-transform: translateY(8%);
	}
	65%{
		-webkit-transform: translateY(-4%);
	}
	80%{
		-webkit-transform: translateY(4%);
	}
	95%{
		-webkit-transform: translateY(-2%);
	}			
	100% {
		-webkit-transform: translateY(0%);
	}	
}

/*
==============================================
slideUp
==============================================
*/


.slideUp{
	animation-name: slideUp;
	-webkit-animation-name: slideUp;	

	animation-duration: 1s;	
	-webkit-animation-duration: 1s;

	animation-timing-function: ease;	
	-webkit-animation-timing-function: ease;

	visibility: visible !important;			
}

@keyframes slideUp {
	0% {
		transform: translateY(100%);
	}
	50%{
		transform: translateY(-8%);
	}
	65%{
		transform: translateY(4%);
	}
	80%{
		transform: translateY(-4%);
	}
	95%{
		transform: translateY(2%);
	}			
	100% {
		transform: translateY(0%);
	}	
}

@-webkit-keyframes slideUp {
	0% {
		-webkit-transform: translateY(100%);
	}
	50%{
		-webkit-transform: translateY(-8%);
	}
	65%{
		-webkit-transform: translateY(4%);
	}
	80%{
		-webkit-transform: translateY(-4%);
	}
	95%{
		-webkit-transform: translateY(2%);
	}			
	100% {
		-webkit-transform: translateY(0%);
	}	
}

/*
==============================================
slideLeft
==============================================
*/


.slideLeft{
	animation-name: slideLeft;
	-webkit-animation-name: slideLeft;	

	animation-duration: 1s;	
	-webkit-animation-duration: 1s;

	animation-timing-function: ease-in-out;	
	-webkit-animation-timing-function: ease-in-out;		

	visibility: visible !important;	
}

@keyframes slideLeft {
	0% {
		transform: translateX(150%);
	}
	50%{
		transform: translateX(-8%);
	}
	65%{
		transform: translateX(4%);
	}
	80%{
		transform: translateX(-4%);
	}
	95%{
		transform: translateX(2%);
	}			
	100% {
		transform: translateX(0%);
	}
}

@-webkit-keyframes slideLeft {
	0% {
		-webkit-transform: translateX(150%);
	}
	50%{
		-webkit-transform: translateX(-8%);
	}
	65%{
		-webkit-transform: translateX(4%);
	}
	80%{
		-webkit-transform: translateX(-4%);
	}
	95%{
		-webkit-transform: translateX(2%);
	}			
	100% {
		-webkit-transform: translateX(0%);
	}
}

/*
==============================================
slideRight
==============================================
*/


.slideRight{
	animation-name: slideRight;
	-webkit-animation-name: slideRight;	

	animation-duration: 1s;	
	-webkit-animation-duration: 1s;

	animation-timing-function: ease-in-out;	
	-webkit-animation-timing-function: ease-in-out;		

	visibility: visible !important;	
}

@keyframes slideRight {
	0% {
		transform: translateX(-150%);
	}
	50%{
		transform: translateX(8%);
	}
	65%{
		transform: translateX(-4%);
	}
	80%{
		transform: translateX(4%);
	}
	95%{
		transform: translateX(-2%);
	}			
	100% {
		transform: translateX(0%);
	}	
}

@-webkit-keyframes slideRight {
	0% {
		-webkit-transform: translateX(-150%);
	}
	50%{
		-webkit-transform: translateX(8%);
	}
	65%{
		-webkit-transform: translateX(-4%);
	}
	80%{
		-webkit-transform: translateX(4%);
	}
	95%{
		-webkit-transform: translateX(-2%);
	}			
	100% {
		-webkit-transform: translateX(0%);
	}
}

/*
==============================================
slideExpandUp
==============================================
*/


.slideExpandUp{
	animation-name: slideExpandUp;
	-webkit-animation-name: slideExpandUp;	

	animation-duration: 1.6s;	
	-webkit-animation-duration: 1.6s;

	animation-timing-function: ease-out;	
	-webkit-animation-timing-function: ease -out;

	visibility: visible !important;	
}

@keyframes slideExpandUp {
	0% {
		transform: translateY(100%) scaleX(0.5);
	}
	30%{
		transform: translateY(-8%) scaleX(0.5);
	}	
	40%{
		transform: translateY(2%) scaleX(0.5);
	}
	50%{
		transform: translateY(0%) scaleX(1.1);
	}
	60%{
		transform: translateY(0%) scaleX(0.9);		
	}
	70% {
		transform: translateY(0%) scaleX(1.05);
	}			
	80%{
		transform: translateY(0%) scaleX(0.95);		
	}
	90% {
		transform: translateY(0%) scaleX(1.02);
	}	
	100%{
		transform: translateY(0%) scaleX(1);		
	}
}

@-webkit-keyframes slideExpandUp {
	0% {
		-webkit-transform: translateY(100%) scaleX(0.5);
	}
	30%{
		-webkit-transform: translateY(-8%) scaleX(0.5);
	}	
	40%{
		-webkit-transform: translateY(2%) scaleX(0.5);
	}
	50%{
		-webkit-transform: translateY(0%) scaleX(1.1);
	}
	60%{
		-webkit-transform: translateY(0%) scaleX(0.9);		
	}
	70% {
		-webkit-transform: translateY(0%) scaleX(1.05);
	}			
	80%{
		-webkit-transform: translateY(0%) scaleX(0.95);		
	}
	90% {
		-webkit-transform: translateY(0%) scaleX(1.02);
	}	
	100%{
		-webkit-transform: translateY(0%) scaleX(1);		
	}
}

/*
==============================================
expandUp
==============================================
*/


.expandUp{
	animation-name: expandUp;
	-webkit-animation-name: expandUp;	

	animation-duration: 0.7s;	
	-webkit-animation-duration: 0.7s;

	animation-timing-function: ease;	
	-webkit-animation-timing-function: ease;		

	visibility: visible !important;	
}

@keyframes expandUp {
	0% {
		transform: translateY(100%) scale(0.6) scaleY(0.5);
	}
	60%{
		transform: translateY(-7%) scaleY(1.12);
	}
	75%{
		transform: translateY(3%);
	}	
	100% {
		transform: translateY(0%) scale(1) scaleY(1);
	}	
}

@-webkit-keyframes expandUp {
	0% {
		-webkit-transform: translateY(100%) scale(0.6) scaleY(0.5);
	}
	60%{
		-webkit-transform: translateY(-7%) scaleY(1.12);
	}
	75%{
		-webkit-transform: translateY(3%);
	}	
	100% {
		-webkit-transform: translateY(0%) scale(1) scaleY(1);
	}	
}

/*
==============================================
fadeIn
==============================================
*/

.fadeIn{
	animation-name: fadeIn;
	-webkit-animation-name: fadeIn;	

	animation-duration: 1.5s;	
	-webkit-animation-duration: 1.5s;

	animation-timing-function: ease-in-out;	
	-webkit-animation-timing-function: ease-in-out;		

	visibility: visible !important;	
}

@keyframes fadeIn {
	0% {
		transform: scale(0);
		opacity: 0.0;		
	}
	60% {
		transform: scale(1.1);	
	}
	80% {
		transform: scale(0.9);
		opacity: 1;	
	}	
	100% {
		transform: scale(1);
		opacity: 1;	
	}		
}

@-webkit-keyframes fadeIn {
	0% {
		-webkit-transform: scale(0);
		opacity: 0.0;		
	}
	60% {
		-webkit-transform: scale(1.1);
	}
	80% {
		-webkit-transform: scale(0.9);
		opacity: 1;	
	}	
	100% {
		-webkit-transform: scale(1);
		opacity: 1;	
	}		
}

/*
==============================================
expandOpen
==============================================
*/


.expandOpen{
	animation-name: expandOpen;
	-webkit-animation-name: expandOpen;	

	animation-duration: 1.2s;	
	-webkit-animation-duration: 1.2s;

	animation-timing-function: ease-out;	
	-webkit-animation-timing-function: ease-out;	

	visibility: visible !important;	
}

@keyframes expandOpen {
	0% {
		transform: scale(1.8);		
	}
	50% {
		transform: scale(0.95);
	}	
	80% {
		transform: scale(1.05);
	}
	90% {
		transform: scale(0.98);
	}	
	100% {
		transform: scale(1);
	}			
}

@-webkit-keyframes expandOpen {
	0% {
		-webkit-transform: scale(1.8);		
	}
	50% {
		-webkit-transform: scale(0.95);
	}	
	80% {
		-webkit-transform: scale(1.05);
	}
	90% {
		-webkit-transform: scale(0.98);
	}	
	100% {
		-webkit-transform: scale(1);
	}					
}

/*
==============================================
bigEntrance
==============================================
*/


.bigEntrance{
	animation-name: bigEntrance;
	-webkit-animation-name: bigEntrance;	

	animation-duration: 1.6s;	
	-webkit-animation-duration: 1.6s;

	animation-timing-function: ease-out;	
	-webkit-animation-timing-function: ease-out;	

	visibility: visible !important;			
}

@keyframes bigEntrance {
	0% {
		transform: scale(0.3) rotate(6deg) translateX(-30%) translateY(30%);
		opacity: 0.2;
	}
	30% {
		transform: scale(1.03) rotate(-2deg) translateX(2%) translateY(-2%);		
		opacity: 1;
	}
	45% {
		transform: scale(0.98) rotate(1deg) translateX(0%) translateY(0%);
		opacity: 1;
	}
	60% {
		transform: scale(1.01) rotate(-1deg) translateX(0%) translateY(0%);		
		opacity: 1;
	}	
	75% {
		transform: scale(0.99) rotate(1deg) translateX(0%) translateY(0%);
		opacity: 1;
	}
	90% {
		transform: scale(1.01) rotate(0deg) translateX(0%) translateY(0%);		
		opacity: 1;
	}	
	100% {
		transform: scale(1) rotate(0deg) translateX(0%) translateY(0%);
		opacity: 1;
	}		
}

@-webkit-keyframes bigEntrance {
	0% {
		-webkit-transform: scale(0.3) rotate(6deg) translateX(-30%) translateY(30%);
		opacity: 0.2;
	}
	30% {
		-webkit-transform: scale(1.03) rotate(-2deg) translateX(2%) translateY(-2%);		
		opacity: 1;
	}
	45% {
		-webkit-transform: scale(0.98) rotate(1deg) translateX(0%) translateY(0%);
		opacity: 1;
	}
	60% {
		-webkit-transform: scale(1.01) rotate(-1deg) translateX(0%) translateY(0%);		
		opacity: 1;
	}	
	75% {
		-webkit-transform: scale(0.99) rotate(1deg) translateX(0%) translateY(0%);
		opacity: 1;
	}
	90% {
		-webkit-transform: scale(1.01) rotate(0deg) translateX(0%) translateY(0%);		
		opacity: 1;
	}	
	100% {
		-webkit-transform: scale(1) rotate(0deg) translateX(0%) translateY(0%);
		opacity: 1;
	}				
}

/*
==============================================
hatch
==============================================
*/

.hatch{
	animation-name: hatch;
	-webkit-animation-name: hatch;	

	animation-duration: 2s;	
	-webkit-animation-duration: 2s;

	animation-timing-function: ease-in-out;	
	-webkit-animation-timing-function: ease-in-out;

	transform-origin: 50% 100%;
	-ms-transform-origin: 50% 100%;
	-webkit-transform-origin: 50% 100%; 

	visibility: visible !important;		
}

@keyframes hatch {
	0% {
		transform: rotate(0deg) scaleY(0.6);
	}
	20% {
		transform: rotate(-2deg) scaleY(1.05);
	}
	35% {
		transform: rotate(2deg) scaleY(1);
	}
	50% {
		transform: rotate(-2deg);
	}	
	65% {
		transform: rotate(1deg);
	}	
	80% {
		transform: rotate(-1deg);
	}		
	100% {
		transform: rotate(0deg);
	}									
}

@-webkit-keyframes hatch {
	0% {
		-webkit-transform: rotate(0deg) scaleY(0.6);
	}
	20% {
		-webkit-transform: rotate(-2deg) scaleY(1.05);
	}
	35% {
		-webkit-transform: rotate(2deg) scaleY(1);
	}
	50% {
		-webkit-transform: rotate(-2deg);
	}	
	65% {
		-webkit-transform: rotate(1deg);
	}	
	80% {
		-webkit-transform: rotate(-1deg);
	}		
	100% {
		-webkit-transform: rotate(0deg);
	}		
}


/*
==============================================
bounce
==============================================
*/


.bounce{
	animation-name: bounce;
	-webkit-animation-name: bounce;	

	animation-duration: 1.6s;	
	-webkit-animation-duration: 1.6s;

	animation-timing-function: ease;	
	-webkit-animation-timing-function: ease;	
	
	transform-origin: 50% 100%;
	-ms-transform-origin: 50% 100%;
	-webkit-transform-origin: 50% 100%; 	
}

@keyframes bounce {
	0% {
		transform: translateY(0%) scaleY(0.6);
	}
	60%{
		transform: translateY(-100%) scaleY(1.1);
	}
	70%{
		transform: translateY(0%) scaleY(0.95) scaleX(1.05);
	}
	80%{
		transform: translateY(0%) scaleY(1.05) scaleX(1);
	}	
	90%{
		transform: translateY(0%) scaleY(0.95) scaleX(1);
	}				
	100%{
		transform: translateY(0%) scaleY(1) scaleX(1);
	}	
}

@-webkit-keyframes bounce {
	0% {
		-webkit-transform: translateY(0%) scaleY(0.6);
	}
	60%{
		-webkit-transform: translateY(-100%) scaleY(1.1);
	}
	70%{
		-webkit-transform: translateY(0%) scaleY(0.95) scaleX(1.05);
	}
	80%{
		-webkit-transform: translateY(0%) scaleY(1.05) scaleX(1);
	}	
	90%{
		-webkit-transform: translateY(0%) scaleY(0.95) scaleX(1);
	}				
	100%{
		-webkit-transform: translateY(0%) scaleY(1) scaleX(1);
	}		
}


/*
==============================================
pulse
==============================================
*/

.pulse{
	animation-name: pulse;
	-webkit-animation-name: pulse;	

	animation-duration: 1.5s;	
	-webkit-animation-duration: 1.5s;

	animation-iteration-count: infinite;
	-webkit-animation-iteration-count: infinite;
}

@keyframes pulse {
	0% {
		transform: scale(0.9);
		opacity: 0.7;		
	}
	50% {
		transform: scale(1);
		opacity: 1;	
	}	
	100% {
		transform: scale(0.9);
		opacity: 0.7;	
	}			
}

@-webkit-keyframes pulse {
	0% {
		-webkit-transform: scale(0.95);
		opacity: 0.7;		
	}
	50% {
		-webkit-transform: scale(1);
		opacity: 1;	
	}	
	100% {
		-webkit-transform: scale(0.95);
		opacity: 0.7;	
	}			
}

/*
==============================================
floating
==============================================
*/

.floating{
	animation-name: floating;
	-webkit-animation-name: floating;

	animation-duration: 1.5s;	
	-webkit-animation-duration: 1.5s;

	animation-iteration-count: infinite;
	-webkit-animation-iteration-count: infinite;
}

@keyframes floating {
	0% {
		transform: translateY(0%);	
	}
	50% {
		transform: translateY(8%);	
	}	
	100% {
		transform: translateY(0%);
	}			
}

@-webkit-keyframes floating {
	0% {
		-webkit-transform: translateY(0%);	
	}
	50% {
		-webkit-transform: translateY(8%);	
	}	
	100% {
		-webkit-transform: translateY(0%);
	}			
}

/*
==============================================
tossing
==============================================
*/

.tossing{
	animation-name: tossing;
	-webkit-animation-name: tossing;	

	animation-duration: 2.5s;	
	-webkit-animation-duration: 2.5s;

	animation-iteration-count: infinite;
	-webkit-animation-iteration-count: infinite;
}

@keyframes tossing {
	0% {
		transform: rotate(-4deg);	
	}
	50% {
		transform: rotate(4deg);
	}
	100% {
		transform: rotate(-4deg);	
	}						
}

@-webkit-keyframes tossing {
	0% {
		-webkit-transform: rotate(-4deg);	
	}
	50% {
		-webkit-transform: rotate(4deg);
	}
	100% {
		-webkit-transform: rotate(-4deg);	
	}				
}

/*
==============================================
pullUp
==============================================
*/

.pullUp{
	animation-name: pullUp;
	-webkit-animation-name: pullUp;	

	animation-duration: 1.1s;	
	-webkit-animation-duration: 1.1s;

	animation-timing-function: ease-out;	
	-webkit-animation-timing-function: ease-out;	

	transform-origin: 50% 100%;
	-ms-transform-origin: 50% 100%;
	-webkit-transform-origin: 50% 100%; 		
}

@keyframes pullUp {
	0% {
		transform: scaleY(0.1);
	}
	40% {
		transform: scaleY(1.02);
	}
	60% {
		transform: scaleY(0.98);
	}
	80% {
		transform: scaleY(1.01);
	}
	100% {
		transform: scaleY(0.98);
	}				
	80% {
		transform: scaleY(1.01);
	}
	100% {
		transform: scaleY(1);
	}							
}

@-webkit-keyframes pullUp {
	0% {
		-webkit-transform: scaleY(0.1);
	}
	40% {
		-webkit-transform: scaleY(1.02);
	}
	60% {
		-webkit-transform: scaleY(0.98);
	}
	80% {
		-webkit-transform: scaleY(1.01);
	}
	100% {
		-webkit-transform: scaleY(0.98);
	}				
	80% {
		-webkit-transform: scaleY(1.01);
	}
	100% {
		-webkit-transform: scaleY(1);
	}		
}

/*
==============================================
pullDown
==============================================
*/

.pullDown{
	animation-name: pullDown;
	-webkit-animation-name: pullDown;	

	animation-duration: 1.1s;	
	-webkit-animation-duration: 1.1s;

	animation-timing-function: ease-out;	
	-webkit-animation-timing-function: ease-out;	

	transform-origin: 50% 0%;
	-ms-transform-origin: 50% 0%;
	-webkit-transform-origin: 50% 0%; 		
}

@keyframes pullDown {
	0% {
		transform: scaleY(0.1);
	}
	40% {
		transform: scaleY(1.02);
	}
	60% {
		transform: scaleY(0.98);
	}
	80% {
		transform: scaleY(1.01);
	}
	100% {
		transform: scaleY(0.98);
	}				
	80% {
		transform: scaleY(1.01);
	}
	100% {
		transform: scaleY(1);
	}							
}

@-webkit-keyframes pullDown {
	0% {
		-webkit-transform: scaleY(0.1);
	}
	40% {
		-webkit-transform: scaleY(1.02);
	}
	60% {
		-webkit-transform: scaleY(0.98);
	}
	80% {
		-webkit-transform: scaleY(1.01);
	}
	100% {
		-webkit-transform: scaleY(0.98);
	}				
	80% {
		-webkit-transform: scaleY(1.01);
	}
	100% {
		-webkit-transform: scaleY(1);
	}		
}

/*
==============================================
stretchLeft
==============================================
*/

.stretchLeft{
	animation-name: stretchLeft;
	-webkit-animation-name: stretchLeft;	

	animation-duration: 1.5s;	
	-webkit-animation-duration: 1.5s;

	animation-timing-function: ease-out;	
	-webkit-animation-timing-function: ease-out;	

	transform-origin: 100% 0%;
	-ms-transform-origin: 100% 0%;
	-webkit-transform-origin: 100% 0%; 
}

@keyframes stretchLeft {
	0% {
		transform: scaleX(0.3);
	}
	40% {
		transform: scaleX(1.02);
	}
	60% {
		transform: scaleX(0.98);
	}
	80% {
		transform: scaleX(1.01);
	}
	100% {
		transform: scaleX(0.98);
	}				
	80% {
		transform: scaleX(1.01);
	}
	100% {
		transform: scaleX(1);
	}							
}

@-webkit-keyframes stretchLeft {
	0% {
		-webkit-transform: scaleX(0.3);
	}
	40% {
		-webkit-transform: scaleX(1.02);
	}
	60% {
		-webkit-transform: scaleX(0.98);
	}
	80% {
		-webkit-transform: scaleX(1.01);
	}
	100% {
		-webkit-transform: scaleX(0.98);
	}				
	80% {
		-webkit-transform: scaleX(1.01);
	}
	100% {
		-webkit-transform: scaleX(1);
	}		
}

/*
==============================================
stretchRight
==============================================
*/

.stretchRight{
	animation-name: stretchRight;
	-webkit-animation-name: stretchRight;	

	animation-duration: 1.5s;	
	-webkit-animation-duration: 1.5s;

	animation-timing-function: ease-out;	
	-webkit-animation-timing-function: ease-out;	

	transform-origin: 0% 0%;
	-ms-transform-origin: 0% 0%;
	-webkit-transform-origin: 0% 0%; 		
}

@keyframes stretchRight {
	0% {
		transform: scaleX(0.3);
	}
	40% {
		transform: scaleX(1.02);
	}
	60% {
		transform: scaleX(0.98);
	}
	80% {
		transform: scaleX(1.01);
	}
	100% {
		transform: scaleX(0.98);
	}				
	80% {
		transform: scaleX(1.01);
	}
	100% {
		transform: scaleX(1);
	}							
}

@-webkit-keyframes stretchRight {
	0% {
		-webkit-transform: scaleX(0.3);
	}
	40% {
		-webkit-transform: scaleX(1.02);
	}
	60% {
		-webkit-transform: scaleX(0.98);
	}
	80% {
		-webkit-transform: scaleX(1.01);
	}
	100% {
		-webkit-transform: scaleX(0.98);
	}				
	80% {
		-webkit-transform: scaleX(1.01);
	}
	100% {
		-webkit-transform: scaleX(1);
	}		
}

/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * Recently viewed module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    66b9af3b833151df0dfaa5cce98845be6e285746, v3 (xcart_4_4_0), 2010-08-03 15:52:09, main.css, igoryan
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

.menu-rviewed-section img.icon {
  background: transparent url(../../skin/common_files/modules/Recently_Viewed/../../images/dingbats_products.gif) no-repeat left top;
}

.menu-rviewed-section div.item {
  margin-bottom: 10px;
}

.menu-rviewed-section div.image {
  float: left;
  margin-right: 10px;
}

/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * Discount Coupons Module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    $Id: main.css,v 1.2.2.1 2012/03/22 11:13:33 aim Exp $
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

/* clear link */
.dcoupons-clear img {
  background: transparent url(../../skin/royalnew/modules/Discount_Coupons/../../images/delete_cross.gif) no-repeat;
  width: 11px;
  height: 11px;
  vertical-align: bottom;
}

/*
 * modules/Add_to_cart_popup/main.css - ROYALNEW
 *
 * Replaces the module's stock stylesheet (common_files/modules/
 * Add_to_cart_popup/main.css, untouched) for this skin only. X-Cart's
 * load_defer takes a skin's own copy of a file in preference to the
 * common one.
 *
 * The stock file styled the old table layout of the popup, and forced
 * its look with !important: a grey gradient on every button in the
 * dialog, 14px bold button text, a GIF arrow behind "Proceed to
 * checkout", and Tahoma 12px for the whole dialog. Those beat the new
 * design's rules and are why the redesigned popup came out with grey
 * buttons and small text. None of its selectors match the new
 * product_added.tpl otherwise.
 *
 * The popup's design lives in css/royalnew.css (section 11, "Added to
 * your cart" popup). Nothing is needed here.
 */

/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * Gift certificates Module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    72bcb996300964e6a7b13648f5941b7bb91adaa2, v3 (xcart_4_6_2), 2014-01-22 14:22:43, main.css, mixon
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */


/**
 * Gift certificate page 
 */
.giftcert-header {
  vertical-align: middle;
  padding-bottom: 15px;
}

.giftcert-header img {
  width: 61px;
  height: 67px;
  background: transparent url(../../skin/common_files/modules/Gift_Certificates/../../images/gift.gif) no-repeat left top;
  float: left;
  margin: 0 15px 15px 0;
}

.giftcert-info {
  margin-top: 45px;
}

.giftcert-table .giftcert-title {
  color: #b51a00;
  font-weight: bold;
  font-size: 12px;
  padding: 10px 0 0;
}

.giftcert-table .data-name {
  text-align: right;
}

.giftcert-table .giftcert-subtitle {
  padding-bottom: 30px;
}

.giftcert-table .giftcert-h-separator {
  padding: 15px 0;
}

.giftcert-table .giftcert-h-separator hr {
  border-bottom: 1px solid #ccc;
}

.giftcert-table .buttons-row #preview_button {
  float: left;
}

.giftcert-table .giftcert-delivery-method {
  font-weight: bold;
}

table.data-table tr#preview_template td {
  vertical-align: middle;
}

#preview_template td select {
  margin-right: 20px;
}

/**
 * Cart page 
 */
.giftcert-item .image img {
  width: 84px;
  height: 69px;
  background: transparent url(../../skin/common_files/modules/Gift_Certificates/../../images/gift.gif) no-repeat left top;
}

.giftcert-item .giftcert-item-row .giftcert-item-subtitle {
  padding-right: 3px;
}

.giftcert-item .product-title {
  padding-bottom: 15px;
}

/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * Upselling products module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    616d4da9c72aa057d62e895b3bd394ab88d6f872, v2 (xcart_4_4_0_beta_2), 2010-05-31 06:08:28, main.css, igoryan
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

ul.uproducts {
  list-style: none outside none;
  padding: 0;
  margin: 0;
}

.uproducts li {
  padding: 5px;
  font-weight: bold;
}

ul.uproducts a:link,
ul.uproducts a:visited,
ul.uproducts a:hover,
ul.uproducts a:active
{
  font-weight: bold;
  font-size: 12px;
}

.printable .uproducts {
  display: none;
}

/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * X-Magnifier module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    2934ccf997edc345ebde395a98c10bd2732dfbb0, v3 (xcart_4_4_1), 2010-08-25 09:09:34, main.css, igoryan
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

/* Product details page */
.magnifier-popup-link {
  margin-top: 3px;
  text-align: center;
  vertical-align: middle;
}

.magnifier-popup-link a:link,
.magnifier-popup-link a:visited,
.magnifier-popup-link a:hover,
.magnifier-popup-link a:active
{
  text-decoration: underline;
  background: transparent url(../../skin/common_files/modules/Magnifier/../../images/zoom_image.gif) no-repeat left top;
  padding-left: 16px;
}

.printable .magnifier-popup-link {
  display: none;
}

#magnifier_wrapper {
  min-height: 400px;
  margin: 0 auto;
  padding: 0;
}

#magnifier_div {
  position: relative;
  text-align: center;
}

/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * News management module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    616d4da9c72aa057d62e895b3bd394ab88d6f872, v2 (xcart_4_4_0_beta_2), 2010-05-31 06:08:28, main.css, igoryan
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

.news-register-item {
  margin-bottom: 5px;
}

.news-register-item label {
  line-height: 15px;
}

.news-register-item span {
  font-style: italic;
}

/* News list */
label.news-item {
  display: block;
  font-weight: bold;
}

.news-item-descr {
  font-style: italic;
  padding-left: 20px;
  padding-bottom: 15px;
}

.news-list .news-item {
  margin-top: 27px;
}

.news-list .news-item.last {
  margin-bottom: 27px;
}

.news-list .news-date {
  color: #818891;
}

.news-list .news-title {
  color: #2c3e49;
  font-weight: bold;
  font-size: 14px;
}

.news-list .news-body {
  margin-top: 10px;
}


/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * X-Survey module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    cdbaa473f56b915d73a40b115dd3fcaf77e0aee5, v3 (xcart_4_4_0), 2010-07-27 06:19:38, main.css, igoryan
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

/* Surveys menu list */
.menu-survey .title-bar img {
  background: url(../../skin/common_files/modules/Survey/../../images/dingbats_categorie.gif) no-repeat;
}

/**
 * Survey page
 */
.survey-name {
  font-weight: bold;
}

.survey-header {
  font-size: 11px;
  padding-bottom: 15px;
}

.menu-survey .survey-header {
  font-size: 10px;
}

.survey-question {
  font-size: 12px;
  font-weight: bold;
  padding: 15px 2px 2px 2px;
}

.menu-survey .survey-question {
  font-size: inherit;
  padding: 0;
}

.survey-answers {
  padding: 2px 2px 5px 20px;
}

.menu-survey .survey-answers {
  padding: 8px 0;
}

.survey-textarea {
  width: 400px;
  height: 150px;
}

.menu-survey .survey-textarea {
  width: 120px;
  height: 60px;
}

.survey-answer {
  padding: 0 25px 15px 0;
  vertical-align: top;
}

.menu-survey .survey-answer {
  padding-bottom: 5px;
}

.survey-answer label {
  display: block;
}

.survey-answer textarea {
  width: 380px;
  height: 100px;
  margin-left: 20px;
}

.menu-survey .survey-answer textarea {
  width: 120px;
  height: 60px;
}

.survey-answer table tr td {
  padding: 3px;
  vertical-align: top;
}

.menu-survey .survey-answer table tr td {
  padding: 1px;
}

.survey-footer {
  font-size: 11px;
}

.menu-survey .survey-footer {
  font-size: 10px;
}

.survey-required {
  color: #b51a00;
  font-weight: bold;
}

.survey-required span {
  color: #b51a00;
  font-size: 10px;
  padding-left: 10px;
  font-weight: bold;
}

/**
 * Survey result page
 */
.survey-result-row {
  padding-left: 10px;
}

.survey-result-row table tr td {
  padding: 1px;
  white-space: nowrap;
}

.survey-result-answer {
  width: 250px;
}

.survey-result-row img.survey-bar {
  vertical-align: middle;
  height: 15px;
  background: transparent url(../../skin/common_files/modules/Survey/../../images/bar.gif) repeat left top;
  float: left;
}

.survey-answer-hl .survey-result-row img.survey-bar {
  background-image: url(../../skin/common_files/modules/Survey/../../images/bar_hl.gif);
}

.survey-bar-label {
  padding-left: 6px;
}

/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * Image verification module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    7dbe3ab745c6e46d60aea4c7d69156375550c8b7, v3 (xcart_4_4_2), 2010-11-15 11:46:24, main.css, ferz
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

div.iv-box {
  margin-top: 15px;
  font-size: 10px;
  line-height: normal;
}

table.data-table tr td.iv-box {
  font-size: 10px;
  line-height: normal;
  vertical-align: top;
  padding-right: 5px;
}

table.data-table tr td.iv-box-descr {
  padding-top: 15px;
  font-size: 10px;
  line-height: normal;
}

.iv-description {
  padding: 0;
  margin: 0;
}

.iv-row {
  text-align: left;
  height: 60px;
}

.iv-img {
  text-align: center;
}

.iv-input {
  text-align: center;
}

.iv-row .iv-img {
  text-align: left;
  margin-right: 10px;
  float: left;
}

.iv-row .iv-input {
  text-align: left;
  height: 60px;
  line-height: 60px;
}
#opc_profile .iv-row {
  margin-top: 4px;
}
#opc_profile .iv-row .iv-input {
  height: auto;
  line-height: normal;
}
#opc_profile .iv-row .iv-input .button {
  margin: 3px 0px 0px 13px;
}

.iv-input input {
  width: 100px;
}

.iv-error {
  padding-left: 5px;
  color: #880000;
}

.iv-box a:link,
.iv-box a:visited,
.iv-box a:hover,
.iv-box a:active
{
  text-decoration: none;
  border: none;
  border-bottom: 1px dashed #3c6992;
  white-space: nowrap;
  color: #3c6992;
  font-size: 10px;
}
.iv-box span.star {
  padding: 0;
}
table.data-table tr td.iv-box .button-row {
  margin: 4px 0px 3px 0px;
}
table.register-table div.iv-box {
  text-align: center;
}
table.register-table div.iv-box div.iv-img {
  margin-top: 4px;
}

/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * X-RMA module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    616d4da9c72aa057d62e895b3bd394ab88d6f872, v2 (xcart_4_4_0_beta_2), 2010-05-31 06:08:28, main.css, igoryan
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

.rma-product-options-box {
  padding-left: 20px;
}

/*
5eba2fb2ff75df4a18d07913b095c0b884b1e772, v2 (xcart_4_6_4), 2014-06-25 11:08:30, main.css, random
vim: set ts=2 sw=2 sts=2 et:
*/
.card-expire {
  text-align: right;
  color: #aaa;
  width: 100%;
}
.card-icon,
.card-info
{
  display: inline-block;
  vertical-align: middle;
}
.card-icon {
  width: 100px;
  height: 45px;
  background: url(../../skin/common_files/modules/XPayments_Connector/card_types.png) 0 0 no-repeat;
  background-size: 100%;
}

.saved-cards span.card.mc {
  background: url(../../skin/common_files/modules/XPayments_Connector/card_types.png) 0px 0px no-repeat;
}

.saved-cards span.card.visa {
  background: url(../../skin/common_files/modules/XPayments_Connector/card_types.png) 0px -71px no-repeat;
}

.saved-cards span.card.jcb {
  background: url(../../skin/common_files/modules/XPayments_Connector/card_types.png) 0px -141px no-repeat;
}

.saved-cards span.card.amex {
  background: url(../../skin/common_files/modules/XPayments_Connector/card_types.png) 0px -211px no-repeat;
}

.saved-cards span.card.dc {
  background: url(../../skin/common_files/modules/XPayments_Connector/card_types.png) 0px -281px no-repeat;
}

.saved-cards span.card.dicl {
  background: url(../../skin/common_files/modules/XPayments_Connector/card_types.png) 0px -351px no-repeat;
}

.saved-cards span.card.sw {
  background: url(../../skin/common_files/modules/XPayments_Connector/card_types.png) 0px -421px no-repeat;
}

.saved-cards span.card.cup {
  background: url(../../skin/common_files/modules/XPayments_Connector/card_types.png) 0px -491px no-repeat;
}

.saved-cards span.card.bc {
  background: url(../../skin/common_files/modules/XPayments_Connector/card_types.png) 0px -561px  no-repeat;
}

table.saved-cards {
  /* max-width: 700px; */
}
table.saved-cards th {
  text-align: left;
}

table.saved-cards .default-card {
  font-weight: bold;
}

ul.saved-cards li {
  list-style: none;
}
ul.saved-cards li label {
  cursor: pointer;
}
ul.saved-cards li label input {
  vertical-align: middle;
}
ul.saved-cards .card-container {
  display: inline-block;
}

#xpc_address_hint {
  display: inline-block;
  vertical-align: top;
}
#xpc_iframe_section {
  margin-right: 20px;
  margin-bottom: 20px;
}

.xpc-show-all-cards {
  margin-left: 15px;
  font-size: smaller;
}

/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * Detailed product images module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    97ca8dbd8d41f52d869843ab3866d59cbeed929d, v5 (xcart_4_4_0), 2010-08-04 11:32:48, main.css, joy
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

/* Detailed images on product detailed page */
.dpimages-list .content {
  text-align: center;
}

.dpimages-list .content img {
  padding: 0 0 10px 0;
}

.dpimages-list .content img.last {
  padding: 0;
}

.dpimages-list .dpimage-container {
  text-align: center;
  margin: 3px 0;
}

/* Product details line */
div.dpimages-popup-link {
  margin-top: 33px;
  text-align: center;
  vertical-align: middle;
}

.dpimages-popup-link a:link,
.dpimages-popup-link a:visited,
.dpimages-popup-link a:hover,
.dpimages-popup-link a:active
{
  text-decoration: underline;
  padding: 0 0 0 17px;
  background: transparent url(../../skin/common_files/modules/Detailed_Product_Images/../../images/zoom_image.gif) no-repeat left 1px;
  line-height: 13px;
}

/* Icons box */

.dpimages-icons-box {
  padding-top: 15px;
  padding-bottom: 10px;
  width: 220px;
}

.dpimages-icons-box a:link,
.dpimages-icons-box a:visited,
.dpimages-icons-box a:hover,
.dpimages-icons-box a:active
{
  display: block;
  outline-style: none;
  border: 1px solid #fff;
  float: left;
}

.dpimages-icons-box a:hover {
  border: 1px solid #215485;
}

/* Printable page */

.printable .dpimages-popup-link,
.printable .dpimages-icons-box
{
  display: none;
}


/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * Advanced Order Management module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    616d4da9c72aa057d62e895b3bd394ab88d6f872, v2 (xcart_4_4_0_beta_2), 2010-05-31 06:08:28, main.css, igoryan
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

#history-box {
  padding: 5px;
  border: solid 1px #ccc;
	font-size: 10px;
}

#history-box ul {
  padding-left: 20px;
  margin: 0px;
	
}

#history-box li {
  padding: 0;
  margin: 0;
  font-size: 10px;
}

#history-box .subhead {
  color: #000;
  font-size: 10px;
  font-weight: bold;
  padding-top: 3px;
  margin: 0;
}

#history-box .subhead-comment {
  color: #000;
  font-size: 10px;
  font-weight: normal;
  padding: 3px 0;
  margin: 0;
}

#history-box .subhead-note {
  color: #848a94;
  padding: 3px 0;
  font-size: 10px;
}

#history-box .section-subhead {
  color: #b51a00;
  font-size: 10px;
  font-weight: normal;
  padding: 3px 0;
  margin: 0;
}

#history-box p {
  font-size: 10px;
  padding: 0;
  margin: 0;
}

#history-box .status {
  color: #848a94;
}

/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * Wholesale trading module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    616d4da9c72aa057d62e895b3bd394ab88d6f872, v2 (xcart_4_4_0_beta_2), 2010-05-31 06:08:28, main.css, igoryan
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

#wl-prices {
  margin-top: 15px;
}

#wl-prices table td {
  padding: 2px 10px;
  background: #eee none;
  white-space: nowrap;
}

#wl-prices table th {
  padding: 2px 10px;
  white-space: nowrap;
  background: #ccc none;
  font-weight: bold;
  text-align: center;
}

#wl-prices div strong {
  color: #112536;
}

/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * Stop list module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    616d4da9c72aa057d62e895b3bd394ab88d6f872, v2 (xcart_4_4_0_beta_2), 2010-05-31 06:08:28, main.css, igoryan
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

img.slist-no-ip {
  vertical-align: middle;
  width: 12px;
  height: 12px;
  background: transparent url(../../skin/common_files/modules/Stop_List/../../images/no_ip.gif) left top;
}

/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * Recommended products module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    616d4da9c72aa057d62e895b3bd394ab88d6f872, v2 (xcart_4_4_0_beta_2), 2010-05-31 06:08:28, main.css, igoryan
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

ul.rproducts {
  list-style: none outside none;
  margin: 0;
  padding: 0;
}

ul.rproducts li {
  margin: 0;
  padding: 4px 0;
  font-size: 7px;
}

ul.rproducts a:link,
ul.rproducts a:visited,
ul.rproducts a:hover,
ul.rproducts a:active
{
  font-weight: bold;
  font-size: 12px;
}

.printable .rproducts {
  display: none;
}

/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * Product options module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    616d4da9c72aa057d62e895b3bd394ab88d6f872, v2 (xcart_4_4_0_beta_2), 2010-05-31 06:08:28, main.css, igoryan
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

/* exceptions list */
#exception_msg {
  padding-bottom: 15px;
}

.poptions-exceptions-list {
  padding-bottom: 15px;
}

/* short options list */
.poptions-options-list {
  padding: 1px;
}

.poptions-options-list td {
  padding-right: 10px;
}

/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * Banner Systems module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    23663ab722599bb67140d607ae2900b6d69f951d, v2 (xcart_4_5_3), 2012-09-13 13:13:01, main.css, random
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

.banner-system {
  margin: 0px auto 12px auto;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.banner-system div.content {
  text-align: left;
  width: 100% !important;
}
#banner-system-code-T, #banner-system-code-B, #banner-system-code-L, #banner-system-code-R, #banner-system-code-demo {
  display: none;
}
#banner_system_navigation {
  height: 21px;
  line-height: 21px;
  text-align: center;
  position: absolute;
  bottom: 20px;
  left: 50px;
  z-index: 50;
}
#banner_system_navigation img {
  float: left;
  margin: 0 5px;
}
.banner_system_navigation {
  float: left;
}
.banner_system_navigation a {
  margin: 0 5px;
  padding: 3px 5px;
  border: 1px solid #ccc;
  background: #fff;
  text-decoration: none;
}
.banner_system_navigation a.activeSlide {
  background: #8F8F8F;
  color: #fff;
}
.banner_system_navigation a:focus {
  outline: none;
} 

/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * One page checkout module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    ccede2f65deb8ae95e1d6b6fdc7056c93b8b430d, v22 (xcart_4_5_5), 2013-02-01 17:04:27, main.css, random
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

/**
 * Alternative styles for common elements 
 */

.sub_tot_id td.total,#ship_id_0 .checkout-shippings tr td.shipping-name{text-align:right !important;width: 80% !important;}
#ship_id_0 .checkout-shippings tr td{padding: 3px 5px 3px 0px !important;;}#ship_id_0{padding:0;width:100%}
.sub_tot_id td.total-value,#ship_id_0 .checkout-shippings tr td.shipping-cost{text-align:right !important;width: 20% !important;}
#ship_id_0 #opc_shipping{margin:0 !important;padding:0 !important;width: 100%;}.checkout-shippings tr td.shipping-cost{vertical-align:bottom}
#ship_id_0 #opc_shipping .opc-section-container.opc-shipping-options{margin:0 !important;padding:0 !important;background:none !important}
#ship_id_0 #opc_shipping .checkout-shippings td,#ship_id_0 #opc_shipping .checkout-shippings label{font-size:12px !important;color:#333 !important;font-weight:bold}
#ship_id_0 #opc_shipping .checkout-shippings .shipping-name input{position: relative;top: 3px;padding: 0px;margin: 0px;}
div.opc-container .opc-section h2,
div.opc-container .opc-section h3
{
  color: #617683;
}

div.checkout-container div#content-container span.star {
  padding-left: 5px;
  color: #F00;
}

.fill-error label {
  color: #ce0000;
}

div.opc-section-container div.text-block {
  margin: 0 10px;
}

.fill-error .data-value input[type=text],
.fill-error .data-value input[type=password],
.fill-error .data-value select,
.fill-error .data-value textarea
{
  border: solid 1px #ce0000;
  background-color: #ffebeb;
}

div.error-label {
  color: #ce0000;
  font-size: 9px;
  display: none;
}

.fill-error div.error-label {
  display: block;
}

/**
 * Container blocks 
 */

ul#opc-sections li.opc-section {
  text-align: left;
  list-style: none;
}

ul#opc-sections li.opc-section h2 {
  font-weight: normal;
  font-size: 18px;
  padding: 7px;
  margin: 0 0 4px 0;
  background: #f5f5f5;
}

ul#opc-sections li.opc-section h3 {
  font-weight: normal;
  font-size: 18px;
  padding: 7px 0;
  margin: 0;
  border: 0 none;
}

/**
 * Registration section 
 */

fieldset.registerform {
  border: 0 none;
  padding: 0;
  margin: 0;
}

div.opc-section-container div.text-block {
  margin: 0 10px;
}

fieldset.registerform ul li {
  list-style: none;
  padding: 0;
  margin: 0;
}

fieldset.registerform ul {
  position: relative;
  padding: 10px 8px;
  margin: 0;
  background: none;
}

fieldset.registerform ul.first {
  padding-top: 15px;
}

fieldset.registerform ul li {
  padding-bottom: 15px;
}

fieldset.registerform ul li.clearing {
  padding: 0;
  margin: 0;
}

fieldset.registerform ul li.fields-group {
  float: left;
  margin-right: 10px;
}

fieldset.registerform ul li.single-field {
  float: none;
  clear: both;
}

fieldset.registerform div.oneline {
  float: left;
  margin-right: 10px;
}

li.single-field input.image-button {
  background: transparent url(../../skin/royalnew/modules/One_Page_Checkout/../../images/button_go.png) no-repeat left top;
  height: 21px;
  width: 23px;
  margin-bottom: 1px;
}


div.optional-label {
  margin: 10px 5px;
  background-color: #fff;
}

div.optional-label label {
  font-weight: bold;
  font-size: 11px;
  display: block;
  padding-left: 15px;
  text-indent: -15px;
}

div.optional-label label input {
  margin-right: 5px;
  width: 13px;
  height: 13px;
  padding: 0;
  vertical-align: bottom;
  position: relative;
  top: -2px;
}

div.address-book-link {
  height: 35px;
  background: #ecf3f7;
  width: 100%;
  vertical-align: middle;
  position: relative;
  padding: 5px 0;
}

div.address-book-link span.popup-link {
  margin: 10px;
  font-size: 11px;
}

div.address-book-link label {
  margin: 10px;
  font-size: 11px;
  line-height: 16px;
}

ul#opc-sections li.opc-section div.opc-checkout-profile h3 {
  padding: 7px;
}

ul#opc-sections li.opc-section div.news-register-item-descr {
  font-size: 10px;
  font-style: italic;
}

/**
 * Shipping and payment section 
 */

.checkout-payments tr td.checkout-payment-name label {
  font-weight: bold;
}

.checkout-payments tr td div.checkout-payment-descr {
  width: 80%;
}

.checkout-payments tr td.checkout-payment-paypal {
  width: 100%;
}

.checkout-payments tr td.checkout-payment-paypal img {
  border: 0 none;
}

.checkout-payments tr.payment-details td { 
  background: #fff;
  margin: 0;
  padding: 10px;
} 

.checkout-payment-name span.applied-gc {
  font-weight: normal;
  color: #01851a;
}

.checkout-shippings {
  width: 100%;
}

.checkout-shippings tr td { 
  padding: 5px 10px 5px 0; 
  border-bottom: solid 2px #fff;
  vertical-align: top;
  font-size: 11px;
}

.checkout-shippings tr.last td { 
  border-bottom: 0 none;
}  

.checkout-shippings tr td label { 
  font-size: 11px;
  line-height: 14px;
}

.checkout-shippings tr td.shipping-name { 
  width: 70%;
}

.checkout-shippings tr td.shipping-cost { 
  width: 30%;
  text-align: right;
}

.opc-payment-options fieldset.registerform ul {
  background: 0;
}

/**
 * Summary section 
 */
div.coupon-info a.unset-coupon-link {
  margin-left: 10px;
}

div.coupon-info p {
  font-size: 9px;
}

div.coupon-info div.progress {
  background: transparent url(../../skin/royalnew/modules/One_Page_Checkout/../../images/progress.gif) repeat-x left 10px;
  height: 20px;
  margin: 0 15%;
}

div#couponform {
  height: 20px;
}

div.coupon-info input.image-button {
  background: transparent url(../../skin/royalnew/modules/One_Page_Checkout/../../images/button_go.png) no-repeat left top;
  height: 21px;
  width: 23px;
  margin-bottom: 1px;
}

div.cart-totals {
  margin: 10px 0;
  padding: 0;
}

div.cart table.totals {
  margin: 0 0 0 auto;
  text-align: right;
  /*width: 30%;*/
}

table.totals tr td.total,
table.totals tr td.total-name,
table.totals tr td.total-value,
table.totals tr td.total-value-alt,
table.totals span.total-name
{
  font-weight: bold;
  text-transform: none;
  padding: 5px 5px 5px 0;
  font-size: 12px;
  vertical-align: top;
}

#opc_summary table.totals {
/*  text-align: left;*/
  width: 100%;
}

#opc_summary table.totals tr td.total,
#opc_summary table.totals tr td.total-name,
#opc_summary table.totals tr td.total-value,
#opc_summary table.totals tr td.total-value-alt,
#opc_summary table.totals span.total-name
{
  width: 15%;
  font-weight: normal;
  vertical-align: baseline;
}

#opc_summary table.totals tr td.total,
#opc_summary table.totals tr td.total-name {
  width: 70%;
}
#opc_summary table.totals tr td.dcoupons-clear  {
          color: rgb(51, 51, 51) !important; 
    font-weight: bold !important; 
}
table.totals tr td.discounted {
  color: #01851a;
}

table.totals tr.total td.total-name {
  font-size: 22px;
}

table.totals tr.total td.total-value {
  font-size: 22px;
}

table.totals tr.total td.total-value-alt {
  font-size: 12px;
  vertical-align: bottom;
}

table.cart-content tr td {
  font-size: 11px;
  font-weight: normal;
  border-bottom: solid 1px #888;
  padding: 10px 5px;
  vertical-align: top;
}

table.cart-content .cart-content-text {
  font-weight: normal;
  color: #2c3e49;
}

div#order-taxes-box {
  padding: 10px 5px;
}

div.checkout-customer-notes,
div.checkout-partner,
div.terms_n_conditions
{
  padding: 0px 0;
}

div.terms_n_conditions {
  text-align: center;
  display:none !important;
}

div.terms_n_conditions label {
  font-size: 13px;
}

.place-order-button button.inactive {
  opacity: .3;
  filter:Alpha(Opacity=30);
  cursor: default;
}

div.paypal-express-sel-note {
  padding: 0 10px;
}

#opc_payment {
  margin-bottom: 20px;
}

#opc_shipping {
  margin-bottom: 20px;
}

ul#opc-sections li.opc-section h3 {
  margin-bottom: 20px;
}

#show_coupon_code {
  border-bottom: 1px dotted;
  color: inherit;
  text-decoration: none;
}

table.cart-content {
	background: #eee;
}


table.cart-content tr.checkout_prodtable_head td{
	background:#fff;
	font-size: 11px;
	font-weight: bold;
	color:#000;
	border: none;
	padding: 3px;
	text-align:center;
}


table.cart-content tr.checkout_prodtable_row td {
	background: url(../../skin/royalnew/modules/One_Page_Checkout/checkout_prodtable_row_bg.png) top left repeat-x;
	height:45px;
	vertical-align:middle;
	color: #000;
	font-size: 11px;
	border: none;
	text-align:center;
}


table.cart-content tr.checkout_prodtable_row td a {
	color: #555;
	text-decoration: none;
}

table.cart-content tr.checkout_prodtable_row td.product,
table.cart-content tr.checkout_prodtable_head td.product{
	text-align: left;
	width: 315px;
}

table.cart-content input.checkout_prodtable_qty { 
	padding: 0;
	text-align: center;	
}

#checkout_form td.customer_notes{
	width: 322px;
	vertical-align: top;
	color: #000;
}

#checkout_form td.cart_info{
	vertical-align: top;
	padding-left:10px;
	color: #000;
}

table.cart-content tr td.buttons_row {
	background: url(../../skin/royalnew/modules/One_Page_Checkout/checkout_prodtable_row_bg.png) top left repeat-x;
	height:36px;
	vertical-align:middle;
	color: #000;
	font-size: 11px;
	border: none;
	text-align:center;
}
/* vim: set ts=2 sw=2 sts=2 et: */
/**
 * Flyout menus module CSS stylesheet
 *  
 * @category   X-Cart
 * @package    X-Cart
 * @subpackage CSS
 * @author     Ruslan R. Fazlyev <rrf@x-cart.com> 
 * @version    $Id: main.css,v 1.3 2010/07/22 09:41:43 igoryan Exp $
 * @link       http://www.x-cart.com/
 * @see        ____file_see____
 */

/**
 * Layout 
 */
.menu-fancy-categories-list .content {
  overflow: visible;
  padding-top: 5px;
  padding-left: 5px;
  padding-right: 6px;
}

.fancycat-icons-e ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 137px;
}

.fancycat-icons-e ul li {
  float: left;
  position: relative;
  width: 100%;
  padding: 2px 0;
  background: white none;
}

.fancycat-icons-e li ul {
  display: none;
  position: absolute;
  top: 4px;
  left: 126px;
  background: white none;
  border: 1px solid #b1c6d7;
  margin: 0;
  padding: 5px 6px 5px 5px;
}

.fancycat-icons-e li:hover,
.fancycat-icons-e li.over
{
  background-color: #e4e7ed;
}

.fancycat-icons-e li:hover ul,
.fancycat-icons-e li.over ul
{
  display: block;
}

.fancycat-icons-e li iframe {
  position: absolute;
  padding: 0;
  border: 0 none;
  margin: 0;
  left: 0;
  top: 0;
  display: none;
}

.fancycat-icons-e li iframe.over {
  display: block;
}

/**
 * Multi-level support 
 */
.fancycat-icons-e li:hover ul ul, .fancycat-icons-e li.over ul ul,
.fancycat-icons-e li:hover ul ul ul, .fancycat-icons-e li.over ul ul ul,
.fancycat-icons-e li:hover ul ul ul ul, .fancycat-icons-e li.over ul ul ul ul,
.fancycat-icons-e li:hover ul ul ul ul ul, .fancycat-icons-e li.over ul ul ul ul ul,
.fancycat-icons-e li:hover ul ul ul ul ul ul, .fancycat-icons-e li.over ul ul ul ul ul ul,
.fancycat-icons-e li:hover ul ul ul ul ul ul ul, .fancycat-icons-e li.over ul ul ul ul ul ul ul,
.fancycat-icons-e li:hover ul ul ul ul ul ul ul ul, .fancycat-icons-e li.over ul ul ul ul ul ul ul ul,
.fancycat-icons-e li:hover ul ul ul ul ul ul ul ul ul, .fancycat-icons-e li.over ul ul ul ul ul ul ul ul ul,
.fancycat-icons-e li:hover ul ul ul ul ul ul ul ul ul ul, .fancycat-icons-e li.over ul ul ul ul ul ul ul ul ul ul,
.fancycat-icons-e li:hover ul ul ul ul ul ul ul ul ul ul ul, .fancycat-icons-e li.over ul ul ul ul ul ul ul ul ul ul ul
{
  display: none;
}

.fancycat-icons-e li li:hover ul, .fancycat-icons-e li li.over ul,
.fancycat-icons-e li li li:hover ul, .fancycat-icons-e li li li.over ul,
.fancycat-icons-e li li li li:hover ul, .fancycat-icons-e li li li li.over ul,
.fancycat-icons-e li li li li li:hover ul, .fancycat-icons-e li li li li li.over ul,
.fancycat-icons-e li li li li li li:hover ul, .fancycat-icons-e li li li li li li.over ul,
.fancycat-icons-e li li li li li li li:hover ul, .fancycat-icons-e li li li li li li li.over ul,
.fancycat-icons-e li li li li li li li li:hover ul, .fancycat-icons-e li li li li li li li li.over ul,
.fancycat-icons-e li li li li li li li li li:hover ul, .fancycat-icons-e li li li li li li li li li.over ul,
.fancycat-icons-e li li li li li li li li li li:hover ul, .fancycat-icons-e li li li li li li li li li li.over ul,
.fancycat-icons-e li li li li li li li li li li li:hover ul, .fancycat-icons-e li li li li li li li li li li li.over ul
{
  display: block;
}

/**
 * Visual scheme 
 */
.fancycat-icons-e ul li a:link,
.fancycat-icons-e ul li a:visited,
.fancycat-icons-e ul li a:hover,
.fancycat-icons-e ul li a:active
{
  display: block;
  position: relative;
  font-size: 12px;
  color: #300;
  text-decoration: none;
  line-height: 16px;
  vertical-align: middle;
  background: transparent none;
  padding: 0 25px 0 10px;
  margin-left: 10px !important;
  overflow: hidden;
}

.fancycat-icons-e a.icon-link:link,
.fancycat-icons-e a.icon-link:visited,
.fancycat-icons-e a.icon-link:hover,
.fancycat-icons-e a.icon-link:active
{
  padding-left: 26px;
}

.fancycat-icons-e a.sub-link:link,
.fancycat-icons-e a.sub-link:visited,
.fancycat-icons-e a.sub-link:hover,
.fancycat-icons-e a.sub-link:active
{
  background: transparent url(../../skin/royalnew/modules/Flyout_Menus/Icons/tree_subdir_plus.gif) no-repeat 97% 4px;
}

.fancycat-icons-e a.empty-link:link,
.fancycat-icons-e a.empty-link:visited,
.fancycat-icons-e a.empty-link:hover,
.fancycat-icons-e a.empty-link:active
{
  color: #a3b1c7;
}

.fancycat-icons-e a.nowrap-link:link,
.fancycat-icons-e a.nowrap-link:visited,
.fancycat-icons-e a.nowrap-link:hover,
.fancycat-icons-e a.nowrap-link:active
{
  white-space: nowrap;
}

.fancycat-icons-e img {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  margin: 0;
}

/**
 * Tree-like expanding
 */

.fancycat-icons-c {
  padding-top: 5px;
  padding-left: 8px;
  overflow: hidden;
}

.fancycat-icons-c ul {
  list-style: none;
  padding: 0;
}

.fancycat-icons-c ul li {
  padding: 4px 19px 7px 0px;
  position: relative;
}

.fancycat-icons-c ul.fancycat-icons-level-1 li {
  padding-bottom: 3px;
}

.fancycat-icons-c ul li ul {
  margin-top: 3px;
  padding-left: 10px;
}

.fancycat-icons-c li.closed ul {
  display: none;
}

.fancycat-icons-c ul li a:link,
.fancycat-icons-c ul li a:visited,
.fancycat-icons-c ul li a:hover,
.fancycat-icons-c ul li a:active
{
  font-size: 15px;
  background: url(../../skin/royalnew/modules/Flyout_Menus/Icons/./nav_arr.gif) no-repeat scroll 0 4px transparent;
  color: #434343;
  display: block;
  padding: 0 0 0 14px;
  text-decoration: none;
}

.fancycat-icons-c li.cat_header a.arrow:link,
.fancycat-icons-c li.cat_header a.arrow:visited,
.fancycat-icons-c li.cat_header a.arrow:hover,
.fancycat-icons-c li.cat_header a.arrow:active
{
  display: block;
  position: absolute;
  right: 0;
  top: 7px;
  outline-style: none;
  width: 12px;
  height: 12px;
  background: transparent url(../../skin/royalnew/modules/Flyout_Menus/Icons/plus_minus.gif) no-repeat left top;
  overflow: hidden;
}

.fancycat-icons-c li.openheader a.arrow:link,
.fancycat-icons-c li.openheader a.arrow:visited,
.fancycat-icons-c li.openheader a.arrow:hover,
.fancycat-icons-c li.openheader a.arrow:active
{
	 background-position: left -12px;
}

.fancycat-icons-c li.closed a.arrow:link,
.fancycat-icons-c li.closed a.arrow:visited,
.fancycat-icons-c li.closed a.arrow:hover,
.fancycat-icons-c li.closed a.arrow:active
{
  background-position: left top;
}

.fancycat-icons-c a.empty-link:link,
.fancycat-icons-c a.empty-link:visited,
.fancycat-icons-c a.empty-link:hover,
.fancycat-icons-c a.empty-link:active
{
  color: #808b9d;
}

.fancycat-icons-c ul li a:hover{
	text-decoration: none;
	color: #FF9F04;
}

/* =============================================================
   royalnew.css - RoyalMailers redesign
   =============================================================

   ARCHITECTURE
   This is the ONLY design stylesheet the storefront loads. The two
   inherited design layers are deliberately no longer loaded:

     common_files/css/main.css   70KB  X-Cart 4.5 stock design
     royalnew/css/altskin.css   170KB  previous agency's design

   Both are still on disk and still in git - nothing was deleted.
   They are switched off in customer/service_css.tpl, which is a
   one-line revert if this turns out to be wrong.

   Why: the redesign has to match the supplied reference exactly.
   Layering on 240KB of legacy design means out-specifying an old
   rule for every new one, and losing that fight silently. The
   sidebar-drop regression in 1383096 was that failure mode in
   miniature - 32px of padding met a layout with 0px of slack.

   Module and library CSS (cluetip, colorbox, jcarousel, module
   stylesheets) still loads - that is functional, not design.

   CONSEQUENCE: pages not yet rebuilt will look unstyled until they
   are. That is expected. Live is unaffected until the skin is
   switched, and staging is the place for it to look rough.

   -------------------------------------------------------------
   TOKENS ARE READ FROM STATIC DESKTOP MOCKUPS
   Colours and sizes are measured from the reference images, so treat
   them as close-but-tunable. Everything is defined once in :root -
   correcting a value is one edit, not a search across pages.

   FONTS ARE INFERRED, NOT KNOWN
   The display face reads as Montserrat and the text face as Inter.
   That is a visual match from screenshots, not identification. If
   the real fonts are known, change --rm-font-display / --rm-font-text
   and the font <link> in customer/home.tpl, and nothing else needs
   touching.

   NOT AN @import. The fonts used to be @imported here, and never
   loaded: X-Cart bundles every stylesheet into one file, this one
   lands deep inside it, and browsers ignore an @import anywhere but
   the top of a stylesheet. The <link> in customer/home.tpl replaces it.

   MOBILE IS NOT IN THE REFERENCE
   The mockups are desktop only. All responsive behaviour here is a
   design decision made from the desktop intent, and should be
   reviewed as such rather than assumed correct.
   ============================================================= */



/* =============================================================
   1. TOKENS
   ============================================================= */
:root {

	/* ---------- Brand colour ----------
	   Navy and gold are now sampled straight out of newLogo.png rather
	   than estimated off a JPEG mockup, so the logo and the UI around
	   it are the same blue. They were about a step apart before, which
	   shows wherever the logo sits against a navy surface. */
	--rm-navy-dark:   #072560;   /* announcement bar */
	--rm-navy:        #0A3081;   /* nav bar, display headings, brand */
	--rm-navy-soft:   #123E9B;   /* hover on navy surfaces */
	--rm-blue:        #1A4FC4;   /* links, product titles */
	--rm-blue-dark:   #143C96;   /* link hover */
	--rm-blue-tint:   #E9F1FC;   /* info bars - "ships FREE" */

	--rm-gold:        #F6A738;   /* primary CTA, crown, eyebrow text */
	--rm-gold-dark:   #E0901F;   /* CTA hover */
	--rm-gold-soft:   #FCD38A;   /* gold rules, dividers */

	/* ---------- Status ---------- */
	--rm-green:       #00A650;   /* FREE, success */
	--rm-red:         #D93025;   /* required marks, errors */

	/* ---------- Neutrals ---------- */
	--rm-ink:         #1F2937;   /* body copy */
	--rm-ink-soft:    #4B5563;   /* secondary copy */
	--rm-muted:       #6B7280;   /* meta, captions */
	--rm-line:        #E3E8EF;   /* borders, hairlines */
	--rm-line-soft:   #EEF2F7;   /* subtle dividers */

	--rm-white:       #FFFFFF;
	--rm-bg:          #FFFFFF;   /* page ground */
	/* The reference's light bands are near-neutral greys, not tinted
	   blue - the earlier values read as pale blue against the navy. */
	--rm-bg-alt:      #F7F8FA;   /* alt sections, field fills */
	--rm-bg-hero:     #F2F4F7;   /* hero band, a shade deeper */
	--rm-bg-sunken:   #EDF0F5;   /* deeper alt band */

	/* ---------- Type families ---------- */
	--rm-font-display: 'Montserrat', 'Segoe UI', Tahoma, sans-serif;
	--rm-font-text:    'Inter', 'Segoe UI', Tahoma, Arial, sans-serif;

	/* ---------- Type scale ----------
	   Display sizes step down on small screens via clamp(), so the
	   desktop value is the ceiling and no media query is needed. */
	/* Sized off the reference by measuring set text as a fraction of the
	   artboard width, so they hold at any viewport. The hero headline in
	   particular was a third too small before. */
	--rm-fs-hero:     clamp(2.5rem, 1.15rem + 5.8vw, 4.25rem);   /* 40 -> 68 */
	--rm-fs-h1:       clamp(2.00rem, 1.05rem + 4.2vw, 3.50rem);  /* 32 -> 56 */
	--rm-fs-h2:       clamp(1.60rem, 1.15rem + 2.0vw, 2.25rem);  /* 26 -> 36 */
	--rm-fs-h3:       clamp(1.20rem, 1.05rem + 0.7vw, 1.50rem);  /* 19 -> 24 */
	--rm-fs-h4:       1.125rem;   /* 18 - panel headings */
	--rm-fs-lead:     1.0625rem;  /* 17 - hero subcopy */
	--rm-fs-body:     1rem;       /* 16 */
	--rm-fs-sm:       0.9375rem;  /* 15 - card titles, table body */
	--rm-fs-xs:       0.8125rem;  /* 13 - nav, meta, announcement bar */
	--rm-fs-eyebrow:  0.8125rem;  /* 13 - gold uppercase kicker */

	--rm-lh-tight:    1.18;   /* display headings */
	--rm-lh-snug:     1.35;   /* subheads, card titles */
	--rm-lh-body:     1.6;    /* body copy */

	--rm-ls-tight:    -0.02em;  /* large display */
	--rm-ls-nav:       0.06em;  /* uppercase nav */
	--rm-ls-eyebrow:   0.20em;  /* gold kicker */

	/* ---------- Spacing (4px base) ---------- */
	--rm-s1:  0.25rem;   /*  4 */
	--rm-s2:  0.5rem;    /*  8 */
	--rm-s3:  0.75rem;   /* 12 */
	--rm-s4:  1rem;      /* 16 */
	--rm-s5:  1.25rem;   /* 20 */
	--rm-s6:  1.5rem;    /* 24 */
	--rm-s8:  2rem;      /* 32 */
	--rm-s10: 2.5rem;    /* 40 */
	--rm-s12: 3rem;      /* 48 */
	--rm-s16: 4rem;      /* 64 */
	--rm-s20: 5rem;      /* 80 */

	/* ---------- Layout ----------
	   Not a fixed box. The gutter grows with the viewport, so the page
	   reads edge-to-edge on a laptop rather than boxed-in, and the
	   ceiling only bites on very wide monitors - without one, a 2560px
	   screen turns a 4-across grid into 10-across and runs body copy to
	   200 characters a line. Colour bands are full-bleed regardless;
	   only their inner content is aligned to this. */
	--rm-container: 1440px;                    /* ceiling, not a target */
	--rm-gutter:    clamp(1rem, 4vw, 4rem);    /* 16 -> 64, fluid */

	/* ---------- Radius ---------- */
	--rm-radius-sm:   4px;    /* inputs */
	--rm-radius:      6px;    /* buttons, cards */
	--rm-radius-lg:   10px;   /* panels */
	--rm-radius-pill: 999px;  /* search field, step circles */

	/* ---------- Elevation ----------
	   The reference leans on hairline borders, not shadow. Keep it light. */
	--rm-shadow-sm: 0 1px 2px rgba(16, 39, 94, 0.06);
	--rm-shadow:    0 2px 8px rgba(16, 39, 94, 0.08);

	/* ---------- Ergonomics ---------- */
	--rm-tap-target: 44px;

	/* ---------- Motion ---------- */
	--rm-transition: 0.15s ease;
}


/* =============================================================
   2. RESET
   Minimal and deliberate - the legacy resets are no longer loaded.
   ============================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--rm-bg);
	color: var(--rm-ink);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-body);
	line-height: var(--rm-lh-body);
	-webkit-font-smoothing: antialiased;
}

html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
}

img,
video {
	height: auto;
	border: 0;
}

table {
	max-width: 100%;
	border-collapse: collapse;
}

/* Form controls do not inherit type by default. */
input,
select,
textarea,
button {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

/* Visible focus for keyboard users, suppressed for mouse clicks. */
:focus-visible {
	outline: 2px solid var(--rm-blue);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}


/* =============================================================
   2b. X-CART FUNCTIONAL CLASSES

   Not design. These are classes X-Cart's own JavaScript adds and
   removes to show, hide and flag things, and they were defined in
   common_files/css/main.css - which 7e5c645 switched off along with
   the rest of the stock design. Switching the design off took the
   behaviour with it. Nothing visible broke loudly, which is why this
   went unnoticed until the checkout work.

   What was actually broken on staging until this block:
     .hidden   common.js hides and shows elements by toggling it. It
               defined NOWHERE, so on checkout the captcha's hidden
               label and the unselected payment method's panel showed.
     .err      the form validator marks an invalid field with it. A
               customer missing a required checkout field got no
               highlight on the field.
   Live was never affected - it still runs the old skin.

   .hidden is !important deliberately: while X-Cart has the class on
   an element, it must be hidden, whatever display a design rule
   gives that element. Audited before restoring - on every page built
   so far it hides only the captcha label, a hidden row on the
   product page and the PayPal panel, all meant to be hidden.
   ============================================================= */
.hidden {
	display: none !important;
}

/* Validation: X-Cart adds .err to the field itself, or .fill-error to
   its container - the checkout's validator uses the second. */
input.err,
select.err,
textarea.err,
.fill-error input[type=text],
.fill-error input[type=password],
.fill-error select,
.fill-error textarea {
	border-color: var(--rm-red) !important;
	background-color: #FFF6F5 !important;
}

.fill-error label,
.error-message {
	color: var(--rm-red);
}

div.error-message {
	margin: 0 0 var(--rm-s4);
}

.default-value {
	color: var(--rm-muted);
}

/* X-Cart's page messages ("Your personal details have been successfully
   accepted", errors, warnings): showTopMessage() (js/top_message.js)
   puts #top-message at the top of <body>, fades it in and - for info
   and warnings - out again. Its styling lived in main.css, so on this
   skin it showed as bare text above the header. Now a card at the top
   centre, coloured by type (message-i / -w / -e). */
#top-message {
	position: fixed;
	top: var(--rm-s4);
	left: 50%;
	z-index: 2000;
	width: min(30rem, calc(100vw - 2rem));
	margin: 0;
	padding: 0;
	transform: translateX(-50%);
}

#top-message .box {
	position: relative;
	padding: var(--rm-s4) var(--rm-s10) var(--rm-s4) var(--rm-s5);
	border-left: 4px solid var(--rm-blue);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-white);
	box-shadow: 0 10px 30px rgba(10, 48, 129, 0.18);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-sm);
	line-height: var(--rm-lh-snug);
	color: var(--rm-ink);
	text-align: left;
}

#top-message .message-w {
	border-left-color: var(--rm-gold);
}

#top-message .message-e {
	border-left-color: var(--rm-red);
}

#top-message a.close-link {
	position: absolute;
	top: 50%;
	right: var(--rm-s3);
	width: 1.75rem;
	height: 1.75rem;
	margin-top: -0.875rem;
}

#top-message a.close-link img {
	display: none;
}

#top-message a.close-link::before,
#top-message a.close-link::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.9rem;
	height: 2px;
	margin: -1px 0 0 -0.45rem;
	background: var(--rm-muted);
	transform: rotate(45deg);
}

#top-message a.close-link::after {
	transform: rotate(-45deg);
}

#top-message .anchor a {
	font-weight: 600;
	color: var(--rm-blue);
}

/* popup_open.js puts an empty message box at the top of every popup
   it loads and shows it only to report something - a wrong password,
   for one. Hidden by default in main.css too; without this it showed
   as an empty bar at the top of the sign-in popup. */
div.ajax-popup-error-message {
	display: none;
}


/* =============================================================
   3. BASE TYPOGRAPHY
   ============================================================= */
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--rm-s4);
	font-family: var(--rm-font-display);
	font-weight: 800;
	line-height: var(--rm-lh-tight);
	color: var(--rm-navy);
}

h1 { font-size: var(--rm-fs-h1); letter-spacing: var(--rm-ls-tight); }
h2 { font-size: var(--rm-fs-h2); letter-spacing: var(--rm-ls-tight); }
h3 { font-size: var(--rm-fs-h3); line-height: var(--rm-lh-snug); }
h4 { font-size: var(--rm-fs-h4); line-height: var(--rm-lh-snug); font-weight: 700; }

p {
	margin: 0 0 var(--rm-s4);
}

a {
	color: var(--rm-blue);
	text-decoration: none;
	transition: color var(--rm-transition);
}

a:hover {
	color: var(--rm-blue-dark);
	text-decoration: underline;
}

strong,
b {
	font-weight: 700;
}

small {
	font-size: var(--rm-fs-xs);
}

hr {
	height: 1px;
	margin: var(--rm-s8) 0;
	border: 0;
	background: var(--rm-line);
}


/* -------------------------------------------------------------
   Display helpers
   ------------------------------------------------------------- */

/* Oversized page/hero heading: "Bubble Mailers", "Checkout" */
.rm-display {
	margin: 0 0 var(--rm-s4);
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-hero);
	font-weight: 800;
	line-height: var(--rm-lh-tight);
	letter-spacing: var(--rm-ls-tight);
	color: var(--rm-navy);
}

/* Gold uppercase kicker above a display heading:
   "PROTECTIVE MAILING ENVELOPES" */
.rm-eyebrow {
	display: block;
	margin: 0 0 var(--rm-s5);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-eyebrow);
	font-weight: 700;
	letter-spacing: var(--rm-ls-eyebrow);
	text-transform: uppercase;
	color: var(--rm-gold);
}

/* Supporting copy under a hero heading */
.rm-lead {
	font-size: var(--rm-fs-lead);
	line-height: var(--rm-lh-body);
	color: var(--rm-ink-soft);
}

/* Centred section heading flanked by gold rules:
   "Shop by Category", "Complete your shipping station" */
.rm-section-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--rm-s6);
	margin: 0 0 var(--rm-s10);
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h2);
	font-weight: 800;
	letter-spacing: var(--rm-ls-tight);
	color: var(--rm-navy);
	text-align: center;
}

.rm-section-heading::before,
.rm-section-heading::after {
	content: "";
	flex: none;
	width: clamp(1.5rem, 7vw, 5.5rem);
	height: 3px;
	background: var(--rm-gold);
}


/* =============================================================
   4. LAYOUT
   ============================================================= */

/* --rm-container is the CONTENT width; gutters are added on top of it
   rather than eaten out of it, so the inner width stays predictable.
   No media query needed - the gutter is already fluid. */
.rm-container {
	width: 100%;
	max-width: calc(var(--rm-container) + (var(--rm-gutter) * 2));
	margin-inline: auto;
	padding-inline: var(--rm-gutter);
}

/* Narrow measure for running prose, so text never runs to a punishing
   line length inside a wide container. */
.rm-container--prose {
	max-width: calc(68ch + (var(--rm-gutter) * 2));
}

/* X-Cart's structural wrappers, neutralised.
   home.tpl nests #page-container > #page-container2 >
   #content-container > #content-container2 around everything, header
   and footer included. The redesign is full-bleed with .rm-container
   aligning content inside each band, so these must stop constraining
   width. The markup is untouched - only its CSS changes - so nothing
   hooking these ids breaks. */
#page-container,
#page-container2,
#content-container,
#content-container2,
#center,
#center-main {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
}

/* Separate mobile logo and scroll-to-top button: the redesigned header
   serves every width, and the reference has neither.

   .clearing is home.tpl's float clear between content and footer. The
   wrappers above no longer float, so it clears nothing - but it holds a
   &nbsp;, so it still pushed a stray line-height of white space in
   above the footer. */
#mobile-logo,
.clearing {
	display: none;
}

/* #back-top is gone from home.tpl, so this is a guard, not the fix -
   see the comment there. !important is deliberate and is the only
   thing that works here: the markup carries an inline display: block
   and lib/tpl_js/scripts.js toggles it inline on every scroll event,
   and an ordinary rule loses to both. It covers the stale page
   templates that still contain the element. */
#back-top {
	display: none !important;
}

/* Full-bleed band */
.rm-band {
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.rm-band--alt    { background: var(--rm-bg-alt); }
.rm-band--sunken { background: var(--rm-bg-sunken); }

.rm-band--navy {
	background: var(--rm-navy);
	color: var(--rm-white);
}

.rm-band--navy h1,
.rm-band--navy h2,
.rm-band--navy h3,
.rm-band--navy .rm-display {
	color: var(--rm-white);
}

/* Responsive auto-grid, for listings where the tile count is unknown. */
.rm-grid {
	display: grid;
	gap: var(--rm-s5);
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.rm-grid--3 {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Category grid: FOUR across on desktop, counted, not auto-filled.
   auto-fill was the bug in the first pass - it divides the available
   width by a minimum tile size, so a wide monitor produced five or six
   columns and the homepage stopped matching the reference at exactly
   the widths people review it on. The reference is four; this is four,
   stepping to three, two and one as the viewport narrows. */
.rm-cat-grid {
	display: grid;
	gap: var(--rm-s6);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 600px) {
	.rm-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
	.rm-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* =============================================================
   5. COMPONENTS
   ============================================================= */

/* -------------------------------------------------------------
   Buttons
   ------------------------------------------------------------- */
.rm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--rm-s2);
	/* The reference's CTAs are chunkier and squarer than the first pass:
	   deeper vertical padding, more horizontal, a 4px corner not 6px. */
	min-height: 3.375rem;   /* 54 */
	padding: 1.125rem var(--rm-s8);
	border: 1px solid transparent;
	border-radius: var(--rm-radius-sm);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-body);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--rm-transition),
	            border-color var(--rm-transition),
	            color var(--rm-transition);
}

.rm-btn:hover {
	text-decoration: none;
}

/* Gold - the primary commercial action. Used sparingly in the
   reference: Shop All Products, Proceed to Checkout, Place Order. */
.rm-btn--primary {
	background: var(--rm-gold);
	color: var(--rm-navy);
	font-weight: 700;
}

.rm-btn--primary:hover {
	background: var(--rm-gold-dark);
	color: var(--rm-navy);
}

/* Navy - secondary actions (Apply) */
.rm-btn--navy {
	background: var(--rm-navy);
	color: var(--rm-white);
}

.rm-btn--navy:hover {
	background: var(--rm-navy-soft);
	color: var(--rm-white);
}

/* Outlined - tertiary (Update Cart) */
.rm-btn--outline {
	background: transparent;
	border-color: var(--rm-navy);
	color: var(--rm-navy);
}

.rm-btn--outline:hover {
	background: var(--rm-navy);
	color: var(--rm-white);
}

.rm-btn--block {
	width: 100%;
}

.rm-btn[disabled],
.rm-btn--disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Arrow link: "Explore Custom Printing ->", "Continue Shopping" */
.rm-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-s2);
	font-size: var(--rm-fs-body);
	font-weight: 600;
	color: var(--rm-navy);
}

.rm-link-arrow:hover {
	color: var(--rm-blue);
}

.rm-link-arrow::after {
	content: "\2192";
	transition: transform var(--rm-transition);
}

.rm-link-arrow:hover::after {
	transform: translateX(3px);
}


/* -------------------------------------------------------------
   Cards
   ------------------------------------------------------------- */
.rm-card {
	display: flex;
	flex-direction: column;
	/* The reference's tiles are mostly picture: a tight 14px frame, not
	   the 20px the first pass used. */
	padding: 0.875rem;
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
	transition: border-color var(--rm-transition),
	            box-shadow var(--rm-transition);
}

/* Neutral hover. The gold border this used to draw read as a stray
   orange outline on whichever tile the cursor happened to be over. */
.rm-card--product:hover,
.rm-card--cat:hover {
	border-color: var(--rm-line);
	box-shadow: var(--rm-shadow);
}

/* Fixed-ratio image well keeps every tile in a row the same height
   regardless of the source image's proportions. */
.rm-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	margin-bottom: var(--rm-s3);
	overflow: hidden;
}

.rm-card__media img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Title and arrow share one row in the reference - the arrow sits hard
   right against the tile's inner edge, not on a line of its own
   underneath, which is what the first pass produced. */
.rm-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rm-s3);
	margin-top: auto;
}

.rm-card__title {
	margin: 0;
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	line-height: var(--rm-lh-snug);
	color: var(--rm-navy);
}

/* Drawn, not typed. The &rarr; glyph renders with a hairline head at
   14px in most UI faces and reads as a dash rather than an arrow. */
.rm-card__arrow {
	flex: none;
	display: block;
	width: 1.125rem;
	height: 1.125rem;
	fill: none;
	stroke: var(--rm-navy);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform var(--rm-transition);
}

.rm-card:hover .rm-card__arrow {
	transform: translateX(3px);
}

.rm-card__meta {
	margin: 0 0 var(--rm-s3);
	font-size: var(--rm-fs-xs);
	color: var(--rm-muted);
}

/* Panel: Order Summary, checkout column boxes */
.rm-panel {
	padding: var(--rm-s6);
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg);
}

.rm-panel__title {
	margin: 0 0 var(--rm-s5);
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h3);
	font-weight: 800;
	color: var(--rm-navy);
}


/* -------------------------------------------------------------
   Forms
   ------------------------------------------------------------- */
.rm-field {
	margin-bottom: var(--rm-s4);
}

.rm-label {
	display: block;
	margin-bottom: var(--rm-s1);
	font-size: var(--rm-fs-sm);
	font-weight: 500;
	color: var(--rm-ink);
}

/* The reference marks required fields with a coloured asterisk and
   labels optional ones in muted text - both are carried here. */
.rm-label__required {
	margin-left: 2px;
	color: var(--rm-red);
}

.rm-label__optional {
	color: var(--rm-muted);
	font-weight: 400;
}

.rm-input,
.rm-select,
.rm-textarea {
	display: block;
	width: 100%;
	min-height: var(--rm-tap-target);
	padding: var(--rm-s3) var(--rm-s4);
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	/* 16px floor: below this iOS Safari zooms the page on focus, which
	   is especially destructive mid-checkout. */
	font-size: max(1rem, var(--rm-fs-body));
	color: var(--rm-ink);
	transition: border-color var(--rm-transition),
	            box-shadow var(--rm-transition);
}

.rm-input::placeholder,
.rm-textarea::placeholder {
	color: var(--rm-muted);
}

.rm-input:focus,
.rm-select:focus,
.rm-textarea:focus {
	border-color: var(--rm-blue);
	box-shadow: 0 0 0 3px rgba(26, 79, 196, 0.12);
	outline: none;
}

.rm-input--error {
	border-color: var(--rm-red);
}

.rm-textarea {
	min-height: 6rem;
	resize: vertical;
}

/* Pill search field in the header. The reference's is taller than the
   first pass and carries a visible hairline, not a transparent one. */
.rm-search {
	display: flex;
	align-items: center;
	gap: var(--rm-s3);
	padding: var(--rm-s3) var(--rm-s6);
	background: var(--rm-bg-alt);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-pill);
}

.rm-search:focus-within {
	border-color: var(--rm-blue);
	background: var(--rm-white);
}

.rm-search input {
	flex: 1;
	min-width: 0;
	min-height: 1.75rem;
	background: none;
	border: 0;
	color: var(--rm-ink);
	font-family: var(--rm-font-text);
	font-size: max(1rem, var(--rm-fs-sm));
}

.rm-search input:focus {
	outline: none;
}


/* -------------------------------------------------------------
   Quantity stepper   [ - 1 + ]
   ------------------------------------------------------------- */
.rm-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	overflow: hidden;
}

.rm-qty__btn {
	width: var(--rm-tap-target);
	background: var(--rm-white);
	border: 0;
	color: var(--rm-navy);
	font-size: 1.125rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color var(--rm-transition);
}

.rm-qty__btn:hover {
	background: var(--rm-bg-alt);
}

.rm-qty__input {
	width: 3.25rem;
	border: 0;
	border-inline: 1px solid var(--rm-line);
	text-align: center;
	font-size: max(1rem, var(--rm-fs-body));
	font-weight: 600;
	-moz-appearance: textfield;
}

.rm-qty__input::-webkit-outer-spin-button,
.rm-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}


/* -------------------------------------------------------------
   Checkout step indicator   (1)--(2)--(3)
   ------------------------------------------------------------- */
.rm-steps {
	display: flex;
	align-items: center;
	gap: var(--rm-s2);
	flex-wrap: wrap;
	font-size: var(--rm-fs-sm);
}

.rm-steps__item {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-s2);
	color: var(--rm-muted);
}

.rm-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: var(--rm-radius-pill);
	background: var(--rm-line);
	color: var(--rm-ink-soft);
	font-size: var(--rm-fs-xs);
	font-weight: 700;
}

.rm-steps__item--done .rm-steps__num,
.rm-steps__item--active .rm-steps__num {
	background: var(--rm-navy);
	color: var(--rm-white);
}

.rm-steps__item--done,
.rm-steps__item--active {
	color: var(--rm-navy);
	font-weight: 600;
}

.rm-steps__rule {
	flex: none;
	width: clamp(1rem, 3vw, 2.5rem);
	height: 2px;
	background: var(--rm-line);
}


/* -------------------------------------------------------------
   Notices, prices
   ------------------------------------------------------------- */
.rm-notice {
	display: flex;
	align-items: center;
	gap: var(--rm-s3);
	padding: var(--rm-s4) var(--rm-s5);
	border-radius: var(--rm-radius);
	background: var(--rm-bg-alt);
	color: var(--rm-navy);
	font-weight: 600;
}

.rm-notice--success {
	background: rgba(0, 166, 80, 0.08);
	color: #06703A;
}

.rm-notice--error {
	background: rgba(217, 48, 37, 0.08);
	color: var(--rm-red);
}

.rm-price {
	font-family: var(--rm-font-display);
	font-weight: 800;
	color: var(--rm-navy);
}

.rm-free {
	color: var(--rm-green);
	font-weight: 700;
}


/* -------------------------------------------------------------
   Utilities
   ------------------------------------------------------------- */
.rm-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rm-stack > * + * { margin-top: var(--rm-s4); }
.rm-center       { text-align: center; }
.rm-nowrap       { white-space: nowrap; }




/* =============================================================
   6. SHELL - announcement bar, header, nav, footer
   Present on every page, so these land before any page styles.

   Sizes here were re-derived from the reference by measuring each
   element as a fraction of the artboard width, so they hold at any
   viewport rather than only at the width they were eyeballed on. The
   first pass under-scaled the whole header: the logo, the search field
   and the bar itself were all roughly two thirds of the reference.
   ============================================================= */

/* -------------------------------------------------------------
   Announcement bar
   ------------------------------------------------------------- */
.rm-announce {
	background: var(--rm-navy-dark);
	color: var(--rm-white);
	font-size: var(--rm-fs-xs);
	text-align: center;
	padding-block: 0.625rem;
}

/* -------------------------------------------------------------
   Same-day shipping countdown (the top bar - customer/head.tpl)
   Truck, "Time left for SAME-DAY SHIPPING", hours / minutes / seconds
   between hairlines, "for orders placed by 3PM PT". Colours sampled
   from the supplied header design.
   ------------------------------------------------------------- */
.rm-shipclock {
	padding-block: 0.625rem;
	background: linear-gradient(90deg, #0F4780 0%, #0B3E79 55%, #02356F 100%);
	text-align: left;
}

.rm-shipclock__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--rm-s4) var(--rm-s6);
}

.rm-shipclock__truck {
	flex: none;
	width: 3.25rem;
	height: auto;
	fill: none;
	stroke: var(--rm-white);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-shipclock__label {
	margin: 0;
	font-size: var(--rm-fs-sm);
	font-weight: 500;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--rm-white);
}

.rm-shipclock__label a {
	display: block;
	font-family: var(--rm-font-display);
	font-size: 1.375rem;
	font-weight: 800;
	color: var(--rm-gold);
	text-decoration: none;
}

.rm-shipclock__label a:hover {
	color: var(--rm-white);
}

/* Numbers between hairlines; a hairline before the first and after the
   last, as in the design. */
.rm-shipclock__time {
	display: flex;
	align-items: stretch;
	border-inline: 1px solid rgba(255, 255, 255, 0.35);
}

.rm-shipclock__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 4.5rem;
	padding-inline: var(--rm-s4);
	line-height: 1;
}

.rm-shipclock__unit + .rm-shipclock__unit {
	border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.rm-shipclock__num {
	font-family: var(--rm-font-display);
	font-size: 1.875rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--rm-white);
}

.rm-shipclock__lbl {
	margin-top: 0.3rem;
	font-size: var(--rm-fs-xs);
	color: rgba(255, 255, 255, 0.85);
}

.rm-shipclock__note {
	margin: 0;
	font-size: var(--rm-fs-lead);
	color: var(--rm-white);
}

.rm-shipclock__note strong {
	font-family: var(--rm-font-display);
	font-weight: 800;
	color: var(--rm-gold);
}

/* Until the script has run (or with no script), no dashes: just the
   message and the cutoff. */
.rm-shipclock:not(.rm-shipclock--live) .rm-shipclock__time {
	display: none;
}

/* Tablets: a little tighter. */
@media (max-width: 899px) {
	.rm-shipclock__inner {
		gap: var(--rm-s3) var(--rm-s4);
	}

	.rm-shipclock__truck {
		width: 2.5rem;
	}

	.rm-shipclock__unit {
		min-width: 3.5rem;
		padding-inline: var(--rm-s3);
	}

	.rm-shipclock__num {
		font-size: 1.5rem;
	}

	.rm-shipclock__note {
		font-size: var(--rm-fs-sm);
	}
}

/* Phones: label and numbers on one line, the cutoff under them; the
   truck goes. */
@media (max-width: 599px) {
	.rm-shipclock {
		padding-block: 0.5rem;
	}

	.rm-shipclock__inner {
		flex-wrap: wrap;
		gap: 0.3rem var(--rm-s3);
	}

	.rm-shipclock__truck {
		display: none;
	}

	.rm-shipclock__label {
		font-size: 0.6875rem;
	}

	.rm-shipclock__label a {
		font-size: 1rem;
	}

	.rm-shipclock__unit {
		min-width: 2.75rem;
		padding-inline: var(--rm-s2);
	}

	.rm-shipclock__num {
		font-size: 1.25rem;
	}

	.rm-shipclock__lbl {
		margin-top: 0.2rem;
		font-size: 0.625rem;
	}

	.rm-shipclock__note {
		flex-basis: 100%;
		font-size: var(--rm-fs-xs);
		text-align: center;
	}
}

/* -------------------------------------------------------------
   Header
   ------------------------------------------------------------- */
.rm-header {
	background: var(--rm-white);
	border-bottom: 1px solid var(--rm-line-soft);
}

/* Three tracks with equal side columns, so the search field lands on
   the page's true centre line whatever the logo and the account links
   happen to measure. A flex row cannot do this - it centres the search
   in the space LEFT OVER, which is why it sat left of centre before.

   The columns are assigned explicitly because the search is inside an
   {if} and is absent on cart and checkout; without that the actions
   would slide into the middle track on those pages. */
.rm-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--rm-s6);
	padding-block: var(--rm-s5);
}

.rm-header__inner > .rm-logo    { grid-column: 1; justify-self: start; }
.rm-header__inner > .rm-search  { grid-column: 2; }
.rm-header__inner > .rm-header__actions { grid-column: 3; justify-self: end; }

/* -------------------------------------------------------------
   Logo

   Sized by height; the asset is 700x102 so the width follows. The
   reference gives the logo roughly a quarter of the header width,
   which at 1280 is a 44px-tall lockup - about three times what the
   old squarish new-logo.png produced at the same height, and most of
   why the header read as a different design.
   ------------------------------------------------------------- */
.rm-logo {
	flex: none;
	display: block;
	line-height: 0;
	text-decoration: none;
}

.rm-logo:hover {
	text-decoration: none;
}

.rm-logo img {
	display: block;
	width: auto;
	height: clamp(2.25rem, 3.4vw, 3rem);   /* 36 -> 48 */
	/* The global img rule caps width at 100%; with the height fixed,
	   a squeezed header column then squashed the logo sideways. */
	max-width: none;
}

/* Fixed width in the centre track rather than a share of the slack.
   The side tracks are 1fr each, so this is dead centre on the page.
   30% narrower than the design's on request (was 280 -> 528px). */
.rm-header .rm-search {
	width: clamp(12.25rem, 28vw, 23.125rem);   /* 196 -> 370 */
	min-width: 0;
}

.rm-search__icon {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: var(--rm-muted);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-header__actions {
	display: flex;
	align-items: center;
	gap: var(--rm-s8);
}

.rm-action {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-s2);
	color: var(--rm-navy);
	font-size: var(--rm-fs-sm);
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}

.rm-action:hover {
	color: var(--rm-blue);
	text-decoration: none;
}

/* Signed in: "My account" in green, icon and label, as the old site's
   profile icon turned green once the customer was logged in */
.rm-action--member,
.rm-action--member:hover {
	color: var(--rm-green);
}

.rm-action--member .rm-action__icon {
	stroke-width: 2;
}

/* Thin outline icons, matching the reference. Font Awesome 4.7 has no
   outline cart, which is why these are inline SVG. */
.rm-action__icon {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Laptop widths. The header's centred-search layout needs room either
   side of the search; below these widths the logo and the actions keep
   their natural size and the search takes what is left instead.
   Signed out (phone number, Account, Cart) that is under 1280px.
   Signed in, with Rapid Re-Order as well, it is at every width - the
   four actions are wider than the side column even at 1920 - and
   under 1280px the Re-Order button shows only its bolt (its label
   stays for screen readers, and its title says what it does).
   Measured in a browser. */
@media (min-width: 900px) and (max-width: 1279px) {
	.rm-header__inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.rm-header .rm-search {
		width: 100%;
		max-width: 23.125rem;   /* 30% under the design's 33rem */
		justify-self: center;
	}
}

@media (min-width: 900px) {
	.rm-header--member .rm-header__inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.rm-header--member .rm-search {
		width: 100%;
		max-width: 23.125rem;   /* 30% under the design's 33rem */
		justify-self: center;
	}
}

@media (min-width: 900px) and (max-width: 1279px) {
	.rm-header--member .rm-action--reorder {
		padding: 0.4rem 0.55rem;
	}

	.rm-header--member .rm-action--reorder > span {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
}

/* Rapid Re-Order: a solid gold button, last in the row, as in the
   supplied header design - a navy outline bolt and navy label. */
/* Laptops: the actions sit closer together, so the search keeps a
   usable width beside four of them. */
@media (min-width: 900px) and (max-width: 1279px) {
	.rm-header__actions {
		gap: var(--rm-s5);
	}

	.rm-action--phone {
		font-size: 0.875rem;
	}
}

/* Signed in, 900-999px: the number shows as its icon only (still a
   tel: link, with the number in its title and for screen readers) -
   with four actions the search would otherwise drop below 150px. */
@media (min-width: 900px) and (max-width: 999px) {
	.rm-header--member .rm-action--phone > span {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
}

.rm-action--phone .rm-action__icon {
	width: 1.25rem;
	height: 1.25rem;
}

.rm-action--reorder {
	padding: 0.7rem 1rem;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-gold);
	color: var(--rm-navy);
	font-weight: 700;
}

.rm-action--reorder:hover {
	background: var(--rm-gold-dark);
	color: var(--rm-navy);
}

.rm-action--reorder .rm-action__icon {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

/* Cart count sits on the cart glyph. */
.rm-action__cart-icon {
	position: relative;
	display: inline-flex;
}

.rm-cart-count {
	position: absolute;
	top: -0.45rem;
	right: -0.55rem;
	min-width: 1.15rem;
	height: 1.15rem;
	padding-inline: 0.25rem;
	border-radius: var(--rm-radius-pill);
	background: var(--rm-gold);
	color: var(--rm-navy);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.15rem;
	text-align: center;
}

/* -------------------------------------------------------------
   Navigation

   Eight items sharing the bar equally, which is what puts the
   reference's dividers on an even rhythm - they are not positioned,
   they simply fall on each item's leading edge.

   Below 900px the items go back to their natural widths and the bar
   scrolls horizontally rather than collapsing behind a toggle:
   everything stays reachable and there is no JS to fail. The reference
   is desktop only, so that part is a design decision.
   ------------------------------------------------------------- */
/* position: relative so the mega menu (below) can hang off the whole
   bar. No z-index here on purpose: the search box's suggestion list
   drops down over this bar, and a z-index would put the bar on top. */
.rm-nav {
	position: relative;
	background: var(--rm-navy);
}

.rm-nav__list {
	display: flex;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.rm-nav__list::-webkit-scrollbar {
	display: none;
}

.rm-nav__list li {
	display: flex;
	flex: none;
	position: relative;
}

/* Hairline separators between items, matching the reference. */
.rm-nav__list li + li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 1.25rem;
	background: rgba(255, 255, 255, 0.22);
}

.rm-nav__list a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: var(--rm-s5) var(--rm-s4);
	color: var(--rm-white);
	font-size: 0.875rem;   /* 14 */
	font-weight: 600;
	letter-spacing: var(--rm-ls-nav);
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color var(--rm-transition);
}

.rm-nav__list a:hover {
	background: var(--rm-navy-soft);
	color: var(--rm-white);
	text-decoration: none;
}

/* Nine items since About Us joined. Each takes its own label's width
   plus an equal share of what is left (flex 1 1 auto) - strictly equal
   shares (flex 1 1 0) no longer fit: "Shopping Cart" and "My Account"
   need more than a ninth of the bar at laptop widths. Below 900px the
   items keep their natural widths and the bar scrolls, as on phones.
   overflow-x stays auto at every width as the backstop. */
@media (min-width: 900px) {
	.rm-nav__list li {
		flex: 1 1 auto;
	}
}

/* Under 1366px they run tighter - 13px, less letter-spacing, 8px each
   side - so the whole bar still fits from 1000px up, signed in or out
   (Logout / My Account are the longer pair); measured in a browser
   with a mouse, i.e. with the PRODUCTS chevron showing. */
@media (max-width: 1365px) {
	.rm-nav__list a {
		padding-inline: 0.5rem;
		font-size: 0.8125rem;
		letter-spacing: 0.03em;
	}
}

@media (max-width: 1099px) {
	.rm-nav__list a {
		padding-inline: 0.375rem;
		letter-spacing: 0.01em;
	}
}

/* -------------------------------------------------------------
   Mega menu - the panel under PRODUCTS (customer/rm_megamenu.tpl)

   Every category, live from the store, with its subcategories, in
   newspaper columns, and a Custom Printing card on the right.

   Hover and keyboard only, from 900px up on devices with a mouse
   ((hover: hover) - a touch screen reports none). Elsewhere the panel
   is not shown at all and PRODUCTS stays a plain link.

   Why the Products <li> goes position: static: the nav list scrolls
   sideways on small screens (overflow-x: auto), and a scrolling box
   clips anything positioned inside it. With the <li> static, the
   panel is positioned against .rm-nav - outside the list - so it is
   never clipped, and it spans the whole bar.

   Opening waits 120ms and closing 250ms, so passing over PRODUCTS on
   the way somewhere else does not flash it open, and a diagonal move
   from the link into the panel does not close it.
   ------------------------------------------------------------- */
.rm-mega {
	display: none;
}

@media (min-width: 900px) and (hover: hover) {
	.rm-nav__list li.rm-nav__item--mega {
		position: static;
	}

	/* a small chevron on PRODUCTS, so it reads as a menu */
	.rm-nav__item--mega > a::after {
		content: "";
		width: 0.4rem;
		height: 0.4rem;
		margin: -0.2rem 0 0 0.5rem;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform var(--rm-transition);
	}

	.rm-nav__item--mega:hover > a,
	.rm-nav__item--mega:focus-within > a {
		background: var(--rm-navy-soft);
	}

	.rm-nav__item--mega:hover > a::after,
	.rm-nav__item--mega:focus-within > a::after {
		margin-top: 0.2rem;
		transform: rotate(-135deg);
	}

	.rm-mega {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 60;
		background: var(--rm-white);
		border-top: 3px solid var(--rm-gold);
		box-shadow: 0 18px 40px rgba(10, 48, 129, 0.18);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-6px);
		transition: opacity 0.15s ease 0.25s,
		            transform 0.15s ease 0.25s,
		            visibility 0s linear 0.4s;
	}

	.rm-nav__item--mega:hover > .rm-mega,
	.rm-nav__item--mega:focus-within > .rm-mega {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.15s ease 0.12s,
		            transform 0.15s ease 0.12s,
		            visibility 0s linear 0.12s;
	}
}

.rm-mega__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--rm-s8);
	padding-block: var(--rm-s8) var(--rm-s10);
}

@media (min-width: 1200px) {
	.rm-mega__inner {
		grid-template-columns: minmax(0, 1fr) 16.5rem;
	}
}

.rm-mega__head {
	margin: 0 0 var(--rm-s5);
	font-size: var(--rm-fs-eyebrow);
	font-weight: 700;
	letter-spacing: var(--rm-ls-eyebrow);
	text-transform: uppercase;
	color: var(--rm-gold);
}

/* newspaper columns; a category never splits across two. Three, not
   four: Bubble Mailers alone fills a column, and with four the rest
   balanced into two and left the fourth nearly empty. */
.rm-mega__cols {
	columns: 3;
	column-gap: var(--rm-s8);
}

.rm-mega__group {
	break-inside: avoid;
	padding-bottom: var(--rm-s5);
}

/* the nav bar's link styles (uppercase, white, centred, padded) must
   not reach in here, hence the explicit resets */
.rm-nav .rm-mega a {
	display: inline;
	width: auto;
	padding: 0;
	background: none;
	color: var(--rm-navy);
	font-size: var(--rm-fs-sm);
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
	white-space: normal;
	text-decoration: none;
}

.rm-nav .rm-mega a:hover,
.rm-nav .rm-mega a:focus-visible {
	background: none;
	color: var(--rm-blue);
	text-decoration: underline;
}

.rm-nav .rm-mega a.rm-mega__cat {
	display: block;
	font-family: var(--rm-font-display);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
}

.rm-mega__subs {
	margin: var(--rm-s2) 0 0;
	padding: 0;
	list-style: none;
}

/* the nav's <li> rules (flex, dividers) must not reach these either */
.rm-nav .rm-mega__subs li {
	display: block;
	padding: 0.1875rem 0;
	line-height: 1.35;
}

.rm-nav .rm-mega__subs li::before {
	content: none;
}

.rm-nav .rm-mega__subs a {
	font-size: 0.875rem;
	color: var(--rm-ink-soft);
}

/* the Custom Printing card - wide screens only. Same weight as the
   link reset above, which would otherwise show it as an inline link. */
.rm-nav .rm-mega a.rm-mega__promo {
	display: none;
}

@media (min-width: 1200px) {
	.rm-nav .rm-mega a.rm-mega__promo {
		display: flex;
		flex-direction: column;
		gap: var(--rm-s1);
		align-self: start;
		padding: var(--rm-s4);
		border-radius: var(--rm-radius);
		background: var(--rm-bg-alt);
	}

	.rm-nav .rm-mega a.rm-mega__promo:hover {
		text-decoration: none;
		background: var(--rm-bg-sunken);
	}

	.rm-mega__promo img {
		display: block;
		width: 100%;
		height: auto;
		margin-bottom: var(--rm-s3);
		border-radius: var(--rm-radius-sm);
	}

	.rm-mega__promo-eyebrow {
		font-size: 0.75rem;
		font-weight: 700;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--rm-gold-dark);
	}

	.rm-mega__promo-title {
		font-family: var(--rm-font-display);
		font-size: 1.0625rem;
		font-weight: 800;
		line-height: 1.25;
		color: var(--rm-navy);
	}

	.rm-mega__promo-link {
		margin-top: var(--rm-s2);
		font-size: 0.875rem;
		font-weight: 600;
		color: var(--rm-blue);
	}

	.rm-mega__promo-link::after {
		content: " \2192";
	}
}

/* -------------------------------------------------------------
   Footer

   Brand block, then three link columns divided by hairline rules -
   the rules are in the reference and were missing from the first
   pass, which is most of why the footer read as a different design.
   ------------------------------------------------------------- */
.rm-footer {
	background: var(--rm-white);
	border-top: 1px solid var(--rm-line);
	/* Pages that end on ordinary content get breathing room above the
	   footer. The homepage ends on a full-bleed navy band, where that
	   gap would read as a white stripe, so it is zeroed there. */
	margin-top: var(--rm-s16);
}

body.homepage .rm-footer {
	margin-top: 0;
}

.rm-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 3.8fr);
	align-items: start;
	padding-block: var(--rm-s12);
}

.rm-footer__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-right: var(--rm-s8);
}

/* The footer lockup is a touch smaller than the header's. */
.rm-footer__brand .rm-logo img {
	height: clamp(2rem, 3vw, 2.625rem);   /* 32 -> 42 */
}

/* Four tracks: Shop takes two (its list runs in two columns), Customer
   Support and About Us one each. */
.rm-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rm-footer__col--shop {
	grid-column: span 2;
}

/* filled down the first column, then the second - eight, then seven */
.rm-footer__col--shop ul {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(8, auto);
	grid-auto-flow: column;
	column-gap: var(--rm-s6);
}

/* Indent on the left only. With padding on both sides the last column
   left a dead strip against the container edge and the three columns
   read as drifting left of the space they were given. */
.rm-footer__col {
	padding-left: var(--rm-s8);
	border-left: 1px solid var(--rm-line);
}

.rm-footer__col h4 {
	margin: 0 0 var(--rm-s4);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	color: var(--rm-navy);
}

.rm-footer__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--rm-s3);
}

/* a second heading in the same column - Customer Support > Resources */
.rm-footer__col .rm-footer__subhead {
	margin-top: var(--rm-s6);
}

.rm-footer__col a {
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--rm-navy);
	text-decoration: none;
}

.rm-footer__col a:hover {
	color: var(--rm-blue);
	text-decoration: underline;
}

.rm-footer__bar {
	border-top: 1px solid var(--rm-line);
}

.rm-footer__bar-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--rm-s3);
	padding-block: var(--rm-s5);
	font-size: var(--rm-fs-xs);   /* 13 */
	color: var(--rm-muted);
}

/* -------------------------------------------------------------
   Shell - narrow viewports

   Not in the reference (desktop only), so everything below this line
   is a design decision made from the desktop intent.
   ------------------------------------------------------------- */
@media (max-width: 899px) {
	/* Two tracks, and the search drops to a full-width second row
	   rather than being squeezed into the middle of a phone. */
	.rm-header__inner {
		grid-template-columns: auto 1fr;
		gap: var(--rm-s4);
	}

	.rm-header__inner > .rm-logo {
		grid-column: 1;
		grid-row: 1;
	}

	.rm-header__inner > .rm-header__actions {
		grid-column: 2;
		grid-row: 1;
	}

	.rm-header__inner > .rm-search {
		grid-column: 1 / -1;
		grid-row: 2;
		width: 100%;
	}

	.rm-header__actions {
		gap: var(--rm-s5);
	}

	/* Labels go; the icons carry it. Keeps logo + two actions on one
	   row at 360px. Hidden visually, not removed: display:none took
	   the Account and Cart links' only names away from screen readers. */
	.rm-action > span:not(.rm-action__cart-icon) {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	/* A signed-in customer has a third action (Rapid Re-Order), which
	   would push the row past the edge of a phone. The logo's track
	   may shrink instead: the logo scales down, never below the width
	   left beside the actions, and never above its normal size. */
	.rm-header__inner {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.rm-header__inner > .rm-logo {
		min-width: 0;
		max-width: 100%;
	}

	.rm-logo img {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 2.25rem;
	}

	.rm-action--reorder {
		padding: 0.4rem 0.55rem;
	}

	.rm-footer__inner {
		grid-template-columns: 1fr;
		gap: var(--rm-s8);
	}

	.rm-footer__brand {
		justify-content: flex-start;
		padding-right: 0;
	}

	.rm-footer__cols {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: var(--rm-s8);
	}

	/* Shop gets a row of its own, still two columns */
	.rm-footer__col--shop {
		grid-column: 1 / -1;
	}

	.rm-footer__col {
		padding-left: 0;
		border-left: 0;
	}
}

/* =============================================================
   7. HOMEPAGE
   ============================================================= */

/* -------------------------------------------------------------
   Hero

   The artwork bleeds off the right edge of the page in the reference
   and runs the full height of the band. The first pass put it in a
   box inside the container with equal padding all round, which is the
   single biggest reason the hero read as a different design.
   ------------------------------------------------------------- */
/* The band's vertical padding is a variable because the bleeding
   artwork cancels it with a negative margin to reach the band edges.
   Holding it in one place means a hero variant only has to restate
   --rm-hero-pad and the bleed still lands exactly. */
.rm-hero {
	--rm-hero-pad: clamp(2.5rem, 6vw, 5rem);
	background: var(--rm-bg-hero);
	overflow: hidden;
}

.rm-hero__inner {
	display: grid;
	gap: var(--rm-s10);
	align-items: center;
	padding-block: var(--rm-hero-pad);
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.rm-hero {
		--rm-hero-pad: clamp(3rem, 7vw, 6.5rem);
	}

	.rm-hero__inner {
		grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
		gap: var(--rm-s8);
	}
}

/* Reference spacing between eyebrow, headline, lead and buttons - all
   looser than the first pass. */
.rm-hero__title {
	margin-bottom: var(--rm-s6);
}

.rm-hero__copy .rm-lead {
	margin: 0;
	max-width: 34ch;
}

.rm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-s8);
	margin-top: var(--rm-s10);
}

.rm-hero__media {
	min-width: 0;
}

/* -------------------------------------------------------------
   Hero photograph

   The supplied image is 2:1 with the products in its right half
   (x 43%-98%) and white to their left. Framing by width:

     phones      4:3 crop anchored right - shows x 33%-100%, every
                 product in.
     900-1139    the column is too narrow for any crop to hold the
                 whole group, so the full image is shown, contained.
     1140 up     fills the column, anchored right - at 1280 that is
                 x 37%-100%, again every product.

   The photo's background is #FEFEFE and the band is grey. multiply
   turns that white into the band colour exactly, so there is no
   rectangle where the photo starts; the products darken by 3-5%,
   below what the eye picks up.
   ------------------------------------------------------------- */
.rm-hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: right center;
	mix-blend-mode: multiply;
}

@media (min-width: 900px) {
	.rm-hero__media--photo {
		position: relative;
	}

	.rm-hero__media--photo .rm-hero__img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		object-fit: contain;
	}
}

@media (min-width: 1140px) {
	.rm-hero__media--photo .rm-hero__img {
		object-fit: cover;
	}
}

/* Pull the media out to the page edge. Negative gutter rather than a
   viewport calculation, so it can never introduce a horizontal
   scrollbar; the band's overflow:hidden is the second belt. */
@media (min-width: 900px) {
	.rm-hero__media {
		margin-right: calc(var(--rm-gutter) * -1);
		margin-block: calc(var(--rm-hero-pad) * -1);
		align-self: stretch;
		display: flex;
	}

	.rm-hero__media > * {
		flex: 1;
	}
}

/* About Us: the factory photo. A real photo edge to edge, not a
   product shot on white - so no multiply blend (it would only darken
   it) and always cropped to fill, never contained. Anchored a little
   right of centre: the operator at the control panel stays in frame
   at every width, with machines either side. */
.rm-about-hero .rm-hero__img,
.rm-contact-hero .rm-hero__img {
	mix-blend-mode: normal;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: 58% center;
}

@media (min-width: 900px) {
	.rm-about-hero .rm-hero__media--photo .rm-hero__img,
	.rm-contact-hero .rm-hero__media--photo .rm-hero__img {
		object-fit: cover;
		object-position: 58% center;
	}
}

/* Both photos run to the window's right edge at every width, as the
   category heroes and the promo band do: past the container's 1440px
   the gutter alone stopped them ~175px short at 1920, leaving a strip
   of grey band. */
@media (min-width: 900px) {
	.rm-about-hero .rm-hero__media--photo,
	.rm-contact-hero .rm-hero__media--photo {
		margin-right: calc((100vw - min(100vw - 2 * var(--rm-gutter), var(--rm-container))) / -2);
	}
}

/* ...except on wide screens, as the category heroes: past 1570px the
   photo stops at the content's right edge and fades out at both
   sides, centred with the copy instead of against the window's edge. */
@media (min-width: 1570px) {
	.rm-about-hero .rm-hero__media--photo,
	.rm-contact-hero .rm-hero__media--photo {
		margin-right: 0;
	}

	.rm-about-hero .rm-hero__media--photo .rm-hero__img,
}

/* Contact Us: the support team photo, the same treatment. Anchored on
   the woman at the front, then the monitor beside her (the site on its
   screen): at 40% she stays whole from a phone to 1920 - measured at
   390, 1024 and 1440 - and narrower crops trim the monitor's right
   edge and the colleague at the far left, never her. */
.rm-contact-hero .rm-hero__img,
.rm-contact-hero .rm-hero__media--photo .rm-hero__img {
	object-position: 40% center;
}

/* -------------------------------------------------------------
   Hero, warehouse scene (homepage - the latest design)

   The photo - products in a blurred warehouse - fills the whole band,
   and a near-white veil runs from the left edge to just short of the
   products, so the headline reads as in the design. The picture's left
   part is blurred warehouse extended from the design's own (see the
   note in welcome.tpl); the veil covers most of it.

   The band's height comes from the copy, with a floor of 28.6vw - the
   photo's own proportion (1616 x 463) - so on wide screens the photo
   is never cropped top or bottom. On narrower ones it is cropped from
   the left, which is veil, never the products.
   ------------------------------------------------------------- */
.rm-hero--scene {
	--rm-hero-pad: clamp(2.5rem, 4vw, 4rem);
	position: relative;
	background: #FAFAFA;
}

.rm-hero--scene .rm-hero__img {
	mix-blend-mode: normal;
}

.rm-hero--scene .rm-link-arrow {
	text-decoration: underline;
	text-underline-offset: 0.3em;
	text-decoration-thickness: 1.5px;
}

/* Phones and tablets: the copy, then the products (the right-hand part
   of the picture) edge to edge down to the band's bottom, fading in at
   the top. */
@media (max-width: 899px) {
	.rm-hero--scene .rm-hero__media--scene {
		margin: 0 calc(var(--rm-gutter) * -1) calc(var(--rm-hero-pad) * -1);
	}

	.rm-hero--scene .rm-hero__img {
		aspect-ratio: 856 / 463;
		object-fit: cover;
		object-position: right center;
	}
}

@media (min-width: 900px) {
	.rm-hero--scene {
		display: flex;
		align-items: center;
		min-height: 28.6vw;
	}

	.rm-hero--scene .rm-hero__inner {
		flex: 1;
		grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
	}

	.rm-hero--scene .rm-hero__copy {
		position: relative;
		z-index: 1;
	}

	/* Two lines at every desktop width, as in the design. */
	.rm-hero--scene .rm-hero__title {
		font-size: clamp(2.5rem, 4.4vw, 4.25rem);
	}

	.rm-hero--scene .rm-hero__media--scene {
		position: absolute;
		inset: 0;
		margin: 0;
	}

	.rm-hero--scene .rm-hero__media--scene .rm-hero__img {
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		object-fit: cover;
		object-position: right center;
	}

	/* Small laptops: the photo is drawn larger relative to the page, so
	   the labels roll reaches under the copy - the link goes under the
	   button and the lead is kept short to stay clear of it. */
	@media (max-width: 1199px) {
		.rm-hero--scene .rm-hero__actions {
			flex-direction: column;
			align-items: flex-start;
			gap: var(--rm-s5);
		}

		.rm-hero--scene .rm-hero__copy .rm-lead {
			max-width: 28ch;
		}
	}

	.rm-hero--scene .rm-hero__media--scene::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg,
			rgba(250, 250, 250, 0.97) 0%,
			rgba(250, 250, 250, 0.9) 32%,
			rgba(250, 250, 250, 0.5) 46%,
			rgba(250, 250, 250, 0) 58%);
	}
}

/* -------------------------------------------------------------
   Hero, 20th-anniversary banner (homepage)

   The client's finished banner, shown whole and edge to edge: its
   lettering and button are part of the picture, so nothing may crop
   it. Its height simply follows the width (2051 x 767). Past 2051px
   (a wide screen, or zoomed out) it stops growing and sits centred on
   white - the client asked for white sides rather than the banner's
   own edge colours, which read as grey bars. The whole banner is one
   link (see welcome.tpl); phones get the lettering half.
   ------------------------------------------------------------- */
.rm-anniv {
	background: var(--rm-white);
}

.rm-anniv__link {
	display: block;
}

.rm-anniv__link:focus-visible {
	outline: 3px solid var(--rm-gold);
	outline-offset: -3px;
}

.rm-anniv__img {
	display: block;
	width: 100%;
	max-width: 2051px;
	height: auto;
	margin-inline: auto;
}

/* -------------------------------------------------------------
   Hero band - homepage hero (20 years) and the custom printing promo
   band (welcome.tpl, rm_promo_band.tpl)

   The client's two banners, lettering in the picture, shown whole and
   plain - no fades, no blur (client, 2026-10-11: "no need for fade,
   just smaller size is fine"). Shown whole at full width they were
   ~480px tall at 1440, too big next to the other pages' heroes
   (Contact 266, Custom Printing 338, categories 349), so each is set
   to that height instead - 24vw, 260px floor, 350 cap: 346px tall and
   1038px wide at 1440 - centred on white, as the anniversary banner
   was past its own width at the client's request.

   Then full width (2026-10-13, "squeezed" in a centred box): see
   .rm-hb__banner. Phones get a crop of the banner's lettering
   (homepage) or its copy (promo).
   ------------------------------------------------------------- */
.rm-hb {
	background: var(--rm-white);
}

/* the banner sits in the page's content column, its edges in line
   with the Shop by Category boxes at every width (client) - the same
   measure as .rm-container */
.rm-hb__link {
	display: block;
	width: 100%;
	max-width: calc(var(--rm-container) + (var(--rm-gutter) * 2));
	margin-inline: auto;
	padding-inline: var(--rm-gutter);
}

.rm-hb__link:focus-visible {
	outline: 3px solid var(--rm-gold);
	outline-offset: -3px;
}

/* Full width, edge to edge like the Contact Us hero, the client's
   banner exactly as supplied - no blur, no fade, nothing cropped
   (client, 2026-10-13). Full width at every screen size (client:
   "make sure the image is full width"); its height follows the width.
   Then "too big": the empty band above and below each banner's
   content is trimmed off (images/*-trim-*): the 20-years banner to
   2172 x 650 (logo and button whole), the promo to 2172 x 620 (530
   was too tight: the eyebrow touched the top edge and the box was
   clipped). */
.rm-hb {
	background: var(--rm-white);
}

.rm-hb__banner {
	display: block;
	width: 100%;
	height: auto;
}

/* Width: the content column, the same as the category boxes below
   (client, 2026-10-14: "even with the category boxes, on the 34 inch
   screen and all screens"). Height follows the banner's proportion -
   this replaced a 338px cap, which left the banner narrower than the
   boxes. */

/* phones: the lettering / copy crop, whole, full width */
@media (max-width: 599px) {
	.rm-hb__banner {
		height: auto;
		object-fit: contain;
	}
}

/* -------------------------------------------------------------
   Finished banners - Contact Us, Custom Printing, Register
   (images/banners/)

   The client's banners with the lettering in the picture, shown whole
   the way the anniversary banner is: height follows width, and past
   the banner's own width (the client's 34" screen) it stops growing
   and sits centred on white, its left and right edges faded so it
   does not end in a hard line. The real heading is in the page for
   search engines and screen readers (rm-sr-only). Phones get the
   lettering part (*-phone-780.jpg) so the headline stays readable.
   Each banner's own width is set where it is used (--rm-banner-w).
   ------------------------------------------------------------- */
.rm-banner {
	background: var(--rm-white);
}

.rm-banner--contact  { --rm-banner-w: 1833px; }
.rm-banner--custom   { --rm-banner-w: 1822px; }
.rm-banner--register { --rm-banner-w: 2171px; }

.rm-banner__link {
	display: block;
}

.rm-banner__link:focus-visible {
	outline: 3px solid var(--rm-gold);
	outline-offset: -3px;
}

.rm-banner__img {
	display: block;
	width: 100%;
	max-width: var(--rm-banner-w, 2172px);
	height: auto;
	margin-inline: auto;
}

/* the fade only once there is white beside the banner: Contact and
   Custom Printing are 1833 / 1822px wide, Register 2171 */
@media (min-width: 1840px) {
	.rm-banner--contact .rm-banner__img,
}


/* -------------------------------------------------------------
   Shop by Category - the heading on white, the tiles on a light grey
   band (#F2F3F5 in the design; --rm-bg-hero is the same grey), so the
   white cards stand off it.
   ------------------------------------------------------------- */
/* tightened on request ("a lot of free space"): 52 + 32px at 1440,
   now 28 + 16 */
.rm-cats__head {
	padding-block: clamp(1.25rem, 2vw, 1.75rem) clamp(0.75rem, 1.2vw, 1rem);
}

.rm-cats__head .rm-section-heading {
	margin-bottom: 0;
}

.rm-cats__band {
	padding-block: clamp(1.25rem, 2.5vw, 2rem) clamp(2rem, 3.5vw, 2.75rem);
	background: var(--rm-bg-hero);
}

/* On grey, the card's hairline border is not needed to separate it -
   white on grey does that - and it read as a grey box outline. */
.rm-cats__band .rm-card {
	border-color: transparent;
	box-shadow: 0 1px 2px rgba(10, 48, 129, 0.05);
}

.rm-cats__band .rm-card--cat:hover {
	border-color: transparent;
	box-shadow: var(--rm-shadow);
}

/* -------------------------------------------------------------
   Category grid - card is an anchor, so the whole tile is clickable
   ------------------------------------------------------------- */
a.rm-card {
	color: inherit;
	text-decoration: none;
}

a.rm-card:hover {
	text-decoration: none;
}

/* -------------------------------------------------------------
   Custom printing promo band

   A slim strip: copy left, artwork bleeding off the right. Cut to
   about 40% of its first height on request ("60% smaller") - about
   180px on desktop, from 450. To fit, the headline runs on one line,
   the lead and button share a row, and the photo is scaled to the
   band's height rather than setting it.
   ------------------------------------------------------------- */
.rm-promo {
	/* Band padding, and the distance from the container's content edge
	   to the window's right edge (the gutter, plus the side margin once
	   the container reaches its maximum width). The photo is pulled out
	   by both so it always meets the band's bottom and the page's right
	   edge. 100vw counts the scrollbar, so this overshoots by half a
	   scrollbar; overflow:hidden trims it. */
	--rm-promo-pad: clamp(1.25rem, 2.2vw, 1.75rem);
	--rm-promo-edge: calc((100vw - min(100vw - 2 * var(--rm-gutter), var(--rm-container))) / 2);
	overflow: hidden;
	padding-block: var(--rm-promo-pad);
	/* The photo's own backdrop, sampled from the supplied banner. Deeper
	   and greyer than --rm-navy; on --rm-navy the photo showed as a box. */
	background: #0E3868;
}

/* Photo column beside the copy at every width - stacked under it, as
   it used to be on phones, the photo alone was taller than the target
   for the whole band. */
.rm-promo__inner {
	display: grid;
	gap: var(--rm-s4);
	align-items: center;
	grid-template-columns: minmax(0, 1fr) minmax(0, 34%);
}

@media (min-width: 900px) {
	.rm-promo__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
		gap: var(--rm-s8);
	}
}

/* eyebrow and headline full width; lead and button share a row,
   wrapping under each other only when there is no room */
.rm-promo__copy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-s3) var(--rm-s6);
}

.rm-promo__copy .rm-eyebrow,
.rm-promo__title {
	flex: 1 0 100%;
}

.rm-promo__copy .rm-eyebrow {
	margin: 0 0 calc(-1 * var(--rm-s2));
}

.rm-promo__title {
	margin: 0;
	font-family: var(--rm-font-display);
	font-size: clamp(1.25rem, 0.8rem + 1.6vw, 2.125rem);   /* 20 -> 34 */
	font-weight: 800;
	line-height: var(--rm-lh-tight);
	letter-spacing: var(--rm-ls-tight);
	color: var(--rm-white);
}

/* The template breaks the headline in two for the old tall band; on
   one line from tablet up (the space before the <br> keeps the words
   apart when it is hidden). */
@media (min-width: 700px) {
	.rm-promo__title br {
		display: none;
	}
}

.rm-promo__lead {
	margin: 0;
	font-size: var(--rm-fs-body);
	color: rgba(255, 255, 255, 0.88);
}

.rm-promo .rm-btn {
	min-height: 2.75rem;
	padding: 0.625rem var(--rm-s6);
	font-size: var(--rm-fs-sm);
}

/* Phones: lead dropped - the eyebrow and headline say it - and the
   eyebrow and button tightened so neither wraps, so the strip stays
   short. */
@media (max-width: 599px) {
	.rm-promo__lead {
		display: none;
	}

	.rm-promo__copy .rm-eyebrow {
		font-size: 0.6875rem;
		letter-spacing: 0.12em;
	}

	.rm-promo .rm-btn {
		min-height: 2.5rem;
		padding: 0.5rem var(--rm-s4);
		white-space: nowrap;
	}
}

/* The photo runs to the window's right edge and the band's top and
   bottom, so the shelf meets the page edge rather than stopping short
   inside the band. */
.rm-promo__media {
	position: relative;
	align-self: stretch;
	min-width: 0;
	margin-right: calc(var(--rm-promo-edge) * -1);
	margin-block: calc(var(--rm-promo-pad) * -1);
}

/* Out of the flow, so the photo follows the band's height (set by the
   copy) instead of setting it - in the flow, a 24rem-wide photo alone
   made the band ~270px tall. */
.rm-promo__media > * {
	position: absolute;
	inset: 0;
}

/* Stretched to the band's height, the photo is contained, not cropped -
   cropping cut the tops off the mailers. It sits on the band's bottom
   and right edges, where the table surface and the shelf meet the page
   edge. Any spare room falls left of it, and the file's own left and
   top edges are already faded to the band colour, so there is no seam
   there either. */
.rm-promo__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: contain;
	object-position: right bottom;
}

/* Wide screens (past the page's 1440px content plus gutters): the photo
   stopped at the WINDOW's right edge, so on a 32" monitor (2560px) it
   sat ~700px away from the copy - "completely to the right" (reported).
   From there it ends at the content's right edge instead, in line with
   the category tiles above it, and its right edge - where the white
   shelf would otherwise stop dead in the navy - fades into the band. */
@media (min-width: 1570px) {
	.rm-promo__media {
		margin-right: 0;
	}

}

/* -------------------------------------------------------------
   Newsletter sign-up - "Royalmailers Email Specials"
   (rm_newsletter_band.tpl, above the footer on the main shopping
   pages - customer/bottom.tpl lists them)

   Built to the client's design (2026-10-25), a 2170 x 478 band. From
   1200px up the band IS the design, scaled: --u is one design pixel
   (the card is 2170 of them wide) and every position, size and font
   size there is a count of them, so the layout cannot drift at any
   width. The card is the size container, which makes --u exact;
   browsers without container units get the same figure from the
   viewport. Sizes were matched to the design by measuring a render at
   2170 device pixels against it: every element lands within 3 design
   pixels. The lettering is Urbanist, the closest free match to the
   design's font (Montserrat ran 25% wider); the yellow is the
   design's own, not the site's gold.

   Under 1200px the design's box would drop below 44px and the
   placeholder would not fit, so the copy and the form sit side by
   side (900-1199) or stack (below 900) on the waves - the left half of
   the same picture - and the products are left out.
   ------------------------------------------------------------- */
/* White above and below the card. A page that ends on the custom
   printing promo (the homepage, categories that list subcategories)
   stacks the two bands close, as in the design. Elsewhere the full gap
   keeps a page ending on a grey section from meeting the band in a
   thin white line. */
.rm-news {
	padding-block: var(--rm-s12);
	background: var(--rm-white);
}

body:has(.rm-hb--promo:last-child) .rm-news {
	padding-top: var(--rm-s3);
}

/* The band ends the page, so the footer's own gap for pages that end
   on content (see .rm-footer) would double the white under it. */
.rm-news ~ .rm-footer {
	margin-top: 0;
}

.rm-news__card {
	--rm-news-yellow: #FDB820;
	--rm-news-font: 'Urbanist', var(--rm-font-display);
	--u: calc(100cqw / 2170);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	container-type: inline-size;
	padding: clamp(1.75rem, 6vw, 2.75rem) clamp(1.25rem, 5vw, 3rem);
	background: #0A4FBF;
	color: var(--rm-white);
}

@supports not (width: 1cqw) {
	.rm-news__card {
		--u: calc(min(100vw - 2 * var(--rm-gutter), var(--rm-container)) / 2170);
	}
}

/* stacked: twice the card's width, so only the plain waves show */
.rm-news__bg {
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	width: 200%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: 0 50%;
}

.rm-news__copy {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: var(--rm-s4);
}

.rm-news__icon {
	display: block;
	width: clamp(3.25rem, 2.5rem + 3vw, 4.5rem);
	height: auto;
}

.rm-news__title {
	margin: 0;
	font-family: var(--rm-news-font);
	font-size: clamp(1.5rem, 1.05rem + 3vw, 2.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: var(--rm-white);
}

.rm-news__accent {
	display: block;
	color: var(--rm-news-yellow);
}

.rm-news__lead {
	grid-column: 1 / -1;
	margin: var(--rm-s4) 0 0;
	font-family: var(--rm-news-font);
	font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.25rem);
	font-weight: 500;
	line-height: 1.35;
	color: var(--rm-white);
}

/* the design's line break, desktop only */
.rm-news__br {
	display: none;
}

.rm-news__form {
	max-width: 34rem;
	margin: var(--rm-s6) 0 0;
}

.rm-news__field {
	display: flex;
	align-items: stretch;
	height: 3.25rem;
	overflow: hidden;
	border-radius: 8px;
	background: var(--rm-white);
}

.rm-news__field[hidden] {
	display: none;
}

.rm-news__field:focus-within {
	outline: 3px solid #FFE08A;
	outline-offset: 2px;
}

.rm-news__mail {
	flex: none;
	align-self: center;
	width: 1.375rem;
	height: auto;
	margin-left: var(--rm-s4);
	fill: none;
	stroke: #8A9AC0;
	stroke-width: 2.6;
	stroke-linejoin: round;
}

/* never under 16px, so iOS does not zoom the page when it is tapped */
.rm-news__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 var(--rm-s3);
	border: 0;
	background: transparent;
	font-family: var(--rm-news-font);
	font-size: 1rem;
	font-weight: 500;
	color: var(--rm-ink);
}

.rm-news__input:focus {
	outline: none;
}

.rm-news__input::placeholder {
	color: #7A7F87;
	opacity: 1;
}

.rm-news__btn {
	flex: none;
	padding: 0 var(--rm-s6);
	border: 0;
	background: var(--rm-news-yellow);
	font-family: var(--rm-news-font);
	font-size: 1.0625rem;
	font-weight: 700;
	color: #0B2F6E;
	cursor: pointer;
	transition: background-color var(--rm-transition);
}

.rm-news__btn:hover {
	background: #F0A80F;
}

.rm-news__btn[disabled] {
	cursor: progress;
	opacity: 0.85;
}

.rm-news__note {
	margin: var(--rm-s3) 0 0;
	font-family: var(--rm-news-font);
	font-size: var(--rm-fs-sm);
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	color: var(--rm-white);
}

.rm-news__note--error {
	font-weight: 600;
	color: #FFD9D4;
}

/* after signing up: a white box where the email box was, so the
   message sits in the same place and never runs over the picture */
.rm-news__note--done {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 3.25rem;
	margin: 0;
	padding: var(--rm-s2) var(--rm-s4);
	border-radius: 8px;
	background: var(--rm-white);
	font-size: var(--rm-fs-sm);
	text-align: left;
	color: var(--rm-ink-soft);
}

.rm-news__note--done strong {
	display: block;
	font-size: 1.2em;
	font-weight: 700;
	color: #0B2F6E;
}

/* phones: the box's envelope goes so the placeholder fits whole */
@media (max-width: 699px) {
	.rm-news__mail {
		display: none;
	}

	.rm-news__input {
		padding-left: var(--rm-s4);
	}

	.rm-news__btn {
		padding-inline: var(--rm-s5);
	}
}

/* the smallest phones (360): a little tighter still. The box itself
   stays 16px; only the placeholder is smaller. */
@media (max-width: 379px) {
	.rm-news__input {
		padding-right: var(--rm-s2);
	}

	.rm-news__input::placeholder {
		font-size: 0.9375rem;
	}

	.rm-news__btn {
		padding-inline: var(--rm-s4);
	}
}

/* under 360 (320 phones, a folded Galaxy Fold) the placeholder cannot
   fit beside the button, so the button goes under the box */
@media (max-width: 359px) {
	.rm-news__field {
		flex-wrap: wrap;
		height: auto;
		overflow: visible;
		background: transparent;
	}

	.rm-news__field:focus-within {
		outline: none;
	}

	.rm-news__input {
		flex-basis: 100%;
		height: 3.25rem;
		border-radius: 8px;
		background: var(--rm-white);
	}

	.rm-news__input:focus {
		outline: 3px solid #FFE08A;
		outline-offset: 2px;
	}

	.rm-news__btn {
		flex-basis: 100%;
		height: 3rem;
		margin-top: var(--rm-s2);
		border-radius: 8px;
	}
}

/* small laptops and tablets on their side: copy and form side by side */
@media (min-width: 900px) and (max-width: 1199px) {
	.rm-news__card {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
		column-gap: var(--rm-s8);
	}

	.rm-news__form {
		margin: 0;
	}
}

/* the design, in design pixels */
@media (min-width: 1200px) {
	.rm-news__card {
		aspect-ratio: 2170 / 478;
		padding: 0;
	}

	.rm-news__bg {
		width: 100%;
		object-position: 50% 50%;
	}

	.rm-news__icon {
		position: absolute;
		left: calc(68 * var(--u));
		top: calc(96 * var(--u));
		width: calc(163 * var(--u));
	}

	.rm-news__title {
		position: absolute;
		left: calc(268 * var(--u));
		top: calc(57 * var(--u));
		font-size: calc(74 * var(--u));
		line-height: 1;
		letter-spacing: 0;
	}

	.rm-news__accent {
		margin-top: calc(4 * var(--u));
		font-size: calc(86 * var(--u));
	}

	.rm-news__lead {
		position: absolute;
		left: calc(69 * var(--u));
		top: calc(244 * var(--u));
		margin: 0;
		font-size: calc(41.2 * var(--u));
		line-height: calc(50 * var(--u));
	}

	.rm-news__br {
		display: inline;
	}

	.rm-news__form {
		position: absolute;
		left: calc(900 * var(--u));
		top: calc(208 * var(--u));
		width: calc(793 * var(--u));
		max-width: none;
		margin: 0;
	}

	.rm-news__field {
		height: calc(87 * var(--u));
		border-radius: calc(10 * var(--u));
	}

	.rm-news__mail {
		width: calc(39 * var(--u));
		margin-left: calc(26 * var(--u));
	}

	.rm-news__input {
		padding: 0 calc(16 * var(--u)) 0 calc(30 * var(--u));
		font-size: max(1rem, calc(26 * var(--u)));
	}

	.rm-news__btn {
		width: calc(280 * var(--u));
		padding: 0;
		font-size: calc(33.5 * var(--u));
	}

	/* centred under the white part of the box, as in the design */
	.rm-news__note {
		width: calc(513 * var(--u));
		padding-left: calc(18 * var(--u));
		margin-top: calc(17 * var(--u));
		font-size: max(0.8125rem, calc(27.3 * var(--u)));
	}

	.rm-news__note--done {
		width: auto;
		min-height: calc(87 * var(--u));
		margin-top: 0;
		padding: calc(10 * var(--u)) calc(30 * var(--u));
		border-radius: calc(10 * var(--u));
		font-size: max(0.875rem, calc(25 * var(--u)));
	}
}

/* news.php?mode=subscribed / unsubscribed - X-Cart's own confirmation
   pages (customer/main/subscribe_confirmation.tpl, unsubscribe_
   confirmation.tpl). The first is seen only when the band's script did
   not run; the second by anyone using an email's unsubscribe link. */
.rm-news-thanks {
	max-width: 40rem;
	margin: 0 auto;
	padding: var(--rm-s12) var(--rm-gutter) var(--rm-s16);
	text-align: center;
	font-size: var(--rm-fs-lead);
	line-height: var(--rm-lh-body);
	color: var(--rm-ink-soft);
}

.rm-news-thanks h1 {
	margin-bottom: var(--rm-s4);
	font-size: var(--rm-fs-h2);
}

.rm-news-thanks strong {
	color: var(--rm-ink);
}

.rm-news-thanks__back {
	margin: var(--rm-s8) 0 0;
}


/* =============================================================
   8. CATEGORY PAGE
   ============================================================= */

/* -------------------------------------------------------------
   Breadcrumb
   ------------------------------------------------------------- */
.rm-crumbs {
	background: var(--rm-white);
	padding-block: var(--rm-s4);
}

.rm-crumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-s2);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--rm-fs-xs);
}

.rm-crumbs__item {
	display: flex;
	align-items: center;
	gap: var(--rm-s2);
	color: var(--rm-navy);
}

/* Separator drawn here rather than emitted by the template - the
   store's breadcrumbs_separator setting is "::" and is shared with
   live. See the note in customer/bread_crumbs.tpl. */
.rm-crumbs__item + .rm-crumbs__item::before {
	content: "/";
	color: var(--rm-muted);
}

.rm-crumbs__item a {
	color: var(--rm-navy);
	text-decoration: none;
}

.rm-crumbs__item a:hover {
	text-decoration: underline;
}

.rm-crumbs__item--current {
	color: var(--rm-ink-soft);
}

/* -------------------------------------------------------------
   Category hero

   Same band as the homepage hero, set shorter: the heading is a
   category name rather than a slogan, and there is no button row
   under it, so the reference gives it noticeably less height.
   ------------------------------------------------------------- */
@media (min-width: 900px) {
	.rm-cat-hero {
		--rm-hero-pad: clamp(2rem, 4.5vw, 3.5rem);
	}
}

.rm-cat-hero__title {
	margin-bottom: var(--rm-s4);
	font-size: var(--rm-fs-h1);
}

.rm-cat-hero .rm-lead {
	max-width: 46ch;
}

/* -------------------------------------------------------------
   Category hero photo (customer/main/rm_cat_hero_img.tpl)

   A photograph fills the slot right of the copy, cropped to fill and
   held on its subject by the object-position the template sets, and
   fades into the band over its first quarter - so the light left side
   of a photo (the Poly Mailers one especially) reads as part of the
   band, as in the supplied hero design. Phones: under the copy, edge
   to edge, fading in at the top.

   A product shot on white ("cutout") is shown whole instead, and its
   white drops out against the grey band (multiply).
   ------------------------------------------------------------- */
.rm-cat-hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

@media (max-width: 899px) {
	.rm-hero__media--cat {
		margin: 0 calc(var(--rm-gutter) * -1) calc(var(--rm-hero-pad) * -1);
	}
}

@media (min-width: 900px) {
	/* to the window's right edge at every width, as the promo band
	   does (see .rm-promo): past the container's 1440px the gutter
	   alone stopped the photo ~200px short. 100vw counts the
	   scrollbar; the band's overflow:hidden trims the overshoot. */
	.rm-hero__media--cat {
		position: relative;
		margin-right: calc((100vw - min(100vw - 2 * var(--rm-gutter), var(--rm-container))) / -2);
	}

	.rm-hero__media--cat .rm-cat-hero__img {
		position: absolute;
		inset: 0;
		height: 100%;
		aspect-ratio: auto;
	}
}

/* Wide screens (the client's 34" ultrawide, 3440px): running to the
   window's edge put the photo hard against the right of the screen,
   up to ~1000px from the copy, which stays in the centred container.
   Past 1570px - where the container stops growing - the photo stops
   at the content's right edge, in line with the tiles below (as the
   promo band was set for the 32" screen), and fades out on that side
   too, so the hero reads as one centred piece on the grey band. */
@media (min-width: 1570px) {
	.rm-hero__media--cat {
		margin-right: 0;
	}

}

.rm-hero__media--cutout .rm-cat-hero__img {
	aspect-ratio: 3 / 2;
	object-fit: contain;
	mix-blend-mode: multiply;
}

@media (max-width: 899px) {
	.rm-hero__media--cutout {
		margin: 0;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

/* An absolutely positioned image ignores its right offset when its
   width is auto (it takes its own proportions and sits at the left),
   so the box is sized explicitly: the slot less the page gutter on the
   right, the photo centred and contained in it. */
@media (min-width: 900px) {
	.rm-hero__media--cutout .rm-cat-hero__img {
		inset: 6% auto 6% 0;
		width: calc(100% - var(--rm-gutter));
		height: 88%;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

/* Poly Mailers: Lightweight | Waterproof | Tear-resistant, in place of
   the shipping line, as the supplied hero design has it */
/* one row at every width (measured from 360 up): padding and type
   shrink with the copy column rather than letting the third wrap */
.rm-heroicons {
	display: flex;
	flex-wrap: nowrap;
	margin: var(--rm-s8) 0 0;
	padding: 0;
	list-style: none;
}

.rm-heroicons li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--rm-s2);
	padding: 0 clamp(0.75rem, 1.6vw, 1.75rem);
	font-size: clamp(0.6875rem, 0.62rem + 0.25vw, 0.8125rem);   /* 11 -> 13 */
	font-weight: 700;
	letter-spacing: 0.04em;
	white-space: nowrap;
	text-transform: uppercase;
	color: var(--rm-navy);
}

.rm-heroicons li:first-child {
	padding-left: 0;
}

.rm-heroicons li + li {
	border-left: 1px solid #C8D0DC;
}

.rm-heroicons svg {
	width: 2.25rem;
	height: 2.25rem;
	fill: none;
	stroke: var(--rm-navy);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* "Free shipping on every order" */
.rm-shipnote {
	display: flex;
	align-items: center;
	gap: var(--rm-s3);
	margin: var(--rm-s8) 0 0;
	font-size: var(--rm-fs-lead);
	font-weight: 700;
	color: var(--rm-navy);
}

.rm-shipnote__icon {
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	fill: none;
	stroke: var(--rm-blue);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* -------------------------------------------------------------
   Subcategory grid

   Reuses .rm-cat-grid and .rm-card. The difference from a homepage
   tile is the body: the title can run to two lines and the "Shop
   Sizes" link sits under it, pushed to the bottom so the links line
   up across a row whatever the titles do.
   ------------------------------------------------------------- */
.rm-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: var(--rm-s3);
}

.rm-card__body .rm-card__title {
	margin: 0;
}

.rm-card__cta {
	display: flex;
	align-items: center;
	gap: var(--rm-s2);
	margin-top: auto;
	font-size: var(--rm-fs-sm);
	font-weight: 600;
	color: var(--rm-navy);
}

.rm-card:hover .rm-card__cta .rm-card__arrow {
	transform: translateX(3px);
}

/* The tile images are product shots on white, so they want room to
   breathe rather than filling the well edge to edge. */
.rm-subcats .rm-card__media {
	aspect-ratio: 1 / 1;
	padding: var(--rm-s2);
}


/* =============================================================
   9. PRODUCT LISTING  (category pages with no subcategories)

   CSS ONLY. Not one line of customer/main/products_list.tpl,
   buy_now_simple.tpl or navigation.tpl changed - every form, hidden
   input, name, id and inline handler in the add-to-cart path is
   exactly as it was. This section only gives the existing markup a
   layout and the design's typography.

   The markup is a wholesale matrix, one card per product:

     .item_row
       .prod_image     the Details button (and a thumbnail, but only
                       for products with no variants - every product
                       in these eleven categories has variants, so in
                       practice this column is the button alone)
       .prod_details
         .prod_name
         .wholesale-info > table
             tr.whole_sale_iamge    variant photos
             tr.wholesale_head      variant labels - "25 Pieces"
             tr.wholesale_values    price + add-to-cart per variant

   Scoped to .list-product and .products-dialog rather than to
   .dialog or .button, which the cart, checkout and account pages
   share.
   ============================================================= */

/* The listing sits outside .rm-container - it comes from X-Cart's
   dialog include - so the container's measurements are restated here
   rather than the markup being rewrapped. */
.products-dialog {
	width: 100%;
	max-width: calc(var(--rm-container) + (var(--rm-gutter) * 2));
	margin-inline: auto;
	padding-inline: var(--rm-gutter);
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* -------------------------------------------------------------
   Product card
   ------------------------------------------------------------- */
.list-product {
	display: grid;
	gap: var(--rm-s5);
}

.list-product .item_row {
	display: grid;
	gap: var(--rm-s5);
	grid-template-columns: minmax(0, 1fr);
	padding: var(--rm-s6);
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
}

/* Details button to the top right, name and matrix taking the rest.
   The template emits .prod_image first; placing both explicitly puts
   it where the layout wants it without touching the markup. */
@media (min-width: 720px) {
	.list-product .item_row {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: start;
		gap: var(--rm-s6);
	}

	.list-product .item_row > .prod_details {
		grid-column: 1;
		grid-row: 1;
	}

	.list-product .item_row > .prod_image {
		grid-column: 2;
		grid-row: 1;
	}
}

.list-product .prod_image {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--rm-s3);
}

/* Present only for products without variants. */
.list-product .product_alter_nate img {
	max-width: 150px;
	height: auto;
}

.list-product .prod_name {
	margin: 0 0 var(--rm-s2);
}

.list-product .prod_name a {
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h3);
	font-weight: 700;
	line-height: var(--rm-lh-snug);
	color: var(--rm-navy);
	text-decoration: none;
}

.list-product .prod_name a:hover {
	color: var(--rm-blue);
	text-decoration: underline;
}

/* Details: the outline tertiary button from the design system. The
   element is a <div> with an onclick wrapping an <a>, so the anchor
   is stretched to fill it rather than either being restyled alone. */
.list-product .details_button .button {
	display: inline-flex;
	cursor: pointer;
}

.list-product .details_button .button a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: var(--rm-s3) var(--rm-s6);
	border: 1px solid var(--rm-navy);
	border-radius: var(--rm-radius-sm);
	color: var(--rm-navy);
	font-size: var(--rm-fs-sm);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--rm-transition),
	            color var(--rm-transition);
}

.list-product .details_button .button a:hover {
	background: var(--rm-navy);
	color: var(--rm-white);
	text-decoration: none;
}

/* -------------------------------------------------------------
   Search page (customer/main/search_result.tpl)

   The heading, result count and search form had no container and the
   browser's own form styling. Results: search never carries the
   wholesale matrix (checked across bubble, poly, tape, label, box),
   so each result is photo, name and Details - a card grid rather than
   the tall, mostly empty listing rows.
   ------------------------------------------------------------- */
.rm-search-page__head {
	padding-top: var(--rm-s6);
}

.rm-search-page__title {
	margin: 0 0 var(--rm-s3);
	font-size: var(--rm-fs-h1);
}

.rm-search-page__lead {
	max-width: 60ch;
	margin: 0 0 var(--rm-s6);
	color: var(--rm-ink-soft);
}

.rm-search-page .results-found {
	color: var(--rm-ink-soft);
}

.rm-search-page .search-again {
	margin-top: var(--rm-s2);
}

.rm-search-page .search-again a,
.rm-search-page__lead a {
	color: var(--rm-blue);
	font-weight: 600;
}

.rm-search-page .products-dialog {
	padding-top: var(--rm-s4);
}

/* the search form: label column and fields, kept as the store's table */
.rm-search-page .adv-search {
	max-width: 46rem;
	margin-bottom: var(--rm-s10);
	padding: var(--rm-s6);
	background: var(--rm-bg-alt);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
}

.rm-search-page .adv-search .title {
	display: none;
}

.rm-search-page .adv-search table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 var(--rm-s3);
}

.rm-search-page .adv-search td {
	padding: 0 var(--rm-s3) 0 0;
	vertical-align: middle;
}

.rm-search-page .adv-search td.data-name {
	width: 1%;
	white-space: nowrap;
	font-weight: 600;
	color: var(--rm-navy);
}

.rm-search-page .adv-search input[type=text],
.rm-search-page .adv-search select {
	width: 100%;
	min-height: 2.75rem;
	padding: 0 var(--rm-s3);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-white);
	font: inherit;
	color: var(--rm-ink);
}

.rm-search-page .adv-search input[size] {
	width: 7rem;
}

.rm-search-page .adv-search label {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-s2);
	margin-right: var(--rm-s4);
	white-space: nowrap;
}

.rm-search-page .adv-search .search-button,
.rm-search-page .adv-search td.button-row {
	width: 1%;
	white-space: nowrap;
}

.rm-search-page .adv-search input[type=submit],
.rm-search-page .adv-search button {
	min-height: 2.75rem;
	padding: 0 var(--rm-s6);
	border: 0;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-navy);
	color: var(--rm-white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.rm-search-page .adv-search a {
	color: var(--rm-blue);
}

/* phones: label above its field, no label column */
@media (max-width: 599px) {
	.rm-search-page .adv-search table,
	.rm-search-page .adv-search tbody,
	.rm-search-page .adv-search tr,
	.rm-search-page .adv-search td {
		display: block;
		width: auto;
	}

	.rm-search-page .adv-search td {
		padding: 0 0 var(--rm-s2);
	}

	.rm-search-page .adv-search label {
		white-space: normal;
	}

	.rm-search-page .adv-search tbody[style*="none"] {
		display: none;
	}
}

/* results as cards: photo, name, Details */
.rm-search-page .list-product {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
	gap: var(--rm-s4);
}

.rm-search-page .list-product .item_row {
	display: flex;
	flex-direction: column;
	gap: var(--rm-s3);
	padding: var(--rm-s4);
}

.rm-search-page .list-product .prod_image {
	display: contents;
}

.rm-search-page .list-product .product_alter_nate {
	order: 1;
	height: 11rem;
}

.rm-search-page .list-product .product_alter_nate img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: contain;
}

.rm-search-page .list-product .prod_details {
	order: 2;
	flex: 1;
}

.rm-search-page .list-product .prod_name a {
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-sm);
	line-height: var(--rm-lh-snug);
}

/* empty in every search result; hidden only while it is */
.rm-search-page .list-product .wholesale-info:not(:has(td, th)) {
	display: none;
}

.rm-search-page .list-product .details_button {
	order: 3;
}

.rm-search-page .list-product .details_button .button {
	display: flex;
}

.rm-search-page .list-product .details_button .button a {
	flex: 1;
}

/* -------------------------------------------------------------
   Wholesale matrix

   Scrolls sideways rather than squeezing: a product can carry a
   dozen variants and the price row must stay legible.
   ------------------------------------------------------------- */
.wholesale-info {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wholesale-info > table {
	border-collapse: collapse;
	width: auto;
	margin: 0;
}

.wholesale-info td {
	padding: var(--rm-s3);
	text-align: center;
	vertical-align: middle;
}

/* Spacer cells the template emits at both ends of all three rows.
   Every row has exactly two, so hiding them keeps the columns
   aligned. */
.wholesale-info td.lft-bg {
	display: none;
}

.wholesale-info td.has_border {
	border-right: 1px solid var(--rm-line);
}

.wholesale-info .whole_sale_iamge img {
	display: block;
	max-width: 104px;
	height: auto;
	margin-inline: auto;
}

.wholesale-info .prod_option {
	display: block;
	font-size: var(--rm-fs-xs);
	font-weight: 600;
	line-height: var(--rm-lh-snug);
	color: var(--rm-ink-soft);
	white-space: nowrap;
}

.wholesale-info .wholesale_values .currency {
	display: block;
	margin-bottom: var(--rm-s3);
	font-size: var(--rm-fs-h4);
	font-weight: 700;
	color: var(--rm-navy);
	white-space: nowrap;
}

.wholesale-info .add_to_cart_button {
	text-align: center;
}

/* -------------------------------------------------------------
   Add to cart

   A submit input, so it takes button styling directly. Targeted by
   .add-to-cart-button rather than .main-button, which the cart and
   checkout also use.
   ------------------------------------------------------------- */
.list-product input.add-to-cart-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: var(--rm-s2) var(--rm-s5);
	border: 1px solid transparent;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-gold);
	color: var(--rm-navy);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--rm-transition);
}

.list-product input.add-to-cart-button:hover {
	background: var(--rm-gold-dark);
}

/* Out of stock is an <input type="image"> pointing at a 1x1 spacer,
   so it has no text of its own and renders as nothing without a
   background. The skin's existing 75x25 out_of_stock.png supplies the
   label; sizing to the file keeps it legible. Replacing it with a
   real disabled button would mean editing buy_now_simple.tpl, which
   is in the add-to-cart path - left alone deliberately. */
.list-product input.out_of_stock {
	width: 75px;
	height: 25px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: url(../../skin/royalnew/css/../images/out_of_stock.png) no-repeat center / contain;
	cursor: default;
}

.list-product input.out_of_stock:hover {
	background: url(../../skin/royalnew/css/../images/out_of_stock.png) no-repeat center / contain;
}

/* -------------------------------------------------------------
   Pagination
   ------------------------------------------------------------- */
.products-dialog .simple-list-left {
	margin: 0 0 var(--rm-s6);
	padding: 0;
	list-style: none;
}

.products-dialog .nav-pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-s2);
	font-size: var(--rm-fs-sm);
}

.products-dialog .nav-pages-title {
	margin-right: var(--rm-s2);
	color: var(--rm-muted);
}

.products-dialog .nav-page,
.products-dialog .current-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding-inline: var(--rm-s2);
	border-radius: var(--rm-radius-sm);
	font-weight: 600;
	text-decoration: none;
}

.products-dialog .nav-page {
	border: 1px solid var(--rm-line);
	color: var(--rm-navy);
}

.products-dialog .nav-page:hover {
	border-color: var(--rm-navy);
	text-decoration: none;
}

.products-dialog .current-page {
	background: var(--rm-navy);
	color: var(--rm-white);
}

/* The prev/next arrows are anchors wrapping a spacer.gif, so they
   render as nothing. Glyph in, image out. */
.products-dialog .left-arrow img,
.products-dialog .right-arrow img {
	display: none;
}

.products-dialog .left-arrow,
.products-dialog .right-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	color: var(--rm-navy);
	font-weight: 600;
	text-decoration: none;
}

.products-dialog .left-arrow::before  { content: "\2190"; }
.products-dialog .right-arrow::before { content: "\2192"; }

.products-dialog .nav-dots {
	color: var(--rm-muted);
}



/* =============================================================
   10. SINGLE PRODUCT PAGE
   ============================================================= */

.rm-pdp {
	background: var(--rm-white);
}

.rm-pdp__inner {
	display: grid;
	gap: var(--rm-s10);
	grid-template-columns: 1fr;
	padding-block: clamp(2rem, 4.5vw, 3.5rem);
}

@media (min-width: 900px) {
	.rm-pdp__inner {
		grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
		align-items: start;
	}
}

/* -------------------------------------------------------------
   Media
   ------------------------------------------------------------- */
.rm-pdp__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: var(--rm-s6);
	background: var(--rm-bg-alt);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
	overflow: hidden;
}

.rm-pdp__stage img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.rm-pdp__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rm-s3);
	margin-top: var(--rm-s3);
}

.rm-pdp__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 92px;
	aspect-ratio: 1 / 1;
	padding: var(--rm-s2);
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	overflow: hidden;
}

.rm-pdp__thumb img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* -------------------------------------------------------------
   Buy column
   ------------------------------------------------------------- */
.rm-pdp__title {
	margin-bottom: var(--rm-s3);
	font-size: clamp(1.75rem, 1rem + 2.4vw, 2.75rem);   /* 28 -> 44 */
}

.rm-pdp__sub {
	margin: 0 0 var(--rm-s6);
	font-size: var(--rm-fs-lead);
	color: var(--rm-ink-soft);
}

/* The free-shipping line as a tinted bar, as the reference draws it
   on this page (the category hero uses the bare version). */
.rm-shipnote--bar {
	margin: 0 0 var(--rm-s6);
	padding: var(--rm-s4) var(--rm-s5);
	background: var(--rm-blue-tint);
	border-radius: var(--rm-radius);
}

.rm-pdp__points {
	margin: 0 0 var(--rm-s6);
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--rm-s3);
}

.rm-pdp__points li {
	position: relative;
	padding-left: var(--rm-s8);
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}

.rm-pdp__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 1.125rem;
	height: 1.125rem;
	border-radius: 50%;
	background: var(--rm-gold);
}

.rm-pdp__points li::after {
	content: "";
	position: absolute;
	left: 0.3rem;
	top: 0.45em;
	width: 0.5rem;
	height: 0.28rem;
	border-left: 2px solid var(--rm-white);
	border-bottom: 2px solid var(--rm-white);
	transform: rotate(-45deg);
}

/* -------------------------------------------------------------
   Pack selector

   No JavaScript. A radio per variant, visually removed, drives which
   panel shows through a :checked sibling rule. Each panel holds
   X-Cart's own untouched add-to-cart form, so the button pressed is
   the real one with its own hidden product_options value.
   ------------------------------------------------------------- */
.rm-buybox__step {
	margin: 0 0 var(--rm-s3);
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h4);
	font-weight: 700;
	color: var(--rm-navy);
}

/* "1. Choose your size" with the "(Sizes below list inner usable
   space)" note straight after it, on the left - moved there from the
   right-hand end of the line on the client's request. */
.rm-buybox__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-start;
	gap: var(--rm-s1) var(--rm-s3);
	margin-bottom: var(--rm-s3);
}

.rm-buybox__head .rm-buybox__step {
	margin: 0;
}

.rm-buybox__hint {
	margin: 0;
	font-size: var(--rm-fs-xs);
	color: var(--rm-muted);
}

/* Off-screen rather than display:none, so it stays focusable and
   keyboard users can still move through the packs with arrow keys. */
.rm-pack__radio {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* Equal tiles, as many to a row as fit - six across the desktop
   column, four on a phone. auto-fill rather than auto-fit, so a size
   with two packs keeps two normal tiles instead of two stretched ones. */
.rm-packs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
	gap: var(--rm-s2);
	margin-bottom: var(--rm-s6);
}

.rm-pack {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.125rem;
	min-width: 0;
	min-height: 4.25rem;
	padding: var(--rm-s3) var(--rm-s2);
	text-align: center;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
	background: var(--rm-white);
	color: var(--rm-navy);
	cursor: pointer;
	transition: border-color var(--rm-transition),
	            background-color var(--rm-transition),
	            color var(--rm-transition);
}

.rm-pack:hover {
	border-color: var(--rm-navy);
}

.rm-pack__name {
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

/* "Case", "Pallet" - the bracketed part of the pack name */
.rm-pack__note {
	font-size: 0.6875rem;
	line-height: 1.2;
	color: var(--rm-muted);
	text-transform: capitalize;
}

.rm-pack__price {
	margin-top: 0.125rem;
	font-size: var(--rm-fs-xs);
	color: var(--rm-ink-soft);
	white-space: nowrap;
}

/* Keyboard focus must show on the LABEL, because the radio it belongs
   to is off-screen. Paired by position, same as the :checked rules -
   an unpaired rule here would have styled every label at once, or
   none. */
#rm-pack-0:focus-visible ~ .rm-packs > .rm-pack:nth-child(1),
#rm-pack-1:focus-visible ~ .rm-packs > .rm-pack:nth-child(2),
#rm-pack-2:focus-visible ~ .rm-packs > .rm-pack:nth-child(3),
#rm-pack-3:focus-visible ~ .rm-packs > .rm-pack:nth-child(4),
#rm-pack-4:focus-visible ~ .rm-packs > .rm-pack:nth-child(5),
#rm-pack-5:focus-visible ~ .rm-packs > .rm-pack:nth-child(6),
#rm-pack-6:focus-visible ~ .rm-packs > .rm-pack:nth-child(7),
#rm-pack-7:focus-visible ~ .rm-packs > .rm-pack:nth-child(8),
#rm-pack-8:focus-visible ~ .rm-packs > .rm-pack:nth-child(9),
#rm-pack-9:focus-visible ~ .rm-packs > .rm-pack:nth-child(10),
#rm-pack-10:focus-visible ~ .rm-packs > .rm-pack:nth-child(11),
#rm-pack-11:focus-visible ~ .rm-packs > .rm-pack:nth-child(12) {
	outline: 2px solid var(--rm-blue);
	outline-offset: 2px;
}

/* The pack panels share a name with the boxed panel component (Order
   Summary etc.) - the design draws the price and button unboxed. */
.rm-panels > .rm-panel {
	display: none;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.rm-panel__pack {
	margin: 0;
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	color: var(--rm-ink);
}

.rm-panel__price {
	margin: 0;
	font-family: var(--rm-font-display);
	font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.25rem);   /* 28 -> 36 */
	font-weight: 800;
	line-height: 1.15;
	color: var(--rm-navy);
}

/* The chosen pack and its price on the left, the quantity box on the
   right, the Add to Cart button full width under both. */
.rm-panel__row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--rm-s4);
	margin-bottom: var(--rm-s4);
}

.rm-panel__sum {
	min-width: 0;
}

.rm-panel__qty {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--rm-s1);
}

/* display:flex above would otherwise beat the hidden attribute - the
   box stays hidden until its script has checked the form beside it. */
.rm-panel__qty[hidden] {
	display: none;
}

.rm-panel__qtylabel {
	font-size: var(--rm-fs-xs);
	font-weight: 600;
	color: var(--rm-ink-soft);
}

.rm-panel__qty .rm-qty__btn {
	width: 2.5rem;
	height: 2.5rem;
}

.rm-panel__qty .rm-qty__input {
	width: 3.25rem;
	height: 2.5rem;
	padding: 0;
}

/* The add-to-cart button, full width as the reference draws it. */
.rm-panel .buy-now input.add-to-cart-button,
.rm-buybox--plain input.add-to-cart-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3.375rem;
	padding: var(--rm-s4) var(--rm-s8);
	border: 1px solid transparent;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-gold);
	color: var(--rm-navy);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-body);
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--rm-transition);
}

/* The cart icon. The button is an <input>, which can hold neither an
   icon nor a pseudo-element, so the icon is a background image placed
   just left of the centred words, and the words are nudged right by
   the same amount. A file, not inline SVG: X-Cart's CSS bundler breaks
   data: URIs. Out-of-stock buttons are left as they were. */
.rm-panel .buy-now input.add-to-cart-button:not(.out_of_stock),
.rm-buybox--plain input.add-to-cart-button:not(.out_of_stock) {
	padding-left: calc(var(--rm-s8) + 2rem);
	background-image: url(../../skin/royalnew/css/../images/rm-icon-cart.svg);
	background-repeat: no-repeat;
	background-size: 1.375rem 1.375rem;
	background-position: calc(50% - 3.25rem) 50%;
}

.rm-panel .buy-now input.add-to-cart-button:hover,
.rm-buybox--plain input.add-to-cart-button:hover {
	background-color: var(--rm-gold-dark);
}

/* Out of stock. X-Cart's button for a pack with no stock is an image
   input showing a blank spacer.gif (buy_now_simple.tpl, not edited), so
   the rule above drew it as an empty gold square. Grey, not clickable-
   looking, and labelled by a pseudo-element on its wrapper - an input
   cannot carry one itself. Browsers without :has() still get the grey
   bar. */
.rm-panel .buy-now input.out_of_stock,
.rm-panel .buy-now input.out_of_stock:hover,
.rm-buybox--plain input.out_of_stock,
.rm-buybox--plain input.out_of_stock:hover {
	/* an explicit height: at width 100% the 1x1 spacer image made the
	   button square - a blank block as tall as it was wide */
	height: 3.375rem;
	background-color: var(--rm-line);
	cursor: not-allowed;
}

.rm-panel .buy-now :has(> input.out_of_stock),
.rm-buybox--plain :has(> input.out_of_stock) {
	position: relative;
}

.rm-panel .buy-now :has(> input.out_of_stock)::after,
.rm-buybox--plain :has(> input.out_of_stock)::after {
	content: "Out of stock";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3.375rem;   /* the button's, not the wrapper's (taller) */
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rm-muted);
	font-size: var(--rm-fs-body);
	font-weight: 700;
	pointer-events: none;
}

.rm-panel .quantity-empty,
.rm-buybox--plain .quantity-empty {
	display: none;
}

/* -------------------------------------------------------------
   Feature strip - three points on a grey band, hairlines between
   ------------------------------------------------------------- */
.rm-featstrip {
	background: var(--rm-bg-sunken);
}

.rm-featstrip__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	padding-block: var(--rm-s5);
}

.rm-feat {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--rm-s3);
	padding-inline: var(--rm-s4);
	font-size: var(--rm-fs-body);
	font-weight: 600;
	line-height: 1.3;
	color: var(--rm-navy);
}

.rm-feat + .rm-feat {
	border-left: 1px solid #C8D0DC;
}

.rm-feat svg {
	flex: none;
	width: 2.25rem;
	height: 2.25rem;
	fill: none;
	stroke: var(--rm-navy);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Phone: three narrow columns, icon over words. */
@media (max-width: 639px) {
	.rm-featstrip__inner {
		padding-block: var(--rm-s4);
	}

	.rm-feat {
		flex-direction: column;
		gap: var(--rm-s2);
		padding-inline: var(--rm-s2);
		font-size: var(--rm-fs-xs);
		text-align: center;
	}

	.rm-feat svg {
		width: 1.75rem;
		height: 1.75rem;
	}
}

/* -------------------------------------------------------------
   Cross-sell grid
   ------------------------------------------------------------- */
.rm-cat-grid--3 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 960px) {
	.rm-cat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Paired by POSITION, not by id, so one set of rules serves every
   product and every category whatever their counts. Radio N drives
   label N and panel N. :nth-of-type counts inputs among siblings -
   the selector radios are the only inputs at that level; the form
   fields all sit deeper, inside .rm-panel. */
.rm-buybox > input:nth-of-type(1):checked ~ .rm-panels > .rm-panel:nth-child(1),
.rm-buybox > input:nth-of-type(2):checked ~ .rm-panels > .rm-panel:nth-child(2),
.rm-buybox > input:nth-of-type(3):checked ~ .rm-panels > .rm-panel:nth-child(3),
.rm-buybox > input:nth-of-type(4):checked ~ .rm-panels > .rm-panel:nth-child(4),
.rm-buybox > input:nth-of-type(5):checked ~ .rm-panels > .rm-panel:nth-child(5),
.rm-buybox > input:nth-of-type(6):checked ~ .rm-panels > .rm-panel:nth-child(6),
.rm-buybox > input:nth-of-type(7):checked ~ .rm-panels > .rm-panel:nth-child(7),
.rm-buybox > input:nth-of-type(8):checked ~ .rm-panels > .rm-panel:nth-child(8),
.rm-buybox > input:nth-of-type(9):checked ~ .rm-panels > .rm-panel:nth-child(9),
.rm-buybox > input:nth-of-type(10):checked ~ .rm-panels > .rm-panel:nth-child(10),
.rm-buybox > input:nth-of-type(11):checked ~ .rm-panels > .rm-panel:nth-child(11),
.rm-buybox > input:nth-of-type(12):checked ~ .rm-panels > .rm-panel:nth-child(12),
.rm-buybox > input:nth-of-type(13):checked ~ .rm-panels > .rm-panel:nth-child(13),
.rm-buybox > input:nth-of-type(14):checked ~ .rm-panels > .rm-panel:nth-child(14) {
	display: block;
}

.rm-buybox > input:nth-of-type(1):checked ~ .rm-packs > .rm-pack:nth-child(1),
.rm-buybox > input:nth-of-type(2):checked ~ .rm-packs > .rm-pack:nth-child(2),
.rm-buybox > input:nth-of-type(3):checked ~ .rm-packs > .rm-pack:nth-child(3),
.rm-buybox > input:nth-of-type(4):checked ~ .rm-packs > .rm-pack:nth-child(4),
.rm-buybox > input:nth-of-type(5):checked ~ .rm-packs > .rm-pack:nth-child(5),
.rm-buybox > input:nth-of-type(6):checked ~ .rm-packs > .rm-pack:nth-child(6),
.rm-buybox > input:nth-of-type(7):checked ~ .rm-packs > .rm-pack:nth-child(7),
.rm-buybox > input:nth-of-type(8):checked ~ .rm-packs > .rm-pack:nth-child(8),
.rm-buybox > input:nth-of-type(9):checked ~ .rm-packs > .rm-pack:nth-child(9),
.rm-buybox > input:nth-of-type(10):checked ~ .rm-packs > .rm-pack:nth-child(10),
.rm-buybox > input:nth-of-type(11):checked ~ .rm-packs > .rm-pack:nth-child(11),
.rm-buybox > input:nth-of-type(12):checked ~ .rm-packs > .rm-pack:nth-child(12),
.rm-buybox > input:nth-of-type(13):checked ~ .rm-packs > .rm-pack:nth-child(13),
.rm-buybox > input:nth-of-type(14):checked ~ .rm-packs > .rm-pack:nth-child(14) {
	border-color: var(--rm-navy);
	box-shadow: inset 0 0 0 1px var(--rm-navy);
	background: var(--rm-white);
	color: var(--rm-navy);
}

.rm-buybox > input:nth-of-type(1):focus-visible ~ .rm-packs > .rm-pack:nth-child(1),
.rm-buybox > input:nth-of-type(2):focus-visible ~ .rm-packs > .rm-pack:nth-child(2),
.rm-buybox > input:nth-of-type(3):focus-visible ~ .rm-packs > .rm-pack:nth-child(3),
.rm-buybox > input:nth-of-type(4):focus-visible ~ .rm-packs > .rm-pack:nth-child(4),
.rm-buybox > input:nth-of-type(5):focus-visible ~ .rm-packs > .rm-pack:nth-child(5),
.rm-buybox > input:nth-of-type(6):focus-visible ~ .rm-packs > .rm-pack:nth-child(6),
.rm-buybox > input:nth-of-type(7):focus-visible ~ .rm-packs > .rm-pack:nth-child(7),
.rm-buybox > input:nth-of-type(8):focus-visible ~ .rm-packs > .rm-pack:nth-child(8),
.rm-buybox > input:nth-of-type(9):focus-visible ~ .rm-packs > .rm-pack:nth-child(9),
.rm-buybox > input:nth-of-type(10):focus-visible ~ .rm-packs > .rm-pack:nth-child(10),
.rm-buybox > input:nth-of-type(11):focus-visible ~ .rm-packs > .rm-pack:nth-child(11),
.rm-buybox > input:nth-of-type(12):focus-visible ~ .rm-packs > .rm-pack:nth-child(12),
.rm-buybox > input:nth-of-type(13):focus-visible ~ .rm-packs > .rm-pack:nth-child(13),
.rm-buybox > input:nth-of-type(14):focus-visible ~ .rm-packs > .rm-pack:nth-child(14) {
	outline: 2px solid var(--rm-blue);
	outline-offset: 2px;
}


/* -------------------------------------------------------------
   Merged product page - size level

   The size radios sit at section level so one choice drives four
   things at once: the photo, the size button, the pack block and the
   description.
   ------------------------------------------------------------- */
.rm-size__radio {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.rm-media,
.rm-sizepanel,
.rm-per-size > * {
	display: none;
}

.rm-pdp--family > input:nth-of-type(1):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(1),
.rm-pdp--family > input:nth-of-type(2):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(2),
.rm-pdp--family > input:nth-of-type(3):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(3),
.rm-pdp--family > input:nth-of-type(4):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(4),
.rm-pdp--family > input:nth-of-type(5):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(5),
.rm-pdp--family > input:nth-of-type(6):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(6),
.rm-pdp--family > input:nth-of-type(7):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(7),
.rm-pdp--family > input:nth-of-type(8):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(8),
.rm-pdp--family > input:nth-of-type(9):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(9),
.rm-pdp--family > input:nth-of-type(10):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(10),
.rm-pdp--family > input:nth-of-type(11):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(11),
.rm-pdp--family > input:nth-of-type(12):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(12),
.rm-pdp--family > input:nth-of-type(13):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(13),
.rm-pdp--family > input:nth-of-type(14):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(14),
.rm-pdp--family > input:nth-of-type(15):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(15),
.rm-pdp--family > input:nth-of-type(16):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(16),
.rm-pdp--family > input:nth-of-type(17):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(17),
.rm-pdp--family > input:nth-of-type(18):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(18),
.rm-pdp--family > input:nth-of-type(19):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(19),
.rm-pdp--family > input:nth-of-type(20):checked ~ .rm-pdp__inner .rm-media-stack > .rm-media:nth-child(20),
.rm-pdp--family > input:nth-of-type(1):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(1),
.rm-pdp--family > input:nth-of-type(2):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(2),
.rm-pdp--family > input:nth-of-type(3):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(3),
.rm-pdp--family > input:nth-of-type(4):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(4),
.rm-pdp--family > input:nth-of-type(5):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(5),
.rm-pdp--family > input:nth-of-type(6):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(6),
.rm-pdp--family > input:nth-of-type(7):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(7),
.rm-pdp--family > input:nth-of-type(8):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(8),
.rm-pdp--family > input:nth-of-type(9):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(9),
.rm-pdp--family > input:nth-of-type(10):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(10),
.rm-pdp--family > input:nth-of-type(11):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(11),
.rm-pdp--family > input:nth-of-type(12):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(12),
.rm-pdp--family > input:nth-of-type(13):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(13),
.rm-pdp--family > input:nth-of-type(14):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(14),
.rm-pdp--family > input:nth-of-type(15):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(15),
.rm-pdp--family > input:nth-of-type(16):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(16),
.rm-pdp--family > input:nth-of-type(17):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(17),
.rm-pdp--family > input:nth-of-type(18):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(18),
.rm-pdp--family > input:nth-of-type(19):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(19),
.rm-pdp--family > input:nth-of-type(20):checked ~ .rm-pdp__inner .rm-sizepanels > .rm-sizepanel:nth-child(20),
.rm-pdp--family > input:nth-of-type(1):checked ~ .rm-pdinfo .rm-per-size > :nth-child(1),
.rm-pdp--family > input:nth-of-type(2):checked ~ .rm-pdinfo .rm-per-size > :nth-child(2),
.rm-pdp--family > input:nth-of-type(3):checked ~ .rm-pdinfo .rm-per-size > :nth-child(3),
.rm-pdp--family > input:nth-of-type(4):checked ~ .rm-pdinfo .rm-per-size > :nth-child(4),
.rm-pdp--family > input:nth-of-type(5):checked ~ .rm-pdinfo .rm-per-size > :nth-child(5),
.rm-pdp--family > input:nth-of-type(6):checked ~ .rm-pdinfo .rm-per-size > :nth-child(6),
.rm-pdp--family > input:nth-of-type(7):checked ~ .rm-pdinfo .rm-per-size > :nth-child(7),
.rm-pdp--family > input:nth-of-type(8):checked ~ .rm-pdinfo .rm-per-size > :nth-child(8),
.rm-pdp--family > input:nth-of-type(9):checked ~ .rm-pdinfo .rm-per-size > :nth-child(9),
.rm-pdp--family > input:nth-of-type(10):checked ~ .rm-pdinfo .rm-per-size > :nth-child(10),
.rm-pdp--family > input:nth-of-type(11):checked ~ .rm-pdinfo .rm-per-size > :nth-child(11),
.rm-pdp--family > input:nth-of-type(12):checked ~ .rm-pdinfo .rm-per-size > :nth-child(12),
.rm-pdp--family > input:nth-of-type(13):checked ~ .rm-pdinfo .rm-per-size > :nth-child(13),
.rm-pdp--family > input:nth-of-type(14):checked ~ .rm-pdinfo .rm-per-size > :nth-child(14),
.rm-pdp--family > input:nth-of-type(15):checked ~ .rm-pdinfo .rm-per-size > :nth-child(15),
.rm-pdp--family > input:nth-of-type(16):checked ~ .rm-pdinfo .rm-per-size > :nth-child(16),
.rm-pdp--family > input:nth-of-type(17):checked ~ .rm-pdinfo .rm-per-size > :nth-child(17),
.rm-pdp--family > input:nth-of-type(18):checked ~ .rm-pdinfo .rm-per-size > :nth-child(18),
.rm-pdp--family > input:nth-of-type(19):checked ~ .rm-pdinfo .rm-per-size > :nth-child(19),
.rm-pdp--family > input:nth-of-type(20):checked ~ .rm-pdinfo .rm-per-size > :nth-child(20) {
	display: block;
}

.rm-pdp--family > input:nth-of-type(1):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(1),
.rm-pdp--family > input:nth-of-type(2):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(2),
.rm-pdp--family > input:nth-of-type(3):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(3),
.rm-pdp--family > input:nth-of-type(4):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(4),
.rm-pdp--family > input:nth-of-type(5):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(5),
.rm-pdp--family > input:nth-of-type(6):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(6),
.rm-pdp--family > input:nth-of-type(7):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(7),
.rm-pdp--family > input:nth-of-type(8):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(8),
.rm-pdp--family > input:nth-of-type(9):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(9),
.rm-pdp--family > input:nth-of-type(10):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(10),
.rm-pdp--family > input:nth-of-type(11):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(11),
.rm-pdp--family > input:nth-of-type(12):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(12),
.rm-pdp--family > input:nth-of-type(13):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(13),
.rm-pdp--family > input:nth-of-type(14):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(14),
.rm-pdp--family > input:nth-of-type(15):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(15),
.rm-pdp--family > input:nth-of-type(16):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(16),
.rm-pdp--family > input:nth-of-type(17):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(17),
.rm-pdp--family > input:nth-of-type(18):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(18),
.rm-pdp--family > input:nth-of-type(19):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(19),
.rm-pdp--family > input:nth-of-type(20):checked ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(20) {
	border-color: var(--rm-navy);
	background: var(--rm-navy);
	color: var(--rm-white);
}

.rm-pdp--family > input:nth-of-type(1):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(1),
.rm-pdp--family > input:nth-of-type(2):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(2),
.rm-pdp--family > input:nth-of-type(3):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(3),
.rm-pdp--family > input:nth-of-type(4):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(4),
.rm-pdp--family > input:nth-of-type(5):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(5),
.rm-pdp--family > input:nth-of-type(6):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(6),
.rm-pdp--family > input:nth-of-type(7):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(7),
.rm-pdp--family > input:nth-of-type(8):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(8),
.rm-pdp--family > input:nth-of-type(9):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(9),
.rm-pdp--family > input:nth-of-type(10):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(10),
.rm-pdp--family > input:nth-of-type(11):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(11),
.rm-pdp--family > input:nth-of-type(12):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(12),
.rm-pdp--family > input:nth-of-type(13):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(13),
.rm-pdp--family > input:nth-of-type(14):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(14),
.rm-pdp--family > input:nth-of-type(15):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(15),
.rm-pdp--family > input:nth-of-type(16):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(16),
.rm-pdp--family > input:nth-of-type(17):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(17),
.rm-pdp--family > input:nth-of-type(18):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(18),
.rm-pdp--family > input:nth-of-type(19):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(19),
.rm-pdp--family > input:nth-of-type(20):focus-visible ~ .rm-pdp__inner .rm-sizes > .rm-size:nth-child(20) {
	outline: 2px solid var(--rm-blue);
	outline-offset: 2px;
}

/* Equal tiles like the packs, "#000" over "4 x 7". Where a size has
   no short label the button carries the whole product name, and a
   grid cell is too narrow for that - .rm-sizes--long (set by the
   template when any label runs long) goes back to wrapping buttons. */
.rm-sizes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
	gap: var(--rm-s2);
	margin-bottom: var(--rm-s6);
	/* the labels' own size and weight, so 1ch below is their digit width */
	font-size: var(--rm-fs-sm);
	font-weight: 700;
}

/* Tiles at least as wide as the longest label and the longest
   dimension line (the template sets both counts on the element), with
   4.75rem as the floor. The pallet cover's 48"x40"x60" did not fit
   the fixed 4.75rem and was cut off. Factors measured in a browser on
   the store's real labels: a label character is at most 1.07ch wide
   ("#CD"), a dimension-line character 0.59ch (smaller, lighter type);
   1.25rem is the tile's padding and border. */
.rm-sizes:not(.rm-sizes--long) {
	grid-template-columns: repeat(auto-fill, minmax(max(4.75rem,
		calc(var(--rm-size-ch, 0) * 1.1ch + 1.25rem),
		calc(var(--rm-dim-ch, 0) * 0.62ch + 1.25rem)), 1fr));
}

/* A label over 8 characters takes two tiles' width (the template marks
   it, and leaves it out of the count above). Two 4.75rem tracks and a
   gap hold the store's longest such label, 14 characters. */
.rm-sizes:not(.rm-sizes--long) > .rm-size--wide {
	grid-column: span 2;
}

.rm-sizes--long {
	display: flex;
	flex-wrap: wrap;
}

.rm-size {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.125rem;
	min-width: 0;
	min-height: 3.5rem;
	padding: var(--rm-s2) var(--rm-s2);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
	background: var(--rm-white);
	color: var(--rm-navy);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: border-color var(--rm-transition),
	            background-color var(--rm-transition),
	            color var(--rm-transition);
}

.rm-size:hover {
	border-color: var(--rm-navy);
}

.rm-sizes--long .rm-size {
	min-width: 4.5rem;
	max-width: 16rem;
	padding: var(--rm-s3) var(--rm-s4);
}

.rm-size__name {
	font-size: var(--rm-fs-sm);
	font-weight: 700;
}

.rm-size__dim {
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0.85;
}

/* The size buttons are shortened labels, so the full product name is
   always shown for whichever size is selected - nothing is hidden. */
.rm-sizepanel__name {
	margin: calc(-1 * var(--rm-s2)) 0 var(--rm-s5);
	font-size: var(--rm-fs-sm);
	color: var(--rm-muted);
}

.rm-desc__body {
	color: var(--rm-ink-soft);
	line-height: var(--rm-lh-body);
}


/* -------------------------------------------------------------
   Photo gallery - the supplied photography (rm_pdp_gallery.tpl)

   One large photo, thumbnails under it. No JavaScript: each
   thumbnail is the <label> of an off-screen radio, paired with its
   photo by position, the same pattern as the pack buttons.
   ------------------------------------------------------------- */
.rm-gallery__radio {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* 6:5 is the shape of the main shots, so they fill the frame. The
   photos are on near-white; the frame takes the same tone. */
.rm-gallery__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 6 / 5;
	background: #FDFDFD;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
	overflow: hidden;
}

.rm-gallery__img {
	display: none;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* a close-up that should fill the frame edge to edge */
.rm-gallery__img--fill {
	object-fit: cover;
}

.rm-gallery__img:only-child,
.rm-gallery > input:nth-of-type(1):checked ~ .rm-gallery__stage > .rm-gallery__img:nth-child(1),
.rm-gallery > input:nth-of-type(2):checked ~ .rm-gallery__stage > .rm-gallery__img:nth-child(2),
.rm-gallery > input:nth-of-type(3):checked ~ .rm-gallery__stage > .rm-gallery__img:nth-child(3) {
	display: block;
}

.rm-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--rm-s3);
	margin-top: var(--rm-s3);
}

.rm-gallery__thumb {
	display: block;
	aspect-ratio: 1 / 1;
	background: #FDFDFD;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	overflow: hidden;
	cursor: pointer;
	transition: border-color var(--rm-transition);
}

.rm-gallery__thumb:hover {
	border-color: var(--rm-navy);
}

.rm-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* A product shot on white that is wide or tall (the label products):
   the thumbnail shows all of it, not a square crop. */
.rm-gallery__thumb--fit img {
	object-fit: contain;
	padding: 4px;
}

/* Many sizes (Zebra has eight): four across, so the row under the
   photo is two lines deep rather than three. */
.rm-sizethumbs--many {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rm-gallery > input:nth-of-type(1):checked ~ .rm-gallery__thumbs > .rm-gallery__thumb:nth-child(1),
.rm-gallery > input:nth-of-type(2):checked ~ .rm-gallery__thumbs > .rm-gallery__thumb:nth-child(2),
.rm-gallery > input:nth-of-type(3):checked ~ .rm-gallery__thumbs > .rm-gallery__thumb:nth-child(3) {
	border-color: var(--rm-navy);
	box-shadow: inset 0 0 0 1px var(--rm-navy);
}

.rm-gallery > input:nth-of-type(1):focus-visible ~ .rm-gallery__thumbs > .rm-gallery__thumb:nth-child(1),
.rm-gallery > input:nth-of-type(2):focus-visible ~ .rm-gallery__thumbs > .rm-gallery__thumb:nth-child(2),
.rm-gallery > input:nth-of-type(3):focus-visible ~ .rm-gallery__thumbs > .rm-gallery__thumb:nth-child(3) {
	outline: 2px solid var(--rm-blue);
	outline-offset: 2px;
}

/* Per-size photos (Packing List Envelopes): the thumbnails are labels
   for the SIZE radios, so the selected size's thumbnail is marked the
   same way the size button is - paired by position, as everywhere on
   this page. */
.rm-pdp--family > input:nth-of-type(1):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(1),
.rm-pdp--family > input:nth-of-type(2):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(2),
.rm-pdp--family > input:nth-of-type(3):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(3),
.rm-pdp--family > input:nth-of-type(4):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(4),
.rm-pdp--family > input:nth-of-type(5):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(5),
.rm-pdp--family > input:nth-of-type(6):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(6),
.rm-pdp--family > input:nth-of-type(7):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(7),
.rm-pdp--family > input:nth-of-type(8):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(8),
.rm-pdp--family > input:nth-of-type(9):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(9),
.rm-pdp--family > input:nth-of-type(10):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(10),
.rm-pdp--family > input:nth-of-type(11):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(11),
.rm-pdp--family > input:nth-of-type(12):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(12),
.rm-pdp--family > input:nth-of-type(13):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(13),
.rm-pdp--family > input:nth-of-type(14):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(14),
.rm-pdp--family > input:nth-of-type(15):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(15),
.rm-pdp--family > input:nth-of-type(16):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(16),
.rm-pdp--family > input:nth-of-type(17):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(17),
.rm-pdp--family > input:nth-of-type(18):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(18),
.rm-pdp--family > input:nth-of-type(19):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(19),
.rm-pdp--family > input:nth-of-type(20):checked ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(20) {
	border-color: var(--rm-navy);
	box-shadow: inset 0 0 0 1px var(--rm-navy);
}

.rm-pdp--family > input:nth-of-type(1):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(1),
.rm-pdp--family > input:nth-of-type(2):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(2),
.rm-pdp--family > input:nth-of-type(3):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(3),
.rm-pdp--family > input:nth-of-type(4):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(4),
.rm-pdp--family > input:nth-of-type(5):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(5),
.rm-pdp--family > input:nth-of-type(6):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(6),
.rm-pdp--family > input:nth-of-type(7):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(7),
.rm-pdp--family > input:nth-of-type(8):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(8),
.rm-pdp--family > input:nth-of-type(9):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(9),
.rm-pdp--family > input:nth-of-type(10):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(10),
.rm-pdp--family > input:nth-of-type(11):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(11),
.rm-pdp--family > input:nth-of-type(12):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(12),
.rm-pdp--family > input:nth-of-type(13):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(13),
.rm-pdp--family > input:nth-of-type(14):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(14),
.rm-pdp--family > input:nth-of-type(15):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(15),
.rm-pdp--family > input:nth-of-type(16):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(16),
.rm-pdp--family > input:nth-of-type(17):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(17),
.rm-pdp--family > input:nth-of-type(18):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(18),
.rm-pdp--family > input:nth-of-type(19):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(19),
.rm-pdp--family > input:nth-of-type(20):focus-visible ~ .rm-pdp__inner .rm-sizethumbs > .rm-gallery__thumb:nth-child(20) {
	outline: 2px solid var(--rm-blue);
	outline-offset: 2px;
}

/* -------------------------------------------------------------
   Overview / Specifications / Shipping tabs

   Same radio-and-label pattern: tab N is the label of radio N and
   shows panel N. Written out to five - the single product page adds
   the store's "Ask a question" tab after the three.
   ------------------------------------------------------------- */
.rm-pdinfo {
	padding-block: clamp(2rem, 4vw, 3rem);
	background: var(--rm-white);
}

.rm-ptabs__radio {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.rm-ptabs__list {
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
}

.rm-ptabs__tab {
	flex: none;
	min-width: 10rem;
	margin-right: -1px;
	padding: 0.875rem var(--rm-s6);
	border: 1px solid var(--rm-line);
	border-bottom: 0;
	background: var(--rm-bg-alt);
	color: var(--rm-navy);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--rm-transition), color var(--rm-transition);
}

.rm-ptabs__tab:hover {
	background: var(--rm-white);
}

.rm-ptabs__tab:first-child {
	border-top-left-radius: var(--rm-radius-sm);
}

.rm-ptabs__tab:last-child {
	border-top-right-radius: var(--rm-radius-sm);
}

.rm-ptabs > input:nth-of-type(1):checked ~ .rm-ptabs__list > .rm-ptabs__tab:nth-child(1),
.rm-ptabs > input:nth-of-type(2):checked ~ .rm-ptabs__list > .rm-ptabs__tab:nth-child(2),
.rm-ptabs > input:nth-of-type(3):checked ~ .rm-ptabs__list > .rm-ptabs__tab:nth-child(3),
.rm-ptabs > input:nth-of-type(4):checked ~ .rm-ptabs__list > .rm-ptabs__tab:nth-child(4),
.rm-ptabs > input:nth-of-type(5):checked ~ .rm-ptabs__list > .rm-ptabs__tab:nth-child(5) {
	position: relative;
	z-index: 1;
	border-color: var(--rm-navy);
	background: var(--rm-navy);
	color: var(--rm-white);
}

.rm-ptabs > input:nth-of-type(1):focus-visible ~ .rm-ptabs__list > .rm-ptabs__tab:nth-child(1),
.rm-ptabs > input:nth-of-type(2):focus-visible ~ .rm-ptabs__list > .rm-ptabs__tab:nth-child(2),
.rm-ptabs > input:nth-of-type(3):focus-visible ~ .rm-ptabs__list > .rm-ptabs__tab:nth-child(3),
.rm-ptabs > input:nth-of-type(4):focus-visible ~ .rm-ptabs__list > .rm-ptabs__tab:nth-child(4),
.rm-ptabs > input:nth-of-type(5):focus-visible ~ .rm-ptabs__list > .rm-ptabs__tab:nth-child(5) {
	outline: 2px solid var(--rm-blue);
	outline-offset: -4px;
}

.rm-ptabs__panels {
	padding: clamp(1.25rem, 3vw, 2.25rem);
	border: 1px solid var(--rm-line);
	background: var(--rm-white);
}

.rm-ptab {
	display: none;
}

.rm-ptabs > input:nth-of-type(1):checked ~ .rm-ptabs__panels > .rm-ptab:nth-child(1),
.rm-ptabs > input:nth-of-type(2):checked ~ .rm-ptabs__panels > .rm-ptab:nth-child(2),
.rm-ptabs > input:nth-of-type(3):checked ~ .rm-ptabs__panels > .rm-ptab:nth-child(3),
.rm-ptabs > input:nth-of-type(4):checked ~ .rm-ptabs__panels > .rm-ptab:nth-child(4),
.rm-ptabs > input:nth-of-type(5):checked ~ .rm-ptabs__panels > .rm-ptab:nth-child(5) {
	display: block;
}

/* Overview: the copy and photo, then the specification table in a
   column of its own behind a hairline. */
.rm-ptab__split {
	display: grid;
	gap: var(--rm-s8);
}

@media (min-width: 960px) {
	.rm-ptab__split {
		grid-template-columns: minmax(0, 1fr) minmax(16rem, 19rem);
		gap: 0;
	}

	.rm-ptab__side {
		padding-left: var(--rm-s8);
		border-left: 1px solid var(--rm-line);
	}

	.rm-ptab__split > .rm-ov {
		padding-right: var(--rm-s8);
	}

	/* no specification column (a product with no specification rows) */
	.rm-ptab__split > .rm-ov:only-child {
		grid-column: 1 / -1;
		padding-right: 0;
	}
}

.rm-ov {
	display: grid;
	gap: var(--rm-s6);
	align-items: start;
}

/* the photo sits level with the middle of the copy beside it */
.rm-ov__img {
	align-self: center;
}

/* Copy and photo side by side only where there is room for both:
   between 960 and 1199px the specification column takes that room, so
   the photo goes under the copy there. */
@media (min-width: 700px) and (max-width: 959px), (min-width: 1200px) {
	.rm-ov:has(> .rm-ov__img) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
	}
}

@media (min-width: 960px) and (max-width: 1199px) {
	.rm-ov__img {
		max-width: 22rem;
	}
}

.rm-ov__title {
	margin: 0 0 var(--rm-s3);
	font-family: var(--rm-font-display);
	font-size: clamp(1.375rem, 1rem + 1.2vw, 1.875rem);   /* 22 -> 30 */
	font-weight: 800;
	line-height: var(--rm-lh-tight);
	letter-spacing: var(--rm-ls-tight);
	color: var(--rm-navy);
}

.rm-ov__copy p {
	margin: 0 0 var(--rm-s3);
	color: var(--rm-ink-soft);
	line-height: var(--rm-lh-body);
}

.rm-ov__copy p.rm-ov__close {
	margin: var(--rm-s5) 0 0;
}

.rm-ov__img {
	display: block;
	width: 100%;
	height: auto;
}

.rm-spec__title {
	margin: 0;
	padding-bottom: var(--rm-s3);
	border-bottom: 1px solid var(--rm-line);
	font-family: var(--rm-font-display);
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--rm-navy);
}

.rm-spec {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--rm-fs-sm);
}

.rm-spec th,
.rm-spec td {
	padding: var(--rm-s3) 0;
	border-bottom: 1px solid var(--rm-line);
	background: none;
	text-align: left;
	vertical-align: top;
	line-height: 1.45;
}

.rm-spec tr:last-child th,
.rm-spec tr:last-child td {
	border-bottom: 0;
}

.rm-spec th {
	width: 45%;
	padding-right: var(--rm-s4);
	font-weight: 700;
	color: var(--rm-navy);
}

.rm-spec td {
	color: var(--rm-ink-soft);
}

.rm-spec--wide {
	max-width: 46rem;
	margin-bottom: var(--rm-s6);
}

.rm-spec--wide th {
	width: 13rem;
}

.rm-spec__notes {
	max-width: 46rem;
	padding-top: var(--rm-s5);
	border-top: 1px solid var(--rm-line);
}

/* Shipping tab */
.rm-shiptab__list {
	display: grid;
	gap: var(--rm-s3);
	margin: 0 0 var(--rm-s6);
	padding: 0;
	list-style: none;
}

.rm-shiptab__list li {
	position: relative;
	padding-left: var(--rm-s8);
	color: var(--rm-ink-soft);
	line-height: var(--rm-lh-body);
}

.rm-shiptab__list strong {
	color: var(--rm-navy);
}

/* the same gold tick as the buy column's checklist */
.rm-shiptab__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.125rem;
	height: 1.125rem;
	border-radius: 50%;
	background: var(--rm-gold);
}

.rm-shiptab__list li::after {
	content: "";
	position: absolute;
	left: 0.3rem;
	top: 0.5em;
	width: 0.5rem;
	height: 0.28rem;
	border-left: 2px solid var(--rm-white);
	border-bottom: 2px solid var(--rm-white);
	transform: rotate(-45deg);
}

.rm-shiptab__more {
	margin: 0;
}

/* Phone: the tabs share the width, wrapping to a second row when the
   single product page adds its fourth ("Ask a question"). */
@media (max-width: 639px) {
	.rm-ptabs__list {
		flex-wrap: wrap;
		overflow: visible;
	}

	.rm-ptabs__tab {
		flex: 1 0 auto;
		min-width: 0;
		margin-bottom: -1px;
		padding-inline: var(--rm-s3);
		border-bottom: 1px solid var(--rm-line);
		font-size: var(--rm-fs-xs);
	}
}

/* X-Cart's "Ask a question" form, the single product page's fourth
   tab. The markup is the store's own (ask_question_alt.tpl, not
   edited - its field names and the image check are what popup_ask.php
   reads); this only dresses it. */
.rm-ptab .ask-question-obs p {
	margin: 0 0 var(--rm-s1);
	color: var(--rm-ink-soft);
}

.rm-ptab .product-ask-form {
	max-width: 34rem;
	margin-top: var(--rm-s5);
}

.rm-ptab .product-ask-form .input-container {
	margin-bottom: var(--rm-s4);
}

.rm-ptab .product-ask-form .float-l {
	float: none;
}

.rm-ptab .product-ask-form label {
	display: block;
	margin-bottom: var(--rm-s1);
	font-size: var(--rm-fs-sm);
	font-weight: 600;
	color: var(--rm-ink);
}

.rm-ptab .product-ask-form input[type="text"],
.rm-ptab .product-ask-form textarea {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-white);
	color: var(--rm-ink);
	font: inherit;
	font-size: 1rem;   /* 16px: iOS zooms into anything smaller */
}

.rm-ptab .product-ask-form textarea {
	min-height: 7.5rem;
	resize: vertical;
}

.rm-ptab .product-ask-form .captcha p {
	margin: 0 0 var(--rm-s2);
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}

.rm-ptab .product-ask-form .iv-img {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-s2) var(--rm-s4);
	margin-bottom: var(--rm-s3);
	font-size: var(--rm-fs-sm);
}

.rm-ptab .product-ask-form .captcha br {
	display: none;
}

.rm-ptab .product-ask-form #antibot_input_str {
	width: 12rem;
	max-width: calc(100% - 1rem);
}

.rm-ptab .product-ask-form .clr-red {
	margin-right: var(--rm-s1);
	color: var(--rm-red);
}

.rm-ptab .product-ask-form .button-row {
	margin-top: var(--rm-s5);
}

.rm-ptab .product-ask-form button.button {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 var(--rm-s6);
	border: 0;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-gold);
	color: var(--rm-navy);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-body);
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--rm-transition);
}

.rm-ptab .product-ask-form button.button:hover {
	background: var(--rm-gold-dark);
}

.rm-ptab .product-ask-form button.button span {
	padding: 0;
	background: none;
	color: inherit;
	font: inherit;
}


/* =============================================================
   11. CART

   customer/main/cart.tpl. The layout is new markup; every form,
   field, link and include inside it is the store's own - see the
   header of that template for what was diffed.

   The legacy button includes (cart_continue_shopping.tpl and co.)
   render a <div onClick="..."> wrapping an <a href="...">. Two of
   those onClick values are not valid JavaScript - "cart.php?mode=
   clear_cart" - so a click that lands on the div rather than the link
   throws. The anchors are stretched to fill their divs here, so every
   click lands on the working href.
   ============================================================= */

/* -------------------------------------------------------------
   Page head: title left, steps right - cart and checkout share it
   ------------------------------------------------------------- */
.rm-pagehead {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--rm-s4) var(--rm-s8);
	margin: var(--rm-s2) 0 var(--rm-s6);
}

.rm-pagehead__title {
	margin: 0;
	font-size: var(--rm-fs-h1);
}

.rm-pagehead__count {
	margin-left: var(--rm-s2);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-lead);
	font-weight: 400;
	letter-spacing: 0;
	color: var(--rm-ink-soft);
}

.rm-steps__num svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* -------------------------------------------------------------
   Two columns: the cart, and the order summary
   ------------------------------------------------------------- */
.rm-cart {
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.rm-cart__grid {
	display: grid;
	gap: var(--rm-s6);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

@media (min-width: 960px) {
	.rm-cart__grid {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 22.5rem);
	}
}

.rm-cart__main,
.rm-cart__summary {
	padding: var(--rm-s6);
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
}

/* -------------------------------------------------------------
   Cart lines
   ------------------------------------------------------------- */
.rm-cart__cols,
.rm-cartline {
	display: grid;
	gap: var(--rm-s5);
	grid-template-columns: 8.5rem minmax(0, 1fr) 8rem 6.5rem;
	align-items: start;
}

.rm-cart__cols {
	padding-bottom: var(--rm-s3);
	border-bottom: 1px solid var(--rm-line);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	color: var(--rm-navy);
}

.rm-cart__cols span:first-child { grid-column: 1 / 3; }
.rm-cart__cols span:nth-child(2) { text-align: center; }
.rm-cart__cols span:last-child  { text-align: right; }

.rm-cartline {
	padding-block: var(--rm-s5);
	border-bottom: 1px solid var(--rm-line);
}

.rm-cartline__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: var(--rm-s2);
	background: var(--rm-bg-alt);
	border-radius: var(--rm-radius-sm);
	overflow: hidden;
}

.rm-cartline__media img {
	width: auto;
	max-width: 100%;
	max-height: 100%;
	height: auto;
	object-fit: contain;
}

.rm-cartline__title {
	display: block;
	margin-bottom: var(--rm-s2);
	font-weight: 700;
	line-height: var(--rm-lh-snug);
	color: var(--rm-navy);
	text-decoration: none;
}

.rm-cartline__title:hover {
	color: var(--rm-blue);
	text-decoration: underline;
}

.rm-cartline .poptions-list,
.rm-cartline__meta {
	margin: 0 0 0.125rem;
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}

.rm-cartline__qty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--rm-s1);
}

.rm-cartline__qty .rm-qty__input {
	width: 2.75rem;
}

.rm-cartline__unit {
	font-size: var(--rm-fs-xs);
	color: var(--rm-muted);
}

.rm-cartline__total {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--rm-s3);
	text-align: right;
}

.rm-cartline__sum {
	font-size: var(--rm-fs-h4);
	font-weight: 700;
	color: var(--rm-navy);
}

.rm-cartline__remove {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-s1);
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
	text-decoration: underline;
}

.rm-cartline__remove:hover {
	color: var(--rm-red);
}

.rm-cartline__remove svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* -------------------------------------------------------------
   Cart foot: Continue Shopping | Clear cart, Update Cart
   ------------------------------------------------------------- */
.rm-cart__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--rm-s4);
	padding-top: var(--rm-s5);
}

.rm-cart__foot .cart_buttons_right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-s5);
}

/* Anchors fill their onClick divs - see the section note. */
.button_cart_continue,
.button_cart_clear,
.button_cart_update,
.button_cart_checkout {
	display: inline-flex;
}

.button_cart_continue a,
.button_cart_clear a,
.button_cart_update a,
.button_cart_checkout a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--rm-s2);
	width: 100%;
	text-decoration: none;
}

/* The labels come from language variables - "Continue shopping",
   "Update cart" - and the reference sets them in Title Case. Done here
   rather than by editing the store's language strings, which other
   pages share. */
.button_cart_continue a,
.button_cart_clear a,
.button_cart_update a {
	text-transform: capitalize;
}

.button_cart_continue a {
	font-weight: 600;
	color: var(--rm-navy);
}

.button_cart_continue a::before {
	content: "\2190";
}

.button_cart_continue a:hover {
	color: var(--rm-blue);
}

.button_cart_clear a {
	font-size: var(--rm-fs-sm);
	color: var(--rm-muted);
	text-decoration: underline;
}

.button_cart_update a {
	min-height: 2.75rem;
	padding: var(--rm-s3) var(--rm-s6);
	border: 1px solid var(--rm-navy);
	border-radius: var(--rm-radius-sm);
	font-weight: 600;
	color: var(--rm-navy);
	transition: background-color var(--rm-transition), color var(--rm-transition);
}

.button_cart_update a:hover {
	background: var(--rm-navy);
	color: var(--rm-white);
}

/* -------------------------------------------------------------
   Order summary
   ------------------------------------------------------------- */
.rm-cart__summary-title {
	margin: 0 0 var(--rm-s5);
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h3);
	font-weight: 800;
	color: var(--rm-navy);
}

.rm-cart__summary .cart-right-box table.totals {
	width: 100%;
	border-collapse: collapse;
}

.rm-cart__summary .cart-right-box td {
	padding: var(--rm-s2) 0;
	font-size: var(--rm-fs-body);
	color: var(--rm-ink);
	vertical-align: top;
}

.rm-cart__summary .cart-right-box td + td {
	text-align: right;
	font-weight: 600;
}

/* The shipping row is the only one whose value cell is also classed
   "total" - which makes it the one to turn green, without depending
   on row position (tax, discount and coupon rows come and go). */
.rm-cart__summary .cart-right-box td.total + td.total {
	color: var(--rm-green);
	font-weight: 700;
}

/* Estimated total - targeted by its own class rather than as the last
   row, so a future row added after it cannot take its styling. */
.rm-cart__summary .cart-right-box tr.rm-sum-total td {
	padding-top: var(--rm-s4);
	border-top: 1px solid var(--rm-line);
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h4);
	font-weight: 800;
	color: var(--rm-navy);
}

.rm-cart__summary .rm-sum-note {
	font-weight: 400;
	color: var(--rm-ink-soft);
}

/* "Tax - Calculated at checkout": a note, not a figure. */
.rm-cart__summary .cart-right-box tr.rm-sum-tax td.total-note {
	font-weight: 400;
	color: var(--rm-ink-soft);
}

/* Discounts read as reductions. */
.rm-cart__summary .cart-right-box td.rm-sum-minus {
	color: var(--rm-green);
}

.rm-cart__summary .dcoupons-clear .small {
	margin-left: var(--rm-s1);
	font-size: var(--rm-fs-xs);
	color: var(--rm-muted);
}

/* Remove on an applied coupon or gift certificate - these were an
   invisible spacer image before, so a coupon could not be taken off. */
.rm-sum-remove {
	margin-left: var(--rm-s2);
	font-size: var(--rm-fs-xs);
	font-weight: 600;
	color: var(--rm-ink-soft);
	text-decoration: underline;
}

.rm-sum-remove:hover {
	color: var(--rm-red);
}

.rm-cart__summary .cart-right-box td.total-alt-value:empty {
	display: none;
}

/* Discount code: the module's table, laid out as input + button. */
.rm-cart__summary .cart_add_coupon {
	margin-top: var(--rm-s6);
}

.rm-cart__summary .cart_add_coupon h2 {
	margin: 0 0 var(--rm-s3);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	color: var(--rm-navy);
}

/* Helper sentence under the heading; the field explains itself. */
.rm-cart__summary .cart_add_coupon .coupon_text {
	display: none;
}

.rm-cart__summary .cart_add_coupon table,
.rm-cart__summary .cart_add_coupon tbody {
	display: flex;
	gap: var(--rm-s2);
	width: 100%;
}

.rm-cart__summary .cart_add_coupon tr,
.rm-cart__summary .cart_add_coupon td {
	display: block;
	padding: 0;
}

.rm-cart__summary .cart_add_coupon tr:first-child {
	flex: 1;
	min-width: 0;
}

.rm-cart__summary .cart_add_coupon input[type=text] {
	width: 100%;
	min-height: 2.75rem;
	padding: var(--rm-s2) var(--rm-s3);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-white);
}

.rm-cart__summary .cart_add_coupon input[type=text]:focus {
	border-color: var(--rm-blue);
	outline: none;
}

/* The stock sliding-door button: a <button> wrapping two spans. */
.rm-cart__summary .cart_add_coupon button,
#opc_coupon button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: var(--rm-s2) var(--rm-s5);
	border: 0;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-navy);
	color: var(--rm-white);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	cursor: pointer;
}

.rm-cart__summary .cart_add_coupon button:hover,
#opc_coupon button:hover {
	background: var(--rm-navy-soft);
}

.rm-cart__summary .cart_add_coupon button span,
#opc_coupon button span {
	display: inline;
	padding: 0;
	background: none;
}

/* Proceed to Checkout: the gold primary, full width, with an arrow. */
.rm-cart__checkout {
	margin-top: var(--rm-s6);
}

.rm-cart__checkout .button_cart_checkout {
	display: flex;
}

.rm-cart__checkout .button_cart_checkout a {
	min-height: 3.375rem;
	padding: var(--rm-s4) var(--rm-s6);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-gold);
	color: var(--rm-navy);
	font-weight: 700;
	transition: background-color var(--rm-transition);
}

.rm-cart__checkout .button_cart_checkout a::after {
	content: "\2192";
}

.rm-cart__checkout .button_cart_checkout a:hover {
	background: var(--rm-gold-dark);
}

/* "or" between the two ways to pay */
.rm-or {
	display: flex;
	align-items: center;
	gap: var(--rm-s3);
	margin: var(--rm-s4) 0;
	font-size: var(--rm-fs-sm);
	color: var(--rm-muted);
}

.rm-or::before,
.rm-or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--rm-line);
}

/* PayPal Express: the full-width yellow button of the reference -
   PayPal's own gold (#FFC439) with their logo, which is how PayPal
   draws its checkout button. The form around it is the store's. */
.rm-cart__summary .paypal-cart-button {
	text-align: center;
}

.rm-paypal {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.75rem;
	padding: var(--rm-s2) var(--rm-s4);
	border: 0;
	border-radius: var(--rm-radius-sm);
	background: #FFC439;
	cursor: pointer;
	transition: filter var(--rm-transition);
}

.rm-paypal:hover {
	filter: brightness(0.95);
}

.rm-paypal img {
	display: block;
	width: auto;
	height: 1.5rem;
}

.rm-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--rm-s2);
	margin: var(--rm-s5) 0 0;
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}

.rm-secure svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* -------------------------------------------------------------
   Complete your shipping station
   ------------------------------------------------------------- */
.rm-crosssell {
	background: var(--rm-bg-alt);
}

/* The reference's cards are wide - product on white, centred. */
.rm-xsell .rm-card__media {
	aspect-ratio: 2 / 1;
	margin-bottom: var(--rm-s4);
}

.rm-xsell .rm-card__media img {
	height: 100%;
	width: auto;
	object-fit: contain;
}

.rm-xsell .rm-card__title {
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h4);
}

.rm-xsell .rm-card__text {
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}

/* On the product pages the band is white, as designed - the grey
   promo band and the feature strip already break the page up. */
.rm-crosssell--pdp {
	background: var(--rm-white);
}

/* Phone: one card per row, photo beside the words - two-up left the
   "Shop Carton Sealing Tape" links wrapping word by word. */
@media (max-width: 559px) {
	.rm-crosssell--pdp .rm-cat-grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.rm-crosssell--pdp .rm-xsell {
		flex-direction: row;
		align-items: center;
		gap: var(--rm-s4);
	}

	.rm-crosssell--pdp .rm-xsell .rm-card__media {
		flex: none;
		width: 6.5rem;
		aspect-ratio: 1 / 1;
		margin-bottom: 0;
	}

	.rm-crosssell--pdp .rm-xsell .rm-card__media img {
		width: 100%;
		height: 100%;
	}
}

/* -------------------------------------------------------------
   Empty cart
   ------------------------------------------------------------- */
.rm-cart--empty .myemptycartdiv {
	padding: var(--rm-s10) 0;
	text-align: center;
}

.rm-cart--empty .myemptycartdiv img {
	display: block;
	margin: 0 auto var(--rm-s6);
}

/* -------------------------------------------------------------
   Cart - narrow viewports (not in the reference)
   ------------------------------------------------------------- */
@media (max-width: 719px) {
	.rm-cart__cols {
		display: none;
	}

	.rm-cartline {
		grid-template-columns: 5rem minmax(0, 1fr);
		gap: var(--rm-s3) var(--rm-s4);
	}

	.rm-cartline__qty {
		grid-column: 2;
		align-items: flex-start;
	}

	.rm-cartline__total {
		grid-column: 2;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.rm-cart__main,
	.rm-cart__summary {
		padding: var(--rm-s4);
	}
}


/* -------------------------------------------------------------
   "Added to your cart" popup
   (modules/Add_to_cart_popup/product_added.tpl)

   A jQuery UI dialog, dialogClass "product-added". The module opens
   it 575px wide with an inline style - narrower than the design and
   wider than a phone - so the width is overridden here. jQuery UI
   centres the dialog from its rendered width, so it still centres.

   Selectors start "body .product-added": jQuery UI's theme loads
   after this file and styles the three .button()-ed links (see the
   dialog notes in section 13), and the module's own main.css styles
   .details / .upselling.
   ------------------------------------------------------------- */
body .ui-dialog.product-added {
	width: min(60rem, calc(100vw - 1.5rem)) !important;
}

/* jQuery UI writes max-height:none inline; cap it at the window so a
   tall popup scrolls inside rather than running off the screen. */
body .ui-dialog.product-added .ui-dialog-content {
	max-height: calc(100vh - 2rem) !important;
	overflow-y: auto;
	padding: clamp(1.25rem, 3vw, 2rem);
}

/* No title bar in the design - the heading is in the popup - so the
   bar is emptied and only its close X stays, in the corner. The title
   text stays in the page for screen readers. */
body .ui-dialog.product-added .ui-dialog-titlebar {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 2;
	height: 0;
	padding: 0;
	border: 0;
	background: none;
}

body .ui-dialog.product-added .ui-dialog-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

body .ui-dialog.product-added .ui-dialog-titlebar-close {
	top: var(--rm-s4);
	right: var(--rm-s4);
	margin: 0;
}

.rm-a2c__head {
	display: flex;
	align-items: center;
	gap: var(--rm-s4);
	margin: 0 0 var(--rm-s6);
	padding-right: var(--rm-s10);   /* clear of the X */
}

.rm-a2c__tick {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--rm-navy);
}

.rm-a2c__tick svg {
	width: 1.5rem;
	height: 1.5rem;
	fill: none;
	stroke: var(--rm-white);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-a2c__title {
	margin: 0;
	font-size: var(--rm-fs-h2);
	line-height: var(--rm-lh-tight);
	color: var(--rm-navy);
}

/* ---- the added product, and the cart summary beside it ---- */
.rm-a2c__main {
	display: grid;
	gap: var(--rm-s6);
	grid-template-columns: minmax(0, 1fr);
	padding-bottom: var(--rm-s6);
	border-bottom: 1px solid var(--rm-line);
}

@media (min-width: 700px) {
	.rm-a2c__main {
		grid-template-columns: minmax(0, 1fr) 16.5rem;
		align-items: start;
	}
}

.rm-a2c__product {
	display: flex;
	align-items: center;
	gap: var(--rm-s6);
}

.rm-a2c__thumb {
	flex: none;
	display: flex;
	justify-content: center;
	width: clamp(5.5rem, 16vw, 10rem);
}

.rm-a2c__thumb img,
.rm-a2c__card-img img {
	display: block;
	max-width: 100%;
	height: auto;
}

.rm-a2c__info {
	min-width: 0;
}

body .ui-dialog .rm-a2c a.rm-a2c__name {
	display: block;
	margin-bottom: var(--rm-s2);
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h3);
	font-weight: 800;
	line-height: var(--rm-lh-snug);
	color: var(--rm-navy);
	text-decoration: none;
}

.rm-a2c__options,
.rm-a2c__meta {
	margin: 0 0 var(--rm-s3);
	font-size: var(--rm-fs-lead);
	color: var(--rm-ink-soft);
}

.rm-a2c__meta + .rm-a2c__options {
	margin-top: calc(var(--rm-s2) * -1);
}

/* In the cards the size line is small, under the name. */
.rm-a2c__card-body .rm-a2c__meta {
	margin: calc(var(--rm-s1) * -1) 0 var(--rm-s2);
	font-size: var(--rm-fs-xs);
	line-height: var(--rm-lh-snug);
}

.rm-a2c__qty {
	margin: 0 0 var(--rm-s2);
	font-size: var(--rm-fs-lead);
	color: var(--rm-ink-soft);
}

.rm-a2c__price {
	margin: 0;
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h2);
	font-weight: 800;
	color: var(--rm-navy);
}

.rm-a2c .product-alt-price-value:empty {
	display: none;
}

.rm-a2c__cart {
	padding: var(--rm-s5) var(--rm-s6);
	background: var(--rm-bg-sunken);
	border-radius: var(--rm-radius-sm);
}

.rm-a2c__cart-title {
	margin: 0;
	font-size: var(--rm-fs-h3);
	color: var(--rm-navy);
}

.rm-a2c__cart-count {
	margin: var(--rm-s1) 0 var(--rm-s4);
	padding-bottom: var(--rm-s4);
	border-bottom: 1px solid #D3DBE7;
	font-size: var(--rm-fs-lead);
	color: var(--rm-ink);
}

.rm-a2c__cart-subtotal {
	display: flex;
	justify-content: space-between;
	gap: var(--rm-s3);
	margin: 0 0 var(--rm-s4);
	font-size: var(--rm-fs-lead);
	color: var(--rm-ink);
}

.rm-a2c__cart-subtotal strong {
	font-weight: 800;
	color: var(--rm-navy);
}

/* View cart: .button() turns it into a jQuery UI button (and marks
   .ui-button text-decoration:none !important), so it is put back to a
   plain underlined link here - underlined on the inner text span. */
body .product-added .rm-a2c a.view-cart {
	display: inline-block;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-lead);
	font-weight: 600;
	color: var(--rm-navy);
}

body .product-added .rm-a2c a.view-cart .ui-button-text {
	display: inline;
	padding: 0;
	line-height: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---- Continue Shopping / Proceed to Checkout ---- */
.rm-a2c__actions {
	display: grid;
	gap: var(--rm-s4);
	grid-template-columns: minmax(0, 1fr);
	max-width: 54rem;
	margin: 0 auto;
	padding-top: var(--rm-s6);
}

@media (min-width: 600px) {
	.rm-a2c__actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

body .product-added .rm-a2c .rm-btn.ui-button {
	display: inline-flex;
	margin: 0;
	padding: 0 var(--rm-s6);
	min-height: 3.5rem;
	border-radius: var(--rm-radius-sm);
	font-family: var(--rm-font-text);
	font-size: 1.125rem;
	font-weight: 700;
}

body .product-added .rm-a2c .rm-btn .ui-button-text {
	display: inline;
	padding: 0;
	line-height: 1.2;
}

body .product-added .rm-a2c .rm-btn--outline {
	background: var(--rm-white);
	border: 2px solid var(--rm-navy);
	color: var(--rm-navy);
}

body .product-added .rm-a2c .rm-btn--outline:hover,
body .product-added .rm-a2c .rm-btn--outline:focus-visible {
	background: var(--rm-navy);
	color: var(--rm-white);
}

body .product-added .rm-a2c .rm-btn--primary {
	background: var(--rm-gold);
	border: 1px solid var(--rm-gold);
	color: var(--rm-navy);
}

body .product-added .rm-a2c .rm-btn--primary:hover,
body .product-added .rm-a2c .rm-btn--primary:focus-visible {
	background: var(--rm-gold-dark);
	border-color: var(--rm-gold-dark);
	color: var(--rm-navy);
}

/* ---- express checkout ---- */
.rm-a2c__express {
	padding-top: var(--rm-s5);
	text-align: center;
}

.rm-a2c__or {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--rm-s4);
	margin: 0 0 var(--rm-s3);
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}

.rm-a2c__or::before,
.rm-a2c__or::after {
	content: "";
	width: 3.5rem;
	height: 1px;
	background: var(--rm-line);
}

/* The PayPal include prints its own "- or use -"; the line above says it. */
.rm-a2c #alternative_checkouts .paypal-cart-button p {
	display: none;
}

.rm-a2c #alternative_checkouts form {
	margin: 0;
}

.rm-a2c #alternative_checkouts input[type=image] {
	max-width: 100%;
}

/* ---- You may also like ---- */
body .product-added .rm-a2c .rm-a2c__upsell {
	margin: var(--rm-s6) 0 0;
	padding-top: var(--rm-s6);
	border-top: 1px solid var(--rm-line);
}

.rm-a2c__upsell-title {
	margin: 0 0 var(--rm-s4);
	font-size: var(--rm-fs-h3);
	color: var(--rm-navy);
}

.rm-a2c__cards {
	display: grid;
	gap: var(--rm-s4);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 700px) {
	.rm-a2c__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.rm-a2c__card {
	display: flex;
	align-items: flex-start;
	gap: var(--rm-s4);
	padding: var(--rm-s4);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
}

.rm-a2c__card-img {
	flex: none;
	display: flex;
	justify-content: center;
	width: 5.5rem;
}

.rm-a2c__card-body {
	min-width: 0;
}

/* Store product names run long; three lines, then an ellipsis. */
body .ui-dialog .rm-a2c a.rm-a2c__card-name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	margin-bottom: var(--rm-s2);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	line-height: var(--rm-lh-snug);
	color: var(--rm-navy);
	text-decoration: none;
}

.rm-a2c__card-price {
	margin: 0 0 var(--rm-s3);
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h4);
	font-weight: 800;
	color: var(--rm-navy);
}

/* The store's Buy Now button (customer/buttons/button.tpl markup), as
   the design's small outline button. */
body .product-added .rm-a2c__card button.add-to-cart-button {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: var(--rm-s2) var(--rm-s4);
	border: 1.5px solid var(--rm-navy);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-white);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-sm);
	font-weight: 600;
	color: var(--rm-navy);
	cursor: pointer;
}

body .product-added .rm-a2c__card button.add-to-cart-button:hover {
	background: var(--rm-navy);
	color: var(--rm-white);
}

body .product-added .rm-a2c__card button.add-to-cart-button span {
	display: inline;
	padding: 0;
	background: none;
}


/* =============================================================
   12. CHECKOUT  (One Page Checkout)

   CSS ONLY for everything inside the three columns. The profile,
   payment, summary and place-order templates are untouched: the
   checkout JS rebuilds #opc_profile, #opc_payment, #opc_totals,
   #opc_coupon and #opc_authbox from get_block.php, replacing their
   contents wholesale, so styling is the only thing that survives
   those reloads reliably.

   THE RULE THIS SECTION KEEPS
   No display rule on anything the page shows or hides itself. These
   carry inline display/visibility that JavaScript flips, and a CSS
   display here would override the JS and show what should be hidden:
     #email_note  #coupon-applied-container  #pmbox_44  #pmbox_72
     the duplicate .cart-right-box (inline display:none - it is the
     one outside #opc_totals, which the AJAX never refreshes, so the
     previous agency hid it; the visible one is the live one)
     #create_account_box's first div, the state/county helper span
   Layout display is set only on containers that are always shown.

   OVERRIDING THE MODULE STYLESHEET
   modules/One_Page_Checkout/main.css still loads, deliberately - it
   carries logic, not just looks: div.error-label stays hidden until
   its field gets .fill-error, the Place Order button dims when the
   JS marks it .inactive, and div.terms_n_conditions is hidden. Only
   its presentation is overridden here; selectors lead with ids so
   they outrank its "ul#opc-sections li.opc-section h2" and friends.
   Its two !important rules on .sub_tot_id cells (right-aligned,
   80% / 20%) need !important back, on text-align and width only.

   X-PAYMENTS
   The card fields in the reference are not here and must not be:
   card entry happens inside #xpc_iframe72, served by X-Payments. That
   iframe is left exactly as X-Payments sizes it.
   ============================================================= */

/* -------------------------------------------------------------
   Page head and the sign-in line
   ------------------------------------------------------------- */
#upper {
	padding-bottom: var(--rm-s2);
}

#opc_authbox #opc-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--rm-s2) var(--rm-s8);
	margin: calc(var(--rm-s3) * -1) 0 var(--rm-s6);
}

#opc_authbox #opc-cta p {
	margin: 0;
}

#opc_authbox #opc-cta-user {
	font-size: var(--rm-fs-body);
	color: var(--rm-ink);
}

#opc_authbox #opc-cta-user a {
	font-weight: 600;
	color: var(--rm-navy);
	text-decoration: underline;
}

#opc_authbox #opc-cta-tip {
	font-size: var(--rm-fs-sm);
	color: var(--rm-muted);
}

#opc_authbox .clear {
	display: none;
}

/* The old three column titles. Each column now carries its own
   heading, and after the reorder these would label the wrong column. */
#opc_authbox #opc-titles {
	display: none;
}

/* -------------------------------------------------------------
   Three columns: details | your order | payment
   Two on tablets (details beside order + payment), one on phones.
   ------------------------------------------------------------- */
ul#opc-sections {
	display: grid;
	gap: var(--rm-s6);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	margin-top: 0;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
	list-style: none;
}

ul#opc-sections > .clear {
	display: none;
}

@media (min-width: 760px) {
	ul#opc-sections {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	ul#opc-sections > #opc_one {
		grid-row: span 2;
	}
}

@media (min-width: 1140px) {
	ul#opc-sections {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
	}

	ul#opc-sections > #opc_one {
		grid-row: auto;
	}
}

/* customer/home.tpl's ready handler writes min-height:507px inline on
   every .opc-section (its #pm36 test is always truthy - jQuery objects
   are - so it always runs). Harmless side by side; on a phone it
   would leave tall empty boxes. Counters the inline value only. */
ul#opc-sections > li.opc-section {
	min-height: 0 !important;
	margin: 0;
	padding: var(--rm-s6);
	float: none;
	width: auto;
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
}

/* Column headings - numbered as the reference numbers its steps. */
#opc-sections #opc_profile > h2,
#opc-sections #opc_summary > h2,
#opc-sections #opc_payment > h2 {
	display: flex;
	align-items: center;
	gap: var(--rm-s3);
	margin: 0 0 var(--rm-s5);
	padding: 0;
	background: none;
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h3);
	font-weight: 800;
	line-height: var(--rm-lh-snug);
	color: var(--rm-navy);
}

#opc-sections #opc_profile > h2::before,
#opc-sections #opc_payment > h2::before {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 2rem;
	height: 2rem;
	border-radius: var(--rm-radius-pill);
	background: var(--rm-navy);
	color: var(--rm-white);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
}

#opc-sections #opc_profile > h2::before { content: "1"; }
#opc-sections #opc_payment > h2::before { content: "2"; }

/* -------------------------------------------------------------
   Column 1: name, address, contact
   ------------------------------------------------------------- */
#opc-sections fieldset.registerform {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

#opc-sections #opc_profile fieldset.registerform ul {
	position: static;
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
}

/* Address fields as a two-up grid; paired fields (first/last name,
   zip/phone) share a row, everything else spans it. */
#opc-sections #ship2diff_box > ul.first {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--rm-s4);
}

#opc-sections #ship2diff_box > ul.first > li {
	grid-column: 1 / -1;
	float: none;
	margin: 0;
	padding: 0;
}

#opc-sections #ship2diff_box > ul.first > li.fields-group {
	grid-column: auto;
}

#opc-sections #opc_profile .field-container {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

#opc-sections #opc_profile .data-name {
	display: flex;
	align-items: baseline;
	gap: 0.25rem;
}

#opc-sections #opc_profile .data-name label {
	font-size: var(--rm-fs-sm);
	font-weight: 600;
	color: var(--rm-navy);
}

#opc-sections .data-required,
#opc-sections .iv-box .star {
	color: var(--rm-red);
}

/* Text inputs and selects. 16px minimum so iOS does not zoom the
   page on focus. Scoped to .data-value / .iv-input so the state and
   county helper inputs - which sit outside those and are hidden by
   the page - are not given a size and dragged into view. */
#opc-sections .data-value input[type=text],
#opc-sections .data-value input[type=password],
#opc-sections .data-value select,
#opc-sections .iv-input input[type=text],
#opc-sections #coupon,
#opc-sections .checkout-customer-notes textarea,
#opc-sections input.checkout_prodtable_qty {
	width: 100%;
	min-height: 2.75rem;
	padding: var(--rm-s2) var(--rm-s3);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-white);
	color: var(--rm-ink);
	font-family: var(--rm-font-text);
	font-size: max(1rem, var(--rm-fs-sm));
}

#opc-sections .data-value input:focus,
#opc-sections .data-value select:focus,
#opc-sections .iv-input input:focus,
#opc-sections #coupon:focus,
#opc-sections textarea:focus,
#opc-sections input.checkout_prodtable_qty:focus {
	border-color: var(--rm-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(26, 79, 196, 0.15);
}

#opc-sections .ipt-nt,
#opc-sections #email_note {
	font-size: var(--rm-fs-xs);
	color: var(--rm-muted);
}

/* Email and the optional account block sit below the address, as
   the markup has them - left in DOM order so Tab order matches. */
#opc-sections #opc_profile ul.emailukfield {
	margin-top: var(--rm-s4);
}

#opc-sections .optional-label {
	margin: 0 0 var(--rm-s4);
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}

#opc-sections .optional-label label {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-s2);
	cursor: pointer;
}

#opc-sections .optionalregaccckout {
	margin-top: var(--rm-s5);
	padding-top: var(--rm-s4);
	border-top: 1px solid var(--rm-line);
}

#opc-sections .optionalregaccckout .optinl {
	display: inline-block;
	margin-bottom: 0.125rem;
	font-size: var(--rm-fs-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rm-muted);
}

#opc-sections #create_account_box > li {
	margin-top: var(--rm-s3);
}

/* Image verification and the Continue button that saves the details.
   Both are part of the store's flow: Continue is what submits
   registerform, and the payment column waits on it. */
#opc-sections div.iv-box {
	margin-top: var(--rm-s5);
	padding: var(--rm-s4);
	background: var(--rm-bg-alt);
	border-radius: var(--rm-radius-sm);
	font-size: var(--rm-fs-sm);
	line-height: var(--rm-lh-snug);
	color: var(--rm-ink-soft);
}

/* height:auto - the store's captcha stylesheet fixes the row at 60px,
   and with the input and Continue stacked (100px) Continue hung out of
   the grey box and over the card's bottom edge, desktop and phone. */
#opc-sections .iv-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-s3);
	height: auto;
	margin-top: var(--rm-s3);
}

#opc-sections .iv-row .iv-img {
	float: none;
	margin: 0;
}

#opc-sections .iv-row .iv-img img {
	display: block;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
}

#opc-sections .iv-row .iv-img br {
	display: none;
}

#opc-sections .iv-input input[type=text] {
	width: 8rem;
}

#opc-sections #opc_profile .iv-row .iv-input .button {
	margin: var(--rm-s3) 0 0;
}

/* -------------------------------------------------------------
   Shared: the stock sliding-door button (<button> > span > span)
   ------------------------------------------------------------- */
#opc-sections button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: var(--rm-s2) var(--rm-s6);
	border: 0;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-navy);
	color: var(--rm-white);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--rm-transition);
}

#opc-sections button.button:hover {
	background: var(--rm-navy-soft);
}

#opc-sections button.button span {
	display: inline;
	padding: 0;
	background: none;
}

/* -------------------------------------------------------------
   Column 2: your order
   ------------------------------------------------------------- */
#opc-sections #opc_summary table.totals {
	width: 100%;
	border-collapse: collapse;
}

#opc-sections #opc_summary table.cart-content {
	width: 100%;
	border-collapse: collapse;
}

#opc-sections table.cart-content tr.checkout_prodtable_head td {
	padding: 0 0 var(--rm-s2);
	border-bottom: 1px solid var(--rm-line);
	background: none;
	font-size: var(--rm-fs-xs);
	font-weight: 700;
	color: var(--rm-navy);
	text-align: right;
}

#opc-sections table.cart-content tr.checkout_prodtable_row td {
	height: auto;
	padding: var(--rm-s4) 0 var(--rm-s4) var(--rm-s2);
	border-bottom: 1px solid var(--rm-line);
	background: none;
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink);
	text-align: right;
	vertical-align: top;
}

#opc-sections table.cart-content tr.checkout_prodtable_head td.product,
#opc-sections table.cart-content tr.checkout_prodtable_row td.product {
	width: auto;
	padding-left: 0;
	text-align: left;
}

#opc-sections table.cart-content tr.checkout_prodtable_row td.product a {
	font-weight: 700;
	color: var(--rm-navy);
}

#opc-sections input.checkout_prodtable_qty {
	width: 3.25rem;
	padding-inline: var(--rm-s1);
	text-align: center;
}

#opc-sections table.cart-content td.buttons_row {
	padding-top: var(--rm-s3);
}

#opc-sections td.buttons_row .continue_but,
#opc-sections td.buttons_row .update_but {
	display: inline-block;
	margin-right: var(--rm-s4);
	font-size: var(--rm-fs-sm);
}

#opc-sections td.buttons_row .button_cart_update a {
	min-height: 2.25rem;
	padding: var(--rm-s1) var(--rm-s4);
}

/* Totals: label left, value right. The module forces both cells
   right-aligned at 80/20 with !important. */
#opc-sections #opc_summary .cart-right-box {
	margin-top: var(--rm-s4);
}

#opc-sections #opc_summary .cart-right-box td {
	padding: var(--rm-s2) 0;
	font-size: var(--rm-fs-body);
	color: var(--rm-ink);
}

#opc-sections #opc_summary .sub_tot_id td.total {
	width: auto !important;
	text-align: left !important;
}

#opc-sections #opc_summary .sub_tot_id td.total-value {
	width: auto !important;
	text-align: right !important;
	font-weight: 600;
}

#opc-sections #opc_summary .sub_tot_id td.total-alt-value:empty {
	display: none;
}

/* Tax rows. The store's template gives a tax's AMOUNT the label's class
   ("total", left-aligned above) and adds a third, empty cell for an
   alternative currency - so the amount sat left-aligned in the middle
   of the row instead of under the other amounts (reported). Right-
   aligned and the empty cell dropped, as for the total row. */
#opc-sections #opc_summary .sub_tot_id tr.subtotals_row > td.total + td.total {
	text-align: right !important;
	font-weight: 600;
}

#opc-sections #opc_summary .sub_tot_id tr > td:empty {
	display: none;
}

/* The PayPal option's logo (payments/ps_paypal_pro_express_checkout.tpl) */
#opc-sections img.rm-paypal-mark {
	display: block;
	width: auto;
	height: 2.125rem;
}

#opc-sections #opc_summary #mytotal1,
#opc-sections #opc_summary #mytotal1 + td,
#opc-sections #opc_summary tr:last-child > td.total {
	padding-top: var(--rm-s4);
	border-top: 1px solid var(--rm-line);
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h4);
	font-weight: 800;
	color: var(--rm-navy);
}

/* Discount code */
#opc-sections #opc_coupon {
	margin-top: var(--rm-s5);
	padding-top: var(--rm-s5);
	border-top: 1px solid var(--rm-line);
}

#opc-sections #opc_coupon > strong,
#opc-sections #coupon-applied-container strong {
	display: block;
	margin-bottom: var(--rm-s2);
	font-size: var(--rm-fs-sm);
	color: var(--rm-navy);
}

#opc-sections #coupon_code_container form {
	display: flex;
	gap: var(--rm-s2);
}

#opc-sections #coupon_code_container #coupon {
	flex: 1;
	min-width: 0;
}

/* Order notes. This is the VISIBLE box (#customer_notes1); cus_notes()
   copies it into #customer_notes, the one checkout_form submits. */
#opc-sections #opc_summary_li > .checkout-customer-notes {
	margin-top: var(--rm-s5);
}

#opc-sections #opc_summary_li > .checkout-customer-notes label {
	display: block;
	margin-bottom: var(--rm-s2);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	color: var(--rm-navy);
}

#opc-sections .checkout-customer-notes textarea {
	min-height: 5.5rem;
	resize: vertical;
}

/* -------------------------------------------------------------
   Column 3: payment and Place Order
   ------------------------------------------------------------- */
#opc-sections #opc_payment {
	margin-bottom: var(--rm-s5);
}

#opc-sections table.checkout-payments {
	width: 100%;
	border-collapse: collapse;
}

#opc-sections table.checkout-payments td {
	padding: var(--rm-s3) var(--rm-s2);
	vertical-align: middle;
	background: none;
}

#opc-sections table.checkout-payments > tbody > tr:not(.payment-details) {
	border: 1px solid var(--rm-line);
}

#opc-sections table.checkout-payments label {
	font-weight: 700;
	color: var(--rm-navy);
	cursor: pointer;
}

#opc-sections table.checkout-payments input[type=radio] {
	width: 1.125rem;
	height: 1.125rem;
	accent-color: var(--rm-navy);
	cursor: pointer;
}

#opc-sections .checkout-payments tr.payment-details td {
	padding: var(--rm-s3) var(--rm-s2);
	background: none;
}

#opc-sections .checkout-payments .visa_card img {
	max-width: 100%;
	height: auto;
}

/* The submitted notes field. It is visibility:hidden inline and was
   still holding its space; taken out of flow here - live does the
   same with position:absolute. Still in the form, still submitted. */
#opc-sections #checkout_form .checkout-customer-notes {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* Place Order: full width, gold. #btn_box stays position:static -
   home.tpl sets bottom:126px on it, which only bites if positioned. */
#opc-sections #btn_box {
	position: static;
	margin: var(--rm-s2) 0 0;
}

#opc-sections #btn_box .place-order-button {
	display: block;
	width: 100%;
}

#opc-sections #btn_box button.place-order-button {
	display: flex;
	width: 100%;
	min-height: 3.375rem;
	padding: var(--rm-s4) var(--rm-s6);
	background: var(--rm-gold);
	color: var(--rm-navy);
	font-size: var(--rm-fs-body);
}

#opc-sections #btn_box button.place-order-button:hover {
	background: var(--rm-gold-dark);
}

/* Until the details are complete the JS marks the button .inactive
   and swaps its click for a message. The module already dims it;
   this keeps it legible, which is what the reference draws. */
#opc-sections #btn_box button.place-order-button.inactive {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Card error pop-up text (modules/XPayments_Connector/xpc_popup.tpl) */
.rm-xpc-msg {
	min-width: 15rem;
	max-width: 24rem;
	color: var(--rm-ink);
	line-height: 1.45;
}

/* "Complete your address, then Continue" - shown above Continue when
   the still-locked payment column is clicked (script in opc_main.tpl) */
.rm-opc-hint {
	list-style: none;
	margin: 0 0 var(--rm-s4);
	padding: var(--rm-s3) var(--rm-s4);
	border-left: 4px solid var(--rm-gold);
	border-radius: var(--rm-radius-sm);
	background: #FFF6E5;
	color: var(--rm-navy);
	font-size: var(--rm-fs-sm, 0.9375rem);
	font-weight: 600;
	line-height: 1.4;
}

.rm-opc-hint.is-flash {
	animation: rm-opc-hint 1.2s ease-out;
}

@keyframes rm-opc-hint {
	0%, 30% { background: #FCD38A; }
	100%    { background: #FFF6E5; }
}

@media (prefers-reduced-motion: reduce) {
	.rm-opc-hint.is-flash { animation: none; }
}

#opc-sections .rm-terms {
	margin: var(--rm-s4) 0 0;
	font-size: var(--rm-fs-sm);
	line-height: var(--rm-lh-snug);
	color: var(--rm-ink-soft);
	text-align: center;
}

#opc-sections .rm-terms a {
	color: var(--rm-navy);
	text-decoration: underline;
}

/* -------------------------------------------------------------
   Checkout - the supplied checkout design (signed-in view)

   Written against the page as a browser builds it, with a saved
   address (screenshots from a headless browser). Everything here is
   presentation; the templates' forms and buttons are unchanged apart
   from the wrappers noted in each template.
   ------------------------------------------------------------- */
@media (min-width: 1140px) {
	ul#opc-sections {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr) minmax(0, 1fr);
		gap: var(--rm-s5);
	}
}

ul#opc-sections > li.opc-section {
	padding: var(--rm-s5);
	border-radius: var(--rm-radius-lg);
}

#opc-sections #opc_profile > h2,
#opc-sections #opc_summary > h2,
#opc-sections #opc_payment > h2 {
	font-size: 1.375rem;
}

#opc-sections #opc_summary > h2 .rm-opc-carticon {
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	fill: none;
	stroke: var(--rm-navy);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---- Name and address: the saved address ---- */
#opc-sections .opc-checkout-profile .optional-label {
	margin: 0;
}

/* The grey bar with its Edit button - shipping and billing. */
#opc-sections .rm-opc-addrhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rm-s3);
	margin: 0 0 var(--rm-s3);
	padding: var(--rm-s2) var(--rm-s3);
	background: var(--rm-bg-hero);
	border-radius: var(--rm-radius-sm);
}

/* Written at this weight to beat the module's "ul#opc-sections
   li.opc-section h3" (18px, normal weight, 7px padding, 20px bottom
   margin), which pushed the title to the top of its bar. */
ul#opc-sections li.opc-section h3.rm-opc-addrhead__title {
	margin: 0;
	padding: 0;
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-body);
	font-weight: 700;
	line-height: var(--rm-lh-snug);
	color: var(--rm-ink);
}

#opc-sections .rm-opc-addrhead button.rm-opc-edit {
	min-height: 2rem;
	padding: 0.25rem 0.9rem;
	border: 1px solid var(--rm-navy);
	background: var(--rm-white);
	color: var(--rm-navy);
	font-size: var(--rm-fs-xs);
}

#opc-sections .rm-opc-addrhead button.rm-opc-edit:hover {
	background: var(--rm-navy);
	color: var(--rm-white);
}

#opc-sections .rm-opc-addr {
	padding: 0 var(--rm-s3);
	font-size: var(--rm-fs-body);
	line-height: 1.5;
	color: var(--rm-ink);
}

/* Name in bold; company and the rest as plain lines. */
#opc-sections .rm-opc-addr .address-line.onee {
	font-weight: 700;
}

#opc-sections .rm-opc-addr .address-line.onee > p,
#opc-sections .rm-opc-addr .address-line.compny {
	margin: 0 !important;
	font-weight: 400;
}

#opc-sections .rm-opc-addr .address-line.onee > p:empty {
	display: none;
}

/* Address book (signed-in customers): a small link under the address. */
#opc-sections .opc-checkout-profile .address-book-link {
	margin: var(--rm-s2) var(--rm-s3) 0;
	font-size: var(--rm-fs-sm);
}

#opc-sections .opc-checkout-profile .address-book-link a {
	color: var(--rm-blue);
	text-decoration: underline;
}

#opc-sections .opc-profile-billing-address {
	margin-top: var(--rm-s5);
	padding-top: var(--rm-s5);
	border-top: 1px solid var(--rm-line);
}

#opc-sections .rm-opc-same {
	margin: 0;
	color: var(--rm-ink-soft);
}

#opc-sections .rm-opc-addr--billing {
	margin-bottom: var(--rm-s5);
}

/* Update Billing Address: full width, navy. */
#opc-sections .opc-profile-billing-address > .button-row {
	text-align: left;
}

#opc-sections .opc-profile-billing-address > .button-row button.button,
#opc-sections .opc-profile-billing-address button.update-billing-address {
	width: 100%;
	min-height: 3rem;
	font-size: var(--rm-fs-body);
}

/* The billing editor (after Update Billing Address): the same two-up
   field grid as the address form. */
#opc-sections .opc-profile-billing-address fieldset > ul.first {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--rm-s4);
	margin-bottom: var(--rm-s5);
}

#opc-sections .opc-profile-billing-address fieldset > ul.first > li {
	grid-column: 1 / -1;
	float: none;
	margin: 0;
	padding: 0;
}

#opc-sections .opc-profile-billing-address fieldset > ul.first > li.fields-group {
	grid-column: auto;
}

/* ---- Order summary ---- */
/* The module paints the table #eee and lets it show through the 1px
   cell spacing - the grey rows. */
#opc-sections table.cart-content {
	background: none;
}

#opc-sections table.cart-content tr.checkout_prodtable_row td {
	border-bottom: 1px solid var(--rm-line);
}

#opc-sections table.cart-content tr.checkout_prodtable_head td {
	padding: var(--rm-s2) var(--rm-s2);
	border-bottom: 0;
	background: #EEF1F5;
	font-size: var(--rm-fs-xs);
	line-height: 1.3;
	color: var(--rm-ink);
	vertical-align: middle;
}

#opc-sections table.cart-content tr.checkout_prodtable_head td:first-child {
	padding-left: var(--rm-s3);
	border-radius: var(--rm-radius-sm) 0 0 var(--rm-radius-sm);
}

#opc-sections table.cart-content tr.checkout_prodtable_head td:last-child {
	border-radius: 0 var(--rm-radius-sm) var(--rm-radius-sm) 0;
}

#opc-sections table.cart-content tr.checkout_prodtable_row td {
	padding: var(--rm-s4) var(--rm-s2);
	vertical-align: middle;
	white-space: nowrap;
}

#opc-sections table.cart-content tr.checkout_prodtable_row td.product {
	white-space: normal;
}

#opc-sections .rm-opc-line {
	display: flex;
	align-items: flex-start;
	gap: var(--rm-s3);
}

#opc-sections .rm-opc-line__img {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	overflow: hidden;
	border-radius: var(--rm-radius-sm);
}

#opc-sections .rm-opc-line__img img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

#opc-sections .rm-opc-line__truck {
	width: 2.75rem;
	height: auto;
	fill: var(--rm-navy);
	stroke: var(--rm-white);
	stroke-width: 1.5;
	stroke-linejoin: round;
}

#opc-sections .rm-opc-line__info {
	min-width: 0;
	font-size: var(--rm-fs-sm);
	line-height: var(--rm-lh-snug);
}

#opc-sections .rm-opc-line__info > a {
	display: block;
	font-weight: 700;
	color: var(--rm-navy);
	text-decoration: none;
}

#opc-sections .rm-opc-line__info > a:hover {
	text-decoration: underline;
}

#opc-sections .rm-opc-line__opts {
	display: block;
	margin-top: var(--rm-s1);
	font-size: var(--rm-fs-xs);
	color: var(--rm-ink-soft);
}

/* The store writes the option class in lower case ("set: 25 Pieces"). */
#opc-sections .rm-opc-line__opts::first-letter {
	text-transform: uppercase;
}

/* Quantity: a small box. Its 30px width is an inline style. */
#opc-sections input.checkout_prodtable_qty {
	width: 2.5rem !important;
	min-height: 2.5rem;
	padding: 0;
	text-align: center;
}

/* Continue Shopping / Update Cart: two outline buttons, centred. */
#opc-sections table.cart-content td.buttons_row {
	padding: var(--rm-s4) 0 var(--rm-s2);
	background: none;   /* the module's row-shading image */
	text-align: center;
}

#opc-sections td.buttons_row .continue_but,
#opc-sections td.buttons_row .update_but {
	display: inline-block;
	margin: 0 var(--rm-s1);
}

#opc-sections td.buttons_row .button_cart_continue a,
#opc-sections td.buttons_row .button_cart_update a {
	min-height: 2.5rem;
	padding: var(--rm-s2) var(--rm-s5);
	border: 1.5px solid var(--rm-navy);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-white);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	color: var(--rm-navy);
}

#opc-sections td.buttons_row .button_cart_continue a:hover,
#opc-sections td.buttons_row .button_cart_update a:hover {
	background: var(--rm-navy);
	color: var(--rm-white);
}

/* Subtotal and Total in a grey panel. */
#opc-sections #opc_totals .cart-right-box {
	margin-top: var(--rm-s3);
	padding: var(--rm-s1) var(--rm-s4);
	background: #EEF1F5;
	border-radius: var(--rm-radius-sm);
}

#opc-sections #opc_totals .cart-right-box td {
	padding: var(--rm-s3) 0;
}

/* The shipping cell between Subtotal and Total holds only a space
   unless a shipping choice is shown there; with the panel's cell
   padding it made a gap. No padding, and no line box for the space. */
#opc-sections #opc_totals .cart-right-box td#ship_id_0 {
	padding: 0;
	font-size: 0;
	line-height: 0;
}

#opc-sections #opc_totals .cart-right-box td#ship_id_0 > * {
	font-size: var(--rm-fs-sm);
	line-height: var(--rm-lh-snug);
}

#opc-sections #opc_summary #mytotal1,
#opc-sections #opc_summary #mytotal1 + td,
#opc-sections #opc_summary tr:last-child > td.total {
	border-top-color: #D5DDE8;
	font-size: 1.375rem;
}

#opc-sections #opc_coupon {
	margin-top: var(--rm-s5);
	padding-top: 0;
	border-top: 0;
}

#opc-sections #opc_summary_li > .checkout-customer-notes label .rm-opc-optional {
	font-weight: 700;
}

@media (max-width: 479px) {
	#opc-sections .opc-profile-billing-address fieldset > ul.first {
		grid-template-columns: minmax(0, 1fr);
	}

	#opc-sections table.cart-content tr.checkout_prodtable_row td {
		white-space: normal;
	}

	#opc-sections .rm-opc-line__img {
		display: none;
	}
}

/* -------------------------------------------------------------
   Checkout - phones (not in the reference)
   ------------------------------------------------------------- */
@media (max-width: 479px) {
	#opc-sections #ship2diff_box > ul.first {
		grid-template-columns: minmax(0, 1fr);
	}

	ul#opc-sections > li.opc-section {
		padding: var(--rm-s4);
	}
}


/* =============================================================
   13. SIGN IN  (login page, login popup, password recovery)

   customer/main/login.tpl, customer/main/login_form.tpl and
   customer/help/Password_Recovery*.tpl. Form fields reuse the design
   system's .rm-field / .rm-label / .rm-input; this section is layout.
   ============================================================= */
.rm-auth {
	padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
}

.rm-auth__grid {
	display: grid;
	gap: var(--rm-s6);
	grid-template-columns: minmax(0, 1fr);
	max-width: 60rem;
	margin-inline: auto;
	align-items: start;
}

@media (min-width: 820px) {
	.rm-auth__grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		gap: var(--rm-s8);
	}
}

.rm-auth__card {
	padding: clamp(1.5rem, 3.5vw, 2.5rem);
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg);
}

.rm-auth__card--alt {
	background: var(--rm-bg-alt);
}

.rm-auth__card--single {
	max-width: 30rem;
	margin-inline: auto;
}

.rm-auth__title {
	margin: 0 0 var(--rm-s3);
	font-size: var(--rm-fs-h2);
}

.rm-auth__subtitle {
	margin: 0 0 var(--rm-s3);
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h3);
	font-weight: 800;
	color: var(--rm-navy);
}

.rm-auth__lead {
	margin: 0 0 var(--rm-s6);
	color: var(--rm-ink-soft);
	line-height: var(--rm-lh-body);
}

.rm-auth__note {
	margin: 0 0 var(--rm-s5);
	padding: var(--rm-s3) var(--rm-s4);
	background: var(--rm-blue-tint);
	border-radius: var(--rm-radius-sm);
	font-size: var(--rm-fs-sm);
	color: var(--rm-navy);
}

.rm-auth__form {
	display: grid;
	gap: var(--rm-s5);
}

.rm-auth__form .rm-field {
	margin: 0;
}

.rm-auth__form .rm-input {
	width: 100%;
}

/* "Password" on the left, "Forgot password?" on the right. */
.rm-auth__labelrow {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--rm-s3);
}

.rm-auth__forgot {
	font-size: var(--rm-fs-sm);
	font-weight: 600;
	color: var(--rm-navy);
	text-decoration: underline;
}

.rm-auth__forgot:hover {
	color: var(--rm-blue);
}

.rm-auth__form .rm-btn {
	margin-top: var(--rm-s1);
}

.rm-auth__points {
	display: grid;
	gap: var(--rm-s3);
	margin: 0 0 var(--rm-s6);
	padding: 0;
	list-style: none;
}

.rm-auth__points li {
	position: relative;
	padding-left: var(--rm-s8);
	color: var(--rm-ink);
}

/* Gold tick, same mark as the product page's bullet list. */
.rm-auth__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.125rem;
	height: 1.125rem;
	border-radius: 50%;
	background: var(--rm-gold);
}

.rm-auth__points li::after {
	content: "";
	position: absolute;
	left: 0.3rem;
	top: 0.5em;
	width: 0.5rem;
	height: 0.28rem;
	border-left: 2px solid var(--rm-white);
	border-bottom: 2px solid var(--rm-white);
	transform: rotate(-45deg);
}

.rm-auth__small {
	margin: var(--rm-s4) 0 0;
	font-size: var(--rm-fs-sm);
	color: var(--rm-muted);
	text-align: center;
}

.rm-auth__switch {
	margin: var(--rm-s5) 0 0;
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
	text-align: center;
}

.rm-auth__switch a {
	font-weight: 600;
	color: var(--rm-navy);
	text-decoration: underline;
}

.rm-auth .error-message {
	margin: var(--rm-s2) 0 0;
	font-size: var(--rm-fs-sm);
}

/* Captcha (password recovery has it on; sign-in has it off today). */
.rm-auth .iv-box {
	padding: var(--rm-s4);
	background: var(--rm-bg-alt);
	border-radius: var(--rm-radius-sm);
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}

.rm-auth .iv-box hr {
	margin: var(--rm-s2) 0 var(--rm-s3);
	border: 0;
	border-top: 1px solid var(--rm-line);
}

.rm-auth .iv-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-s3);
	margin-top: var(--rm-s3);
}

.rm-auth .iv-row .iv-img {
	float: none;
	margin: 0;
}

.rm-auth .iv-row .iv-img img {
	display: block;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
}

.rm-auth .iv-row .iv-img br {
	display: none;
}

.rm-auth .iv-input input[type=text] {
	width: 8rem;
	min-height: 2.75rem;
	padding: var(--rm-s2) var(--rm-s3);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	font-size: max(1rem, var(--rm-fs-sm));
}

.rm-auth .iv-box .star {
	color: var(--rm-red);
}

/* -------------------------------------------------------------
   The popup ("Welcome back")

   The form sets its own width - the dialog is width:auto and would
   otherwise shrink to the fields. .rm-auth__form--popup is the popup's
   only wrapper that popup_open.js does not replace on each load.
   ------------------------------------------------------------- */
.rm-auth__form--popup {
	width: min(29.75rem, calc(100vw - 5rem));   /* 476, the design's */
	gap: var(--rm-s6);
	text-align: left;
}

.rm-auth__form--popup .rm-auth__title {
	margin: 0 0 var(--rm-s2);
	font-size: clamp(1.75rem, 1.35rem + 1.1vw, 2.5rem);   /* 28 -> 40 */
	line-height: 1.1;
}

.rm-auth__form--popup .rm-auth__lead {
	margin: 0;
	font-size: var(--rm-fs-lead);
	color: var(--rm-ink);
}

.rm-auth__form--popup .rm-label {
	margin-bottom: var(--rm-s2);
	font-size: var(--rm-fs-body);
	font-weight: 700;
}

.rm-auth__form--popup .rm-input {
	min-height: 3.25rem;   /* 52 */
}

.rm-auth__form--popup .rm-btn--primary {
	min-height: 3.75rem;   /* 60 */
	font-size: 1.125rem;
}

/* "Forgot password?" sits under the field, right-aligned. */
.rm-auth__forgotrow {
	margin: var(--rm-s2) 0 0;
	text-align: right;
}

/* A hairline, the question, then the outline button. */
.rm-auth__new {
	padding-top: var(--rm-s5);
	border-top: 1px solid var(--rm-line);
	text-align: center;
}

.rm-auth__new p {
	margin: 0 0 var(--rm-s3);
	color: var(--rm-ink);
}

.rm-auth__new .rm-btn {
	min-height: 3.5rem;
	font-weight: 700;
}

/* Password field with its show/hide button inside the box. */
.rm-pw {
	position: relative;
}

.rm-pw .rm-input {
	padding-right: 3.25rem;
}

/* Edge draws its own eye in password fields; two would sit side by side. */
.rm-pw .rm-input::-ms-reveal {
	display: none;
}

.rm-pw__toggle {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--rm-ink-soft);
	cursor: pointer;
}

.rm-pw__toggle:hover {
	color: var(--rm-navy);
}

.rm-pw__toggle:focus-visible {
	outline: 2px solid var(--rm-blue);
	outline-offset: -6px;
	border-radius: var(--rm-radius-sm);
}

.rm-pw__toggle svg {
	width: 1.375rem;
	height: 1.375rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Struck through while the password is showing. */
.rm-pw__slash {
	display: none;
}

.rm-pw__toggle[aria-pressed="true"] .rm-pw__slash {
	display: inline;
}

/* -------------------------------------------------------------
   The jQuery UI dialog frame

   Brought into the design. Scoped to .ui-dialog, so this also dresses
   X-Cart's other popups - its message boxes ("Coupon not available")
   use the same frame - which keeps them consistent rather than leaving
   one design inside another. Presentation only: sizes and behaviour
   stay jQuery UI's.

   Every selector starts with "body" on purpose. jQuery UI's own theme
   (lib/jqueryui) is bundled into the SECOND stylesheet on the page,
   which loads after this one, so at equal specificity it wins. Until
   that was found, the dialog's padding, its Verdana font, its grey
   links and its overlay were all the theme's rather than these.
   ------------------------------------------------------------- */
body .ui-dialog {
	padding: 0;
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg);
	box-shadow: 0 18px 48px rgba(10, 48, 129, 0.18);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-body);
	color: var(--rm-ink);
}

body .ui-dialog input,
body .ui-dialog select,
body .ui-dialog textarea,
body .ui-dialog button {
	font-family: var(--rm-font-text);
}

body .ui-dialog .ui-dialog-content a:not(.rm-btn) {
	color: var(--rm-navy);
}

body .ui-dialog .ui-dialog-titlebar {
	padding: var(--rm-s4) var(--rm-s12) var(--rm-s4) var(--rm-s5);
	border: 0;
	border-bottom: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg) var(--rm-radius-lg) 0 0;
	background: var(--rm-white);
	color: var(--rm-navy);
}

body .ui-dialog .ui-dialog-title {
	margin: 0;
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h4);
	font-weight: 800;
}

/* The close button: a drawn navy X in place of jQuery UI's sprite. The
   X is two pseudo-element bars - an inline SVG url(../../skin/royalnew/css/) would not survive
   X-Cart's CSS bundler, which prefixes every url(../../skin/royalnew/css/) with a path. The
   button keeps jQuery UI's title="close" as its name. */
body .ui-dialog .ui-dialog-titlebar-close {
	top: 50%;
	right: var(--rm-s3);
	width: 2.25rem;
	height: 2.25rem;
	margin: -1.125rem 0 0;
	padding: 0;
	border: 0;
	border-radius: var(--rm-radius-sm);
	background: transparent;
	cursor: pointer;
}

body .ui-dialog .ui-dialog-titlebar-close:hover,
body .ui-dialog .ui-dialog-titlebar-close:focus {
	padding: 0;
	border: 0;
	background: var(--rm-bg-alt);
}

/* The icon sprite and the hidden "close" text. Written at this weight
   because the jQuery UI theme, which loads later, sets
   ".ui-dialog .ui-dialog-titlebar-close span { display: block }" at the
   same weight as a plain "> *" rule - that showed the blue sprite
   square beside the X. */
body .ui-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close span {
	display: none;
}

body .ui-dialog .ui-dialog-titlebar-close::before,
body .ui-dialog .ui-dialog-titlebar-close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.375rem;
	height: 2px;
	margin: -1px 0 0 -0.6875rem;
	border-radius: 1px;
	background: var(--rm-navy);
	transform: rotate(45deg);
}

body .ui-dialog .ui-dialog-titlebar-close::after {
	transform: rotate(-45deg);
}

body .ui-dialog .ui-dialog-content {
	padding: var(--rm-s5);
}

/* The popup's own message line - how a wrong password is reported. */
body .ui-dialog div.ajax-popup-error-message {
	margin: 0 0 var(--rm-s4);
	padding: var(--rm-s3) var(--rm-s4);
	border-radius: var(--rm-radius-sm);
	font-size: var(--rm-fs-sm);
}

body .ui-dialog div.ajax-popup-error-message p {
	margin: 0;
}

body .ui-dialog div.ajax-popup-error-message .ui-icon {
	float: left;
	margin: 0.1em var(--rm-s2) 0 0;
}

body .ui-widget-overlay {
	background: rgba(3, 17, 38, 0.48);   /* the design's wash */
	opacity: 1;
}

/* The sign-in dialog has no title bar in the design: the heading is in
   the form, and the X floats in the corner. The title stays in the
   page for screen readers. Browsers without :has() keep the plain
   title bar - it still works, it just says "Login" above the form. */
body .ui-dialog:has(.rm-auth__form--popup) .ui-dialog-titlebar {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1;
	height: 0;
	padding: 0;
	border: 0;
	background: none;
}

body .ui-dialog:has(.rm-auth__form--popup) .ui-dialog-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

body .ui-dialog:has(.rm-auth__form--popup) .ui-dialog-titlebar-close {
	top: var(--rm-s4);
	right: var(--rm-s4);
	margin: 0;
}

/* jQuery UI caps the content at 600px less the title bar, as an inline
   style set while the dialog is still empty. This form is taller than
   that at full size, which put a scrollbar in the popup; let it use the
   window's height instead, and scroll only if the window is short. */
body .ui-dialog:has(.rm-auth__form--popup) .ui-dialog-content {
	max-height: calc(100vh - 2rem) !important;
	padding: var(--rm-s12) clamp(1.5rem, 4vw, 3.125rem) var(--rm-s10);
}


/* =============================================================
   14. ABOUT US  (customer/main/rm_about.tpl, static page 3)
   ============================================================= */

/* Intro: short gold rule over a left-aligned two-line heading. */
.rm-about-intro__title {
	margin: 0 0 var(--rm-s6);
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h2);
	font-weight: 800;
	line-height: var(--rm-lh-tight);
	letter-spacing: var(--rm-ls-tight);
	color: var(--rm-navy);
}

.rm-about-intro__title::before {
	content: "";
	display: block;
	width: 3.5rem;
	height: 3px;
	margin-bottom: var(--rm-s6);
	background: var(--rm-gold);
}

.rm-about-intro__body {
	max-width: 62rem;
}

.rm-about-intro__body p {
	margin: 0 0 var(--rm-s5);
	font-size: var(--rm-fs-lead);
	line-height: var(--rm-lh-body);
	color: var(--rm-ink-soft);
}

.rm-about-intro__body strong {
	color: var(--rm-ink);
}

/* Three facts, divided by hairlines on wide screens. */
.rm-stats {
	display: grid;
	gap: var(--rm-s6);
	grid-template-columns: minmax(0, 1fr);
	margin: var(--rm-s8) 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 820px) {
	.rm-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0;
	}

	.rm-stat + .rm-stat {
		padding-left: var(--rm-s8);
		border-left: 1px solid var(--rm-line);
	}

	.rm-stat {
		padding-right: var(--rm-s6);
	}
}

.rm-stat {
	display: flex;
	align-items: flex-start;
	gap: var(--rm-s4);
}

.rm-stat__icon {
	flex: none;
	width: 2.75rem;
	height: 2.75rem;
	fill: none;
	stroke: var(--rm-gold);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-stat__icon--solid {
	fill: var(--rm-gold);
	stroke: none;
}

.rm-stat__value {
	display: block;
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h3);
	font-weight: 800;
	line-height: 1.2;
	color: var(--rm-navy);
}

.rm-stat__label {
	display: block;
	margin-top: var(--rm-s1);
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}

/* -------------------------------------------------------------
   Timeline

   Phones: one column, the gold line down the left.
   860px up: two columns. Each card spans two grid rows and the right
   column starts one row lower, so every right-hand card sits between
   two left-hand ones - the design's zigzag - with the rows sizing
   themselves to the content, whatever each card's length.
   ------------------------------------------------------------- */
.rm-about-story {
	background: var(--rm-bg-alt);
}

.rm-about-story .rm-section-heading {
	margin-bottom: var(--rm-s2);
}

.rm-about-story__lead {
	margin: 0 0 var(--rm-s10);
	text-align: center;
	color: var(--rm-ink-soft);
}

.rm-timeline {
	position: relative;
	display: grid;
	gap: var(--rm-s4);
	max-width: 62rem;
	margin: 0 auto;
	padding: 0 0 0 var(--rm-s10);
	list-style: none;
}

.rm-timeline::before {
	content: "";
	position: absolute;
	top: var(--rm-s4);
	bottom: var(--rm-s4);
	left: 0.5rem;
	width: 2px;
	background: var(--rm-gold);
}

.rm-timeline__item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: var(--rm-s5);
	padding: var(--rm-s5) var(--rm-s6);
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
	box-shadow: var(--rm-shadow-sm);
}

/* Ring on the line, level with the year. */
.rm-timeline__item::before {
	content: "";
	position: absolute;
	top: 1.6rem;
	left: calc(-1 * var(--rm-s10) + 0.5rem + 1px - 0.5625rem);
	width: 1.125rem;
	height: 1.125rem;
	border: 3px solid var(--rm-gold);
	border-radius: 50%;
	background: var(--rm-white);
}

.rm-timeline__year {
	flex: none;
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h2);
	font-weight: 800;
	line-height: 1;
	color: var(--rm-navy);
}

.rm-timeline__body {
	font-size: var(--rm-fs-sm);
	line-height: var(--rm-lh-snug);
	color: var(--rm-ink-soft);
}

.rm-timeline__body strong {
	display: block;
	margin-bottom: var(--rm-s1);
	font-size: var(--rm-fs-body);
	color: var(--rm-navy);
}

@media (min-width: 860px) {
	.rm-timeline {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--rm-s16);
		row-gap: var(--rm-s3);
		padding: 0;
	}

	.rm-timeline::before {
		left: calc(50% - 1px);
	}

.rm-timeline__item:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.rm-timeline__item:nth-child(2) { grid-column: 2; grid-row: 2 / span 2; }
.rm-timeline__item:nth-child(3) { grid-column: 1; grid-row: 3 / span 2; }
.rm-timeline__item:nth-child(4) { grid-column: 2; grid-row: 4 / span 2; }
.rm-timeline__item:nth-child(5) { grid-column: 1; grid-row: 5 / span 2; }
.rm-timeline__item:nth-child(6) { grid-column: 2; grid-row: 6 / span 2; }
.rm-timeline__item:nth-child(7) { grid-column: 1; grid-row: 7 / span 2; }
.rm-timeline__item:nth-child(8) { grid-column: 2; grid-row: 8 / span 2; }
.rm-timeline__item:nth-child(9) { grid-column: 1; grid-row: 9 / span 2; }
.rm-timeline__item:nth-child(10) { grid-column: 2; grid-row: 10 / span 2; }
.rm-timeline__item:nth-child(11) { grid-column: 1; grid-row: 11 / span 2; }
.rm-timeline__item:nth-child(12) { grid-column: 2; grid-row: 12 / span 2; }

	.rm-timeline__item:nth-child(odd)::before {
		left: auto;
		right: calc(-1 * var(--rm-s8) - 0.5625rem);
	}

	.rm-timeline__item:nth-child(even)::before {
		left: calc(-1 * var(--rm-s8) - 0.5625rem);
	}
}

/* -------------------------------------------------------------
   Locations
   ------------------------------------------------------------- */
.rm-locations {
	display: grid;
	gap: var(--rm-s6);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
	.rm-locations {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.rm-location {
	display: flex;
	align-items: center;
	gap: var(--rm-s5);
	padding: var(--rm-s3);
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
}

.rm-location__media {
	flex: 0 0 45%;
	min-width: 0;
}

.rm-location__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--rm-radius-sm);
}

.rm-ph--location {
	aspect-ratio: 16 / 10;
}

.rm-location__text p {
	margin: 0;
	color: var(--rm-ink-soft);
}

.rm-location__pin {
	display: block;
	width: 1.75rem;
	height: 1.75rem;
	margin-bottom: var(--rm-s2);
	fill: var(--rm-gold);
}

.rm-location__title {
	margin: 0 0 var(--rm-s2);
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h4);
	font-weight: 800;
	color: var(--rm-navy);
}

@media (max-width: 479px) {
	.rm-location {
		flex-direction: column;
		align-items: stretch;
	}

	.rm-location__text {
		padding: 0 var(--rm-s2) var(--rm-s2);
	}
}

.rm-about-cta {
	margin: var(--rm-s8) 0 0;
	text-align: center;
}


/* =============================================================
   15. SHIPPING & TRANSIT TIMES  (customer/main/rm_transit.tpl,
       static page 2)
   ============================================================= */
.rm-transit-head {
	padding-block: var(--rm-s6) var(--rm-s8);
}

.rm-transit-head__title {
	margin: 0 0 var(--rm-s3);
	font-size: var(--rm-fs-h1);
}

.rm-transit-head__lead {
	margin: 0;
	font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);   /* 17 -> 22 */
	color: var(--rm-ink-soft);
}

.rm-transit {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---- the map card ---- */
.rm-transit__mapcard {
	padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2.25rem) clamp(1rem, 2.5vw, 1.75rem);
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg);
}

/* A short gold rule, then the title; the subtitle lines up under the
   title, not under the rule. */
.rm-transit__maphead {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: var(--rm-s4);
	align-items: center;
	margin-bottom: var(--rm-s4);
}

.rm-transit__maphead::before {
	content: "";
	width: clamp(2rem, 4vw, 3.5rem);
	height: 3px;
	background: var(--rm-gold);
}

.rm-transit__maptitle {
	margin: 0;
	font-size: var(--rm-fs-h2);
	line-height: var(--rm-lh-tight);
	color: var(--rm-navy);
}

.rm-transit__mapsub {
	grid-column: 2;
	margin: var(--rm-s1) 0 0;
	font-size: var(--rm-fs-lead);
	color: var(--rm-ink-soft);
}

.rm-usmap {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1215 / 612;
	overflow: visible;
}

.rm-usmap__states path {
	stroke: var(--rm-white);
	stroke-width: 1.6;
	stroke-linejoin: round;
}

/* Labels never take the pointer: the state underneath keeps its hover
   tooltip (its <title>). */
.rm-usmap__labels,
.rm-usmap__side,
.rm-usmap__warehouses {
	pointer-events: none;
}

.rm-usmap text {
	text-anchor: middle;
}

.rm-usmap__days {
	font-family: var(--rm-font-display);
	font-size: 19px;
	font-weight: 800;
	fill: var(--rm-white);
}

.rm-usmap__days--sm {
	font-size: 14px;
}

.rm-usmap__abbr {
	font-family: var(--rm-font-text);
	font-size: 12.5px;
	font-weight: 600;
	fill: var(--rm-white);
	fill-opacity: 0.92;
}

.rm-usmap__abbr--out {
	fill: var(--rm-navy);
	fill-opacity: 1;
}

.rm-usmap__leader {
	fill: none;
	stroke: var(--rm-navy-dark);
	stroke-width: 1;
}

.rm-usmap__pin {
	fill: var(--rm-white);
}

.rm-usmap .rm-usmap__sidelabel {
	font-family: var(--rm-font-text);
	font-size: 15px;
	font-weight: 600;
	fill: var(--rm-navy);
	text-anchor: start;
}

.rm-usmap__sidedays {
	font-family: var(--rm-font-display);
	font-weight: 800;
}

.rm-usmap__callout-box {
	fill: var(--rm-gold);
}

.rm-usmap__callout-text {
	font-family: var(--rm-font-display);
	font-size: 18px;
	font-weight: 800;
	fill: var(--rm-navy);
}

.rm-usmap__arrow {
	fill: none;
	stroke: var(--rm-gold);
	stroke-width: 3;
	stroke-linecap: round;
}

.rm-usmap__arrowhead {
	fill: var(--rm-gold);
}

.rm-usmap__wh {
	fill: var(--rm-gold);
	stroke: var(--rm-white);
	stroke-width: 3;
}

.rm-transit__note {
	margin: var(--rm-s4) 0 0;
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
	text-align: center;
}

/* The same numbers as a list, for screens where the map's labels are
   too small to read. The map is legible from 768px up. */
.rm-transit__list {
	margin-top: var(--rm-s4);
	border-top: 1px solid var(--rm-line);
	padding-top: var(--rm-s3);
}

.rm-transit__list summary {
	min-height: var(--rm-tap-target);
	display: flex;
	align-items: center;
	font-weight: 600;
	color: var(--rm-navy);
	cursor: pointer;
}

.rm-transit__list ul {
	columns: 2;
	column-gap: var(--rm-s6);
	margin: var(--rm-s2) 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--rm-fs-sm);
}

.rm-transit__list li {
	display: flex;
	justify-content: space-between;
	gap: var(--rm-s2);
	padding: var(--rm-s1) 0;
	border-bottom: 1px solid var(--rm-line-soft);
	break-inside: avoid;
}

.rm-transit__list strong {
	color: var(--rm-navy);
}

@media (min-width: 768px) {
	.rm-transit__list {
		display: none;
	}
}

/* ---- free / same-day shipping ---- */
.rm-transit__perks {
	display: grid;
	gap: var(--rm-s5);
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.rm-transit__perks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.rm-transit__perk {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.5vw, 1.75rem);
	padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem);
	background: var(--rm-bg-hero);
	border-radius: var(--rm-radius-sm);
}

.rm-transit__perkicon {
	flex: none;
	width: clamp(2.75rem, 5vw, 4rem);
	height: auto;
	fill: none;
	stroke: var(--rm-gold);
	stroke-width: 2.25;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Gold divider between the icon and the words. */
.rm-transit__perktext {
	padding-left: clamp(1rem, 2.5vw, 1.75rem);
	border-left: 1px solid var(--rm-gold);
}

.rm-transit__perktext h3 {
	margin: 0 0 var(--rm-s1);
	font-size: var(--rm-fs-h3);
	color: var(--rm-navy);
}

.rm-transit__perktext p {
	margin: 0;
	color: var(--rm-ink-soft);
	line-height: var(--rm-lh-snug);
}

/* ---- California & Nevada ---- */
.rm-transit__canv {
	display: flex;
	justify-content: center;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0 var(--rm-s2);
	margin: 0;
	font-size: var(--rm-fs-lead);
	color: var(--rm-navy);
	text-align: center;
}

.rm-transit__canv::before {
	content: "";
	align-self: center;
	width: 3.25rem;
	height: 2px;
	margin-right: var(--rm-s3);
	background: var(--rm-gold);
}

.rm-transit__canv strong {
	font-weight: 800;
}

/* ---- the four policy blocks: 2 x 2, hairlines between ---- */
.rm-transit__policies {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.rm-transit__policy {
	padding-block: var(--rm-s6);
	border-top: 1px solid var(--rm-line);
}

.rm-transit__policy:first-child {
	padding-top: 0;
	border-top: 0;
}

@media (min-width: 768px) {
	.rm-transit__policies {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rm-transit__policy {
		padding-inline: 0 clamp(1.5rem, 3vw, 2.5rem);
	}

	/* right-hand column: a vertical hairline on its left */
	.rm-transit__policy:nth-child(even) {
		padding-inline: clamp(1.5rem, 3vw, 2.5rem) 0;
		border-left: 1px solid var(--rm-line);
	}

	.rm-transit__policy:nth-child(-n+2) {
		padding-top: 0;
		border-top: 0;
	}

	/* the design's row rule stops short of the column rule */
	.rm-transit__policy:nth-child(n+3) {
		border-top: 0;
		background: linear-gradient(var(--rm-line), var(--rm-line)) no-repeat;
		background-size: calc(100% - clamp(1.5rem, 3vw, 2.5rem)) 1px;
	}

	.rm-transit__policy:nth-child(4) {
		background-position: right top;
	}
}

.rm-transit__policy h3 {
	margin: 0 0 var(--rm-s3);
	font-size: var(--rm-fs-h3);
	color: var(--rm-navy);
}

.rm-transit__policy ul {
	display: grid;
	gap: var(--rm-s2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rm-transit__policy li {
	position: relative;
	padding-left: var(--rm-s6);
	color: var(--rm-ink-soft);
	line-height: var(--rm-lh-snug);
}

.rm-transit__policy li::before {
	content: "";
	position: absolute;
	left: 0.25rem;
	top: 0.5em;
	width: 0.4375rem;
	height: 0.4375rem;
	border-radius: 50%;
	background: var(--rm-gold);
}


/* =============================================================
   16. CUSTOM PRINTING  (customer/main/custom.tpl, custom.php)
   ============================================================= */

/* Hero: the homepage hero's copy column; the photo is a framed card,
   not a bleed - it is a dark photo, and a bleed would put a navy block
   against the grey band's edge. */
@media (min-width: 900px) {
	.rm-cp-hero .rm-cp-hero__media {
		display: block;
		margin: 0;
		align-self: center;
	}
}

.rm-cp-hero__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--rm-radius-lg);
	box-shadow: 0 18px 40px rgba(10, 48, 129, 0.16);
}

.rm-cp-heading {
	margin-bottom: var(--rm-s2);
}

.rm-cp-sub {
	margin: 0 0 var(--rm-s8);
	color: var(--rm-ink-soft);
	text-align: center;
}

/* Five across on a wide screen. */
@media (min-width: 1100px) {
	.rm-cat-grid--5 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* ---- the three steps ----
   On a pale blue band, as the client's design has it: number, icon,
   then the words, with a chevron between steps on a wide screen. */
.rm-cp-steps {
	background: linear-gradient(180deg, var(--rm-blue-tint), #F5F9FE);
}

.rm-cp-steps .rm-cp-heading {
	margin-bottom: var(--rm-s8);
}

.rm-cp-steplist {
	display: grid;
	gap: var(--rm-s5);
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.rm-cp-steplist {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0;
	}

	.rm-cp-step {
		position: relative;
		padding-inline: clamp(1.25rem, 2.5vw, 2.25rem);
	}

	/* the chevron - two borders of a turned square */
	.rm-cp-step + .rm-cp-step::before {
		content: "";
		position: absolute;
		left: -0.5rem;
		top: 1.125rem;
		width: 0.625rem;
		height: 0.625rem;
		border-top: 2px solid var(--rm-navy);
		border-right: 2px solid var(--rm-navy);
		opacity: 0.4;
		transform: rotate(45deg);
	}
}

.rm-cp-step {
	display: flex;
	align-items: flex-start;
	gap: var(--rm-s3);
}

.rm-cp-step__num {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--rm-gold);
	font-family: var(--rm-font-display);
	font-size: 1.375rem;
	font-weight: 800;
	color: var(--rm-white);
}

.rm-cp-step__icon {
	flex: none;
	width: 3rem;
	height: 3rem;
	padding: 0.25rem;
	fill: none;
	stroke: var(--rm-navy);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-cp-step__text {
	padding-top: 0.125rem;
	color: var(--rm-ink-soft);
	line-height: var(--rm-lh-snug);
}

.rm-cp-step__text strong {
	display: block;
	margin-bottom: var(--rm-s1);
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h4);
	font-weight: 800;
	color: var(--rm-navy);
}

/* ---- the quote form ----
   A white card on the grey band, as in the design. On a phone the card
   itself drops away and the three group cards sit on the band, so the
   fields keep their width. */
.rm-cp-quote {
	scroll-margin-top: var(--rm-s4);
}

.rm-cp-card {
	padding: clamp(1.25rem, 3vw, 2.5rem);
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg);
	box-shadow: var(--rm-shadow);
}

@media (max-width: 599px) {
	.rm-cp-card {
		padding: 0;
		background: none;
		border: 0;
		box-shadow: none;
	}
}

.rm-cp-quote__head {
	display: grid;
	gap: var(--rm-s5);
	align-items: center;
	margin-bottom: var(--rm-s6);
}

@media (min-width: 900px) {
	.rm-cp-quote__head {
		grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
		gap: var(--rm-s8);
	}
}

/* Title with a short gold rule after it. */
.rm-cp-quote__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-s2) var(--rm-s5);
	margin: 0 0 var(--rm-s2);
	font-size: var(--rm-fs-h2);
	line-height: var(--rm-lh-tight);
	color: var(--rm-navy);
}

.rm-cp-quote__title::after {
	content: "";
	width: 3rem;
	height: 2px;
	background: var(--rm-gold);
}

.rm-cp-quote__lead {
	margin: 0;
	font-size: var(--rm-fs-lead);
	color: var(--rm-ink-soft);
}

.rm-cp-tip {
	display: flex;
	align-items: flex-start;
	gap: var(--rm-s4);
	padding: var(--rm-s4) var(--rm-s5);
	background: var(--rm-blue-tint);
	border-radius: var(--rm-radius);
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}

.rm-cp-tip p {
	margin: 0;
	line-height: var(--rm-lh-snug);
}

.rm-cp-tip strong {
	display: block;
	margin-bottom: 2px;
	color: var(--rm-navy);
}

.rm-cp-tip a {
	font-weight: 600;
	color: var(--rm-blue);
	white-space: nowrap;
}

.rm-cp-tip__icon {
	flex: none;
	width: 2rem;
	height: 2rem;
	fill: none;
	stroke: var(--rm-navy);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---- the three groups ----
   No overflow: hidden on the card - the captcha's reply (notify.js)
   pops out beside its field and must not be clipped. */
.rm-cp-group {
	min-width: 0;
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg);
}

.rm-cp-group + .rm-cp-group {
	margin-top: var(--rm-s5);
}

.rm-cp-group__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-s1) var(--rm-s3);
	padding: var(--rm-s3) var(--rm-s5);
	background: var(--rm-blue-tint);
	border-bottom: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg) var(--rm-radius-lg) 0 0;
}

.rm-cp-group__num {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--rm-gold);
	font-family: var(--rm-font-display);
	font-size: 1.125rem;
	font-weight: 800;
	color: var(--rm-white);
}

.rm-cp-group__icon {
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	fill: none;
	stroke: var(--rm-navy);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-cp-group__title {
	margin: 0;
	font-family: var(--rm-font-display);
	font-size: 1.25rem;
	font-weight: 800;
	line-height: var(--rm-lh-snug);
	color: var(--rm-navy);
}

/* On a phone the number is enough; without the icon each title stays on
   one line ("Your contact information" otherwise drops under it). */
@media (max-width: 599px) {
	.rm-cp-group__icon {
		display: none;
	}

	.rm-cp-group__title {
		font-size: var(--rm-fs-h4);
	}
}

/* Under the title on a phone, at the far end of the bar when there is room. */
.rm-cp-group__hint {
	flex-basis: 100%;
	margin: 0;
	font-size: var(--rm-fs-xs);
	line-height: var(--rm-lh-snug);
	color: var(--rm-ink-soft);
}

@media (min-width: 900px) {
	.rm-cp-group__hint {
		flex-basis: auto;
		margin-left: auto;
		font-style: italic;
		text-align: right;
	}
}

.rm-cp-group__body {
	padding: var(--rm-s5);
}

@media (min-width: 900px) {
	.rm-cp-group__body {
		padding: var(--rm-s6);
	}
}

.rm-cp-grid {
	display: grid;
	gap: var(--rm-s5) var(--rm-s8);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 700px) {
	.rm-cp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rm-cp-grid__full {
		grid-column: 1 / -1;
	}
}

/* Printing: sides, colors and coverage side by side. */
@media (min-width: 1000px) {
	.rm-cp-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--rm-s6);
	}
}

/* Delivery, under the printing fields. */
.rm-cp-grid + .rm-cp-grid {
	margin-top: var(--rm-s5);
	padding-top: var(--rm-s5);
	border-top: 1px dashed var(--rm-line);
}

.rm-cp-grid .rm-field {
	margin: 0;
}

.rm-cp-hint {
	margin: var(--rm-s1) 0 0;
	font-size: var(--rm-fs-xs);
	line-height: var(--rm-lh-snug);
	color: var(--rm-muted);
}

/* A drawn chevron on the selects - two gradient triangles, because an
   SVG url(../../skin/royalnew/css/) would not survive X-Cart's CSS bundler. */
.rm-cp-form .rm-select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 2.75rem;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--rm-navy) 50%),
		linear-gradient(135deg, var(--rm-navy) 50%, transparent 50%);
	background-position:
		calc(100% - 1.375rem) 50%,
		calc(100% - 1rem) 50%;
	background-size: 0.375rem 0.375rem;
	background-repeat: no-repeat;
}

.rm-cp-form .rm-select::-ms-expand {
	display: none;
}

/* Size before a product is chosen: only the prompt is in the list. */
.rm-cp-form .rm-select:invalid {
	color: var(--rm-muted);
}

.rm-cp-form .rm-select option {
	color: var(--rm-ink);
}

.rm-cp-captcha .rm-input {
	max-width: 10rem;
}

.rm-cp-captcha strong {
	color: var(--rm-navy);
}

#captcha-message:empty {
	display: none;
}

/* The captcha's reply (notify.js) is one unbroken line by default, which
   ran off a phone screen and made the page scroll sideways. */
.rm-cp-captcha .notifyjs-container {
	width: max-content;
	max-width: min(28rem, calc(100vw - 4.5rem));
}

.rm-cp-captcha .notifyjs-bootstrap-base {
	white-space: normal;
}

.rm-cp-submit {
	margin-top: var(--rm-s8);
	text-align: center;
}

/* The arrow sits over the input (an input cannot hold one), and lets
   clicks through to it. */
.rm-cp-submit__btn {
	position: relative;
	display: inline-block;
	width: min(20rem, 100%);
}

.rm-cp-submit .rm-btn {
	float: none;
	width: 100%;
	padding-inline: 3rem;
	font-size: var(--rm-fs-lead);
}

.rm-cp-submit__arrow {
	position: absolute;
	top: 50%;
	right: 1.25rem;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: -0.625rem;
	fill: none;
	stroke: var(--rm-navy);
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
	transition: transform var(--rm-transition);
}

.rm-cp-submit__btn:hover .rm-cp-submit__arrow {
	transform: translateX(3px);
}

.rm-cp-submit p {
	margin: var(--rm-s3) 0 0;
	font-size: var(--rm-fs-sm);
	color: var(--rm-muted);
}

/* Step 2's link down to the templates. */
.rm-cp-step__link {
	display: inline-block;
	margin-top: var(--rm-s1);
	font-weight: 600;
	color: var(--rm-blue);
}

/* ---- Download mailer templates (custom_templates.tpl) ----
   At the foot of the quote card: a tinted header bar, then the tiles,
   six across on a wide screen, four, three, then two on a phone. */
.rm-cp-tpls {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	scroll-margin-top: var(--rm-s4);
}

.rm-cp-tpls__head {
	display: grid;
	gap: var(--rm-s4);
	align-items: center;
	margin-bottom: var(--rm-s4);
	padding: var(--rm-s5);
	background: var(--rm-blue-tint);
	border-radius: var(--rm-radius-lg);
}

@media (min-width: 900px) {
	.rm-cp-tpls__head {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: var(--rm-s8);
		padding: var(--rm-s5) var(--rm-s6);
	}
}

.rm-cp-tpls__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-s2) var(--rm-s5);
	margin: 0 0 var(--rm-s1);
	font-size: var(--rm-fs-h3);
	line-height: var(--rm-lh-tight);
	color: var(--rm-navy);
}

.rm-cp-tpls__title::after {
	content: "";
	width: 3rem;
	height: 2px;
	background: var(--rm-gold);
}

.rm-cp-tpls__lead {
	margin: 0;
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}

.rm-cp-tpls__format {
	display: flex;
	align-items: center;
	gap: var(--rm-s3);
	margin: 0;
	padding: var(--rm-s3) var(--rm-s4);
	background: var(--rm-white);
	border-radius: var(--rm-radius);
	font-size: var(--rm-fs-xs);
	line-height: var(--rm-lh-snug);
	color: var(--rm-ink-soft);
}

.rm-cp-tpls__format strong {
	display: block;
	font-size: var(--rm-fs-sm);
	color: var(--rm-navy);
}

.rm-cp-tpls__format-icon {
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	fill: none;
	stroke: var(--rm-blue);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Flex, not grid: eleven tiles never fill the last row, and this
   centres it. --rm-tpl-cols is the tiles per row. */
.rm-cp-tpls__grid {
	--rm-tpl-cols: 2;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--rm-s3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rm-cp-tpls__grid > li {
	flex: 0 0 calc((100% - (var(--rm-tpl-cols) - 1) * var(--rm-s3)) / var(--rm-tpl-cols));
	min-width: 0;
}

@media (min-width: 600px) {
	.rm-cp-tpls__grid {
		--rm-tpl-cols: 3;
	}
}

@media (min-width: 900px) {
	.rm-cp-tpls__grid {
		--rm-tpl-cols: 4;
	}
}

@media (min-width: 1100px) {
	.rm-cp-tpls__grid {
		--rm-tpl-cols: 6;
	}
}

/* The whole tile is the link. */
.rm-cp-tpl {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--rm-s2);
	height: 100%;
	padding: var(--rm-s4) var(--rm-s3);
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
	text-align: center;
	text-decoration: none;
	transition: border-color var(--rm-transition),
	            box-shadow var(--rm-transition);
}

.rm-cp-tpl:hover,
.rm-cp-tpl:focus-visible {
	border-color: var(--rm-blue);
	box-shadow: var(--rm-shadow);
}

.rm-cp-tpl__art {
	display: block;
	width: 100%;
	height: 7.5rem;
}

@media (max-width: 599px) {
	.rm-cp-tpl__art {
		height: 6rem;
	}
}

/* The drawing: mailer, flap strip, and the print area in the pink of a
   printer's proof line. */
/* Strokes are in the drawing's own units (about 6px each), not
   non-scaling: Chrome then measures the dashes in screen pixels and the
   print line came out solid. */
.rm-cp-tpl__bag {
	fill: #F3F5F8;
	stroke: #C5CED9;
	stroke-width: 0.17;
}

.rm-cp-tpl__flap {
	fill: #DDE3EA;
}

.rm-cp-tpl__print {
	fill: none;
	stroke: #E04C8A;
	stroke-width: 0.17;
	stroke-dasharray: 0.6 0.4;
}

.rm-cp-tpl__size {
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-body);
	font-weight: 800;
	color: var(--rm-navy);
}

.rm-cp-tpl__cta {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-s1);
	font-size: var(--rm-fs-xs);
	font-weight: 600;
	line-height: var(--rm-lh-snug);
	color: var(--rm-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rm-cp-tpl__icon {
	flex: none;
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-cp-tpl--other {
	background: var(--rm-bg-alt);
	border-style: dashed;
}

.rm-cp-tpl__ask {
	fill: var(--rm-white);
	stroke: #C5CED9;
	stroke-width: 0.17;
	stroke-dasharray: 0.6 0.4;
}

.rm-cp-tpl__q {
	fill: none;
	stroke: var(--rm-navy);
	stroke-width: 0.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}


/* =============================================================
   17. REGISTER  (customer/main/register.tpl, register_account.tpl,
       register_address_info.tpl - register.php, and a signed-in
       customer's profile)

   The field rows are still the store's table rows (address_fields.tpl
   is shared with the address book and the shipping estimator, so it
   is not touched). Here each table becomes a two-column grid and each
   row a small grid of its own: label and "*" on one line, the field
   under them. Rows the store hides with an inline display:none stay
   hidden - an inline style outranks these rules.

   Pairs (first/last name, city/state, ZIP/country, the passwords) sit
   side by side using :has(). A browser without :has() stacks every
   field full width instead - nothing is lost.
   ============================================================= */
.rm-reg {
	padding-block: var(--rm-s6) clamp(2.5rem, 5vw, 4rem);
}

.rm-reg__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--rm-s3) var(--rm-s8);
	margin-bottom: var(--rm-s4);
}

.rm-reg__title {
	margin: 0 0 var(--rm-s2);
	font-size: var(--rm-fs-h1);
}

.rm-reg__lead {
	margin: 0;
	font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
	color: var(--rm-ink-soft);
}

.rm-reg__signin {
	margin: var(--rm-s3) 0 0;
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}

.rm-reg__signin a,
.rm-reg__already a {
	font-weight: 700;
	color: var(--rm-blue);
	text-decoration: none;
}

.rm-reg__signin a:hover,
.rm-reg__already a:hover {
	text-decoration: underline;
}

.rm-reg__req {
	margin: 0 0 var(--rm-s5);
	font-size: var(--rm-fs-sm);
	color: var(--rm-red);
}

.rm-reg__error {
	margin: 0 0 var(--rm-s5);
	padding: var(--rm-s3) var(--rm-s4);
	border: 1px solid #F3C6C2;
	border-radius: var(--rm-radius-sm);
	background: #FFF6F5;
}

.rm-reg__done {
	padding: var(--rm-s6);
	background: var(--rm-bg-alt);
	border-radius: var(--rm-radius-lg);
}

/* ---- the four cards ---- */
.rm-reg__grid {
	display: grid;
	gap: var(--rm-s5);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
	.rm-reg__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.rm-reg__card--account,
	.rm-reg__card--verify {
		grid-column: 1 / -1;
	}
}

.rm-reg__card {
	min-width: 0;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background: var(--rm-bg-hero);
	border-radius: var(--rm-radius-lg);
}

.rm-reg__h {
	display: flex;
	align-items: center;
	gap: var(--rm-s4);
	margin: 0 0 var(--rm-s5);
	font-size: var(--rm-fs-h3);
	color: var(--rm-navy);
}

.rm-reg__num {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--rm-navy);
	font-size: 1.125rem;
	color: var(--rm-white);
}

/* ---- tables as grids ---- */
.rm-reg table.data-table,
.rm-reg table.address_register_cus {
	display: block;
	width: 100%;
	margin: 0;
	border: 0;
}

.rm-reg table.data-table > tbody {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--rm-s4) var(--rm-s5);
}

.rm-reg table.data-table > tbody + tbody {
	margin-top: var(--rm-s4);
}

.rm-reg table.data-table tr {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas:
		"name  req"
		"value value";
	align-items: baseline;
	gap: var(--rm-s2) 0.3rem;
}

.rm-reg table.data-table td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}

.rm-reg td.data-name {
	grid-area: name;
}

.rm-reg td.data-name label {
	font-size: var(--rm-fs-sm);
	font-weight: 500;
	color: var(--rm-ink);
}

.rm-reg td.data-required,
.rm-reg td.address_b_2_class {
	grid-area: req;
	font-size: var(--rm-fs-sm);
	color: var(--rm-red);
}

.rm-reg td.address_b_2_class::before {
	content: "(optional)";
	color: var(--rm-muted);
}

.rm-reg td.data-value {
	grid-area: value;
	min-width: 0;
}

.rm-reg td.data-value input[type=text],
.rm-reg td.data-value input[type=password],
.rm-reg td.data-value select,
.rm-reg .iv-input input[type=text] {
	display: block;
	width: 100%;
	min-height: var(--rm-tap-target);
	padding: var(--rm-s3) var(--rm-s4);
	background-color: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	font-family: var(--rm-font-text);
	font-size: max(1rem, var(--rm-fs-body));   /* no iOS zoom on focus */
	color: var(--rm-ink);
}

.rm-reg td.data-value input:focus,
.rm-reg td.data-value select:focus,
.rm-reg .iv-input input:focus {
	border-color: var(--rm-blue);
	box-shadow: 0 0 0 3px rgba(26, 79, 196, 0.12);
	outline: none;
}

/* Same drawn chevron as the quote form's selects (no url(../../skin/royalnew/css/) - see 16). */
.rm-reg td.data-value select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 2.75rem;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--rm-navy) 50%),
		linear-gradient(135deg, var(--rm-navy) 50%, transparent 50%);
	background-position:
		calc(100% - 1.375rem) 50%,
		calc(100% - 1rem) 50%;
	background-size: 0.375rem 0.375rem;
	background-repeat: no-repeat;
}

.rm-reg .rm-pw input {
	padding-right: 3.25rem;
}

/* The passwords' match marker has no styling of its own on this skin
   (its icons lived in main.css); it holds only a spacer image. */
.rm-reg .validate-mark {
	display: none;
}

/* Written as "table.data-table tr:has(...)": these must outweigh the
   full-width rule above (.rm-reg table.data-table tr). The first
   version was ".rm-reg tr:has(...)", which is lighter, so the pairs
   never happened - caught on a browser screenshot. */
@supports selector(:has(a)) {
	.rm-reg table.data-table tr:has([name$="[firstname]"]),
	.rm-reg table.data-table tr:has([name$="[lastname]"]),
	.rm-reg table.data-table tr:has([name$="[city]"]),
	.rm-reg table.data-table tr:has([name$="[state]"]),
	.rm-reg table.data-table tr:has([name$="[zipcode]"]),
	.rm-reg table.data-table tr:has([name$="[country]"]),
	.rm-reg table.data-table tr:has(#passwd1),
	.rm-reg table.data-table tr:has(#passwd2) {
		grid-column: auto;
	}

	/* ZIP before Country, as the design pairs them; Phone after both. */
	.rm-reg table.data-table tr:has([name$="[zipcode]"]) { order: 1; }
	.rm-reg table.data-table tr:has([name$="[country]"]) { order: 2; }
	.rm-reg table.data-table tr:has([name$="[phone]"])   { order: 3; }
}

/* A phone is too narrow for pairs. */
@media (max-width: 479px) {
	.rm-reg table.data-table > tbody {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---- "Use my billing address" ---- */
.rm-reg td.register-section-title {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-s1) var(--rm-s3);
}

.rm-reg td.register-section-title input[type=checkbox] {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	accent-color: var(--rm-navy);
}

.rm-reg td.register-section-title label {
	font-weight: 600;
	color: var(--rm-ink);
	cursor: pointer;
}

.rm-reg__note {
	flex-basis: 100%;
	padding-left: calc(1.25rem + var(--rm-s3));
	font-size: var(--rm-fs-xs);
	color: var(--rm-muted);
}

/* ---- verification ---- */
.rm-reg .iv-box {
	display: inline-grid;
	gap: var(--rm-s3);
	max-width: 100%;
	padding: var(--rm-s4);
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
	text-align: left;
}

.rm-reg .iv-img {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-s2) var(--rm-s4);
	float: none;
}

.rm-reg .iv-img img {
	display: block;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
}

.rm-reg .iv-img br,
.rm-reg .iv-box > br,
.rm-reg .iv-box .clearing {
	display: none;
}

.rm-reg .iv-img a {
	font-weight: 600;
	color: var(--rm-blue);
}

.rm-reg .iv-input {
	display: flex;
	align-items: center;
	gap: var(--rm-s2);
}

.rm-reg .iv-input .star {
	color: var(--rm-red);
}

.rm-reg .iv-input input[type=text] {
	max-width: 14rem;
}

.rm-reg__captcha,
.rm-reg__submit {
	text-align: left;
}

.rm-reg__submit {
	margin-top: var(--rm-s5);
}

.rm-reg__card--verify .rm-reg__submit:first-child {
	margin-top: 0;
}

/* The store's submit button (customer/buttons/button.tpl markup) as
   the design's gold button, with the arrow drawn after the label. */
.rm-reg__submit button.main-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--rm-s3);
	min-height: 3.375rem;
	padding: 0 var(--rm-s8);
	border: 1px solid var(--rm-gold);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-gold);
	font-family: var(--rm-font-text);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--rm-navy);
	cursor: pointer;
}

.rm-reg__submit button.main-button:hover {
	background: var(--rm-gold-dark);
	border-color: var(--rm-gold-dark);
}

.rm-reg__submit button.main-button span {
	display: inline;
	padding: 0;
	background: none;
}

/* Only on "Create Account" - a signed-in customer's Submit has none. */
.rm-reg__submit button.main-button[title="Create Account"]::after {
	content: "\2192";
	font-size: 1.25em;
	line-height: 1;
}

.rm-reg__already {
	margin: var(--rm-s4) 0 0;
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}


/* =============================================================
   18. CONTACT US  (customer/help/contactus.tpl,
       help.php?section=contactus)
   ============================================================= */
.rm-contact {
	padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem);
}

.rm-contact__grid {
	display: grid;
	gap: var(--rm-s6);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
	.rm-contact__grid {
		grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
	}
}

.rm-contact__card {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg);
}

.rm-contact__title {
	margin: 0 0 var(--rm-s2);
	font-size: var(--rm-fs-h2);
	color: var(--rm-navy);
}

.rm-contact__lead {
	margin: 0 0 var(--rm-s5);
	color: var(--rm-ink-soft);
}

.rm-contact__form {
	display: grid;
	gap: var(--rm-s4);
}

.rm-contact__form .rm-field {
	margin: 0;
}

.rm-contact__pair {
	display: grid;
	gap: var(--rm-s4);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
	.rm-contact__pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.rm-contact__form .rm-textarea {
	min-height: 7.5rem;
}

/* Same drawn chevron as the quote form's selects (no url(../../skin/royalnew/css/) - see 16). */
.rm-contact__form .rm-select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 2.75rem;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--rm-navy) 50%),
		linear-gradient(135deg, var(--rm-navy) 50%, transparent 50%);
	background-position:
		calc(100% - 1.375rem) 50%,
		calc(100% - 1rem) 50%;
	background-size: 0.375rem 0.375rem;
	background-repeat: no-repeat;
}

/* The store's image captcha, compact. */
.rm-contact__captcha .iv-box {
	display: inline-grid;
	gap: var(--rm-s3);
	max-width: 100%;
	padding: var(--rm-s4);
	background: var(--rm-bg-alt);
	border-radius: var(--rm-radius-sm);
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}

.rm-contact__captcha .iv-img {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-s2) var(--rm-s4);
	float: none;
}

.rm-contact__captcha .iv-img img {
	display: block;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
}

.rm-contact__captcha .iv-box hr {
	margin: var(--rm-s1) 0 0;
	border: 0;
	border-top: 1px solid var(--rm-line);
}

/* The store's captcha stylesheet fixes this row at 60px and floats the
   picture; the input then spilled over the button below. */
.rm-contact__captcha .iv-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-s3) var(--rm-s5);
	height: auto;
}

.rm-contact__captcha .iv-row .iv-input {
	height: auto;
	line-height: normal;
}

.rm-contact__captcha .iv-img br,
.rm-contact__captcha .iv-box > br,
.rm-contact__captcha .clearing {
	display: none;
}

.rm-contact__captcha .iv-img a {
	font-weight: 600;
	color: var(--rm-blue);
}

.rm-contact__captcha .iv-input {
	display: flex;
	align-items: center;
	gap: var(--rm-s2);
}

.rm-contact__captcha .iv-input .star {
	color: var(--rm-red);
}

.rm-contact__captcha .iv-input input[type=text] {
	width: 12rem;
	max-width: 100%;
	min-height: var(--rm-tap-target);
	padding: var(--rm-s2) var(--rm-s3);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	font-size: max(1rem, var(--rm-fs-body));
}

/* The store's submit button as the design's gold "Send Message ->". */
.rm-contact__submit button.main-button {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-s3);
	min-height: 3.25rem;
	padding: 0 var(--rm-s6);
	border: 1px solid var(--rm-gold);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-gold);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-body);
	font-weight: 700;
	color: var(--rm-navy);
	cursor: pointer;
}

.rm-contact__submit button.main-button:hover {
	background: var(--rm-gold-dark);
	border-color: var(--rm-gold-dark);
}

.rm-contact__submit button.main-button span {
	display: inline;
	padding: 0;
	background: none;
}

.rm-contact__submit button.main-button::after {
	content: "\2192";
	font-size: 1.2em;
	line-height: 1;
}

.rm-contact__sent {
	display: flex;
	align-items: flex-start;
	gap: var(--rm-s3);
	padding: var(--rm-s4) var(--rm-s5);
	background: #EDF8F1;
	border-radius: var(--rm-radius-sm);
	color: var(--rm-ink);
}

.rm-contact__sent svg {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	fill: none;
	stroke: var(--rm-green);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-contact__sent p {
	margin: 0;
}

/* Right-hand card: three rows between hairlines. */
.rm-contact__info {
	padding-block: var(--rm-s2);
}

.rm-contact__row {
	display: flex;
	align-items: flex-start;
	gap: var(--rm-s5);
	padding-block: var(--rm-s6);
}

.rm-contact__row + .rm-contact__row {
	border-top: 1px solid var(--rm-line);
}

.rm-contact__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 50%;
	background: #FDF1E0;
}

.rm-contact__icon svg {
	width: 1.9rem;
	height: 1.9rem;
	fill: none;
	stroke: var(--rm-gold);
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-contact__row h3 {
	margin: 0 0 var(--rm-s1);
	font-size: var(--rm-fs-h4);
	color: var(--rm-navy);
}

.rm-contact__row h3 a {
	color: inherit;
	text-decoration: none;
}

.rm-contact__row h3 a:hover {
	text-decoration: underline;
}

.rm-contact__row p {
	margin: 0 0 var(--rm-s1);
	color: var(--rm-ink-soft);
	line-height: var(--rm-lh-snug);
}

.rm-contact__big a {
	font-family: var(--rm-font-display);
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--rm-blue);
	text-decoration: none;
}

.rm-contact__small {
	margin-top: var(--rm-s2) !important;
	font-size: var(--rm-fs-xs);
	color: var(--rm-muted) !important;
}

.rm-contact__cities {
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-lead);
	font-weight: 800;
	color: var(--rm-blue) !important;
}

.rm-contact__cities span {
	margin-inline: var(--rm-s2);
	color: var(--rm-navy);
}

/* "Have a question?" cards */
.rm-contact-help .rm-section-heading {
	margin-bottom: var(--rm-s2);
}

.rm-contact-help__lead {
	margin: 0 0 var(--rm-s8);
	color: var(--rm-ink-soft);
	text-align: center;
}

.rm-helpcards {
	display: grid;
	gap: var(--rm-s5);
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.rm-helpcards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.rm-helpcard {
	padding: var(--rm-s6);
	background: var(--rm-white);
	border-radius: var(--rm-radius-lg);
	text-align: center;
}

.rm-helpcard__icon {
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: var(--rm-s3);
	fill: none;
	stroke: var(--rm-gold);
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-helpcard h3 {
	margin: 0 0 var(--rm-s2);
	font-size: var(--rm-fs-h4);
	color: var(--rm-navy);
}

.rm-helpcard p {
	margin: 0 0 var(--rm-s4);
	color: var(--rm-ink-soft);
	line-height: var(--rm-lh-snug);
}

.rm-helpcard__link {
	font-weight: 700;
	color: var(--rm-blue);
	text-decoration: none;
}

.rm-helpcard__link:hover {
	text-decoration: underline;
}


/* =============================================================
   19. VIDEOS  (customer/main/rm_videos.tpl, static page 22)
   ============================================================= */

/* The hero reuses the homepage's scene hero; this picture is wider. */
@media (min-width: 900px) {
	.rm-videos-hero {
		min-height: 21.5vw;
	}
}

/* Past the picture's own width (1779px - the client's 34" screen is
   3440) it stopped being stretched: the band grew to ~740px tall with
   the laptop against the window's right edge. It now stays at its own
   size, centred under the copy, edges faded into the band. */
@media (min-width: 1780px) {
	.rm-videos-hero {
		min-height: 383px;
	}

	.rm-videos-hero .rm-hero__media--scene {
		left: 50%;
		right: auto;
		width: 1779px;
		transform: translateX(-50%);
	}
}

.rm-videos {
	padding-block: var(--rm-s6) clamp(2.5rem, 5vw, 4rem);
}

.rm-videos__filters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rm-s3);
	margin-bottom: var(--rm-s6);
}

.rm-videos__filter {
	flex: 1 1 auto;
	min-height: 3.25rem;
	padding: 0 var(--rm-s6);
	border: 0;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-bg-hero);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-body);
	font-weight: 700;
	color: var(--rm-navy);
	cursor: pointer;
}

.rm-videos__filter:hover {
	background: var(--rm-bg-sunken);
}

.rm-videos__filter.is-active {
	background: var(--rm-gold);
}

.rm-videos__grid {
	display: grid;
	gap: var(--rm-s6);
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.rm-videos__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.rm-videos__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.rm-video {
	padding: var(--rm-s2) var(--rm-s2) var(--rm-s5);
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg);
}

.rm-video__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-bg-sunken);
}

.rm-video__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--rm-transition);
}

.rm-video__thumb:hover img {
	transform: scale(1.03);
}

/* The red play button, drawn - no image, no url(../../skin/royalnew/css/). */
.rm-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 3.75rem;
	height: 2.6rem;
	margin: -1.3rem 0 0 -1.875rem;
	border-radius: 0.8rem;
	background: #E62117;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.rm-video__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -0.55rem 0 0 -0.35rem;
	border-style: solid;
	border-width: 0.55rem 0 0.55rem 0.95rem;
	border-color: transparent transparent transparent #FFFFFF;
}

.rm-video__time {
	position: absolute;
	right: var(--rm-s2);
	bottom: var(--rm-s2);
	padding: 0.1rem 0.4rem;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.78);
	font-size: var(--rm-fs-xs);
	font-weight: 600;
	color: #FFFFFF;
}

.rm-video__title {
	margin: var(--rm-s4) var(--rm-s3) var(--rm-s2);
	font-size: 1.25rem;
	line-height: var(--rm-lh-snug);
	color: var(--rm-navy);
}

.rm-video__text {
	margin: 0 var(--rm-s3);
	color: var(--rm-ink-soft);
	line-height: var(--rm-lh-snug);
}

/* Pop-up player */
.rm-vplayer {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--rm-s12) var(--rm-s4) var(--rm-s4);
	background: rgba(3, 17, 38, 0.82);
}

.rm-vplayer[hidden] {
	display: none;
}

.rm-vplayer__box {
	position: relative;
	width: min(60rem, 100%);
	aspect-ratio: 16 / 9;
	background: #000000;
	border-radius: var(--rm-radius-sm);
}

.rm-vplayer__frame,
.rm-vplayer__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.rm-vplayer__close {
	position: absolute;
	top: -2.75rem;
	right: 0;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.rm-vplayer__close::before,
.rm-vplayer__close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.5rem;
	height: 2px;
	margin: -1px 0 0 -0.75rem;
	background: #FFFFFF;
	transform: rotate(45deg);
}

.rm-vplayer__close::after {
	transform: rotate(-45deg);
}

html.rm-vplayer-open {
	overflow: hidden;
}


/* =============================================================
   20a. HELP CENTER  (customer/help/general.tpl - help.php, no section)

   Title, lead, then five cards: picture, title, two lines, a navy
   button. The buttons line up along the bottom of the row whatever
   the text above them does. Columns: 5 from 1280px, 3 (two centred
   under three) from 900, 2 from 560, 1 on phones.
   ============================================================= */
.rm-help {
	padding-block: var(--rm-s4) var(--rm-s16);
}

.rm-help__head {
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.rm-help__title {
	margin: 0 0 var(--rm-s3);
	font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem);   /* 36 -> 64 */
	line-height: 1.05;
}

.rm-help__lead {
	margin: 0;
	font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);   /* 17 -> 21 */
	color: var(--rm-ink-soft);
}

.rm-helpgrid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--rm-s4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rm-helptile {
	display: flex;
	flex: 0 0 100%;
	flex-direction: column;
	align-items: center;
	max-width: 26rem;
	padding: 0.875rem 0.875rem 1.125rem;
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg);
	text-align: center;
}

@media (min-width: 560px) {
	.rm-helptile {
		flex-basis: calc((100% - var(--rm-s4)) / 2);
	}
}

@media (min-width: 900px) {
	.rm-helptile {
		flex-basis: calc((100% - 2 * var(--rm-s4)) / 3);
	}
}

@media (min-width: 1280px) {
	.rm-helptile {
		flex-basis: calc((100% - 4 * var(--rm-s4)) / 5);
	}
}

/* the picture well - light grey, as in the design, behind the drawn
   pictures; the two photographs fill it */
.rm-helptile__media {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 3;
	margin-bottom: var(--rm-s5);
	overflow: hidden;
	border-radius: var(--rm-radius);
	background: #EDF0F5;
}

.rm-helptile__media img,
.rm-helptile__media svg {
	display: block;
	width: 100%;
	height: 100%;
}

.rm-helptile__media img {
	object-fit: cover;
}

.rm-helptile__title {
	margin: 0 0 var(--rm-s2);
	font-family: var(--rm-font-display);
	font-size: clamp(1.25rem, 0.2rem + 1.45vw, 1.5rem);   /* 20 -> 24 */
	font-weight: 700;
	line-height: 1.2;
	color: var(--rm-navy);
}

.rm-helptile__text {
	max-width: 12.5rem;   /* three short lines, as the design sets them */
	margin: 0 0 var(--rm-s5);
	font-size: clamp(0.9375rem, 0.8rem + 0.3vw, 1.0625rem);   /* 15 -> 17 */
	line-height: 1.32;
	color: var(--rm-ink-soft);
}

.rm-help .rm-helptile__btn {
	width: 100%;
	min-height: 2.75rem;
	margin-top: auto;
	padding: 0.625rem var(--rm-s3);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* five across on a laptop: the longest title ("Forgot Password?") and
   button ("View Store Policies") need tighter type to stay on one line
   - measured in a browser at 1280 and 1366 */
@media (min-width: 1280px) and (max-width: 1439px) {
	.rm-helptile {
		padding-inline: 0.75rem;
	}

	.rm-helptile__title {
		font-size: 1.1875rem;
	}

	.rm-help .rm-helptile__btn {
		font-size: 0.8125rem;
		letter-spacing: 0.02em;
	}
}

/* Phones: each card on its side - picture left, title and text beside
   it, button full width underneath - so the five fit in about half the
   scroll they took stacked (2,200px at 390 wide). Not in the design,
   which is desktop only. */
@media (max-width: 559px) {
	.rm-helptile {
		display: grid;
		grid-template-columns: 7.5rem minmax(0, 1fr);
		grid-template-areas:
			"media title"
			"media text"
			"btn   btn";
		grid-template-rows: auto 1fr auto;
		column-gap: var(--rm-s4);
		align-items: start;
		max-width: none;
		padding: 0.75rem;
		text-align: left;
	}

	.rm-helptile__media {
		grid-area: media;
		margin-bottom: 0;
	}

	.rm-helptile__title {
		grid-area: title;
		margin-bottom: var(--rm-s1);
		font-size: 1.125rem;
	}

	.rm-helptile__text {
		grid-area: text;
		max-width: none;
		margin-bottom: 0;
		font-size: 0.9375rem;
	}

	.rm-help .rm-helptile__btn {
		grid-area: btn;
		margin-top: var(--rm-s3);
	}
}

/* pages added to the admin's help menu later (none today) */
.rm-help__more {
	margin-top: var(--rm-s10);
	text-align: center;
}

.rm-help__moretitle {
	margin: 0 0 var(--rm-s4);
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h4);
	font-weight: 700;
	color: var(--rm-navy);
}

.rm-help__morelist {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--rm-s3) var(--rm-s8);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* =============================================================
   20b. STORE POLICIES  (customer/main/rm_policies.tpl, static page 16)

   Hero, seven policy cards two to a row (the last full width), each
   with an icon, title, intro, a checklist and a picture down its right
   side that fades into the card, then a "Need help?" band.
   ============================================================= */
.rm-policies-hero .rm-cat-hero__title::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 3px;
	margin-top: var(--rm-s4);
	border-radius: 2px;
	background: var(--rm-gold);
}

.rm-policies {
	padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--rm-s16);
}

.rm-policygrid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--rm-s5);
}

/* two to a row only where each card keeps a readable measure beside
   its picture - at 1024 they wrapped every few words */
@media (min-width: 1180px) {
	.rm-policygrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rm-policy--wide {
		grid-column: 1 / -1;
	}
}

/* one to a row (tablet): the picture is a slim strip whose height
   follows the text - left to its own proportions (portrait), it made
   every card about twice as tall as its text */
@media (min-width: 640px) and (max-width: 1179px) {
	.rm-policy__img {
		flex-basis: 26%;
		width: 26%;
		height: auto;
		min-height: 0;
		max-height: 15rem;
		align-self: stretch;
	}

	.rm-policy__img--graphic {
		max-height: 9rem;
		align-self: center;
	}

	.rm-policy--wide .rm-policy__img {
		flex-basis: 40%;
		width: 40%;
	}
}

.rm-policy {
	display: flex;
	overflow: hidden;
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg);
	box-shadow: var(--rm-shadow-sm);
}

/* icon beside title and intro; the checklist runs the card's width
   under them, its ticks in line with the icon, as in the design */
.rm-policy__body {
	flex: 1;
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	column-gap: var(--rm-s4);
	align-content: start;
	padding: clamp(1.25rem, 2.2vw, 1.75rem);
}

.rm-policy__icon {
	grid-column: 1;
	grid-row: 1 / span 2;
	width: 2.5rem;
	height: 2.5rem;
	fill: none;
	stroke: var(--rm-gold);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-policy__title {
	grid-column: 2;
	margin: 0.25rem 0 var(--rm-s2);
	font-family: var(--rm-font-display);
	font-size: clamp(1.125rem, 0.9rem + 0.6vw, 1.375rem);
	font-weight: 800;
	line-height: 1.25;
	color: var(--rm-navy);
}

.rm-policy__intro {
	grid-column: 2;
	margin: 0 0 var(--rm-s4);
	color: var(--rm-ink-soft);
	line-height: 1.5;
}

.rm-policy__list {
	grid-column: 1 / -1;
	display: grid;
	gap: var(--rm-s2);
	margin: 0;
	padding: 0 0 0 0.5rem;
	list-style: none;
}

.rm-policy__list li {
	position: relative;
	padding-left: 2rem;
	font-size: var(--rm-fs-sm);
	line-height: 1.5;
	color: var(--rm-ink-soft);
}

/* gold tick in a circle, as in the design (and the Shipping tab) */
.rm-policy__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.125rem;
	height: 1.125rem;
	border-radius: 50%;
	background: var(--rm-gold);
}

.rm-policy__list li::after {
	content: "";
	position: absolute;
	left: 0.3rem;
	top: 0.5em;
	width: 0.5rem;
	height: 0.28rem;
	border-left: 2px solid var(--rm-white);
	border-bottom: 2px solid var(--rm-white);
	transform: rotate(-45deg);
}

.rm-policy a {
	color: var(--rm-blue);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* the picture: the card's full height down its right side, faded into
   the white on its left edge */
.rm-policy__img {
	display: block;
	flex: 0 0 30%;
	align-self: stretch;
	width: 30%;
	min-height: 100%;
	object-fit: cover;
}

/* the SALE tag is a graphic on white: shown whole, centred, no fade */
.rm-policy__img--graphic {
	flex-basis: 26%;
	width: 26%;
	min-height: 0;
	align-self: center;
	padding-right: var(--rm-s4);
	object-fit: contain;
	-webkit-mask-image: none;
	mask-image: none;
}

.rm-policy--wide .rm-policy__img {
	flex-basis: 46%;
	width: 46%;
}

/* Phones: the text needs the width - the pictures are decorative
   (alt="") and are left out below 640px */
@media (max-width: 639px) {
	.rm-policy__img {
		display: none;
	}

	.rm-policy__body {
		grid-template-columns: 2.25rem minmax(0, 1fr);
		column-gap: var(--rm-s3);
	}

	.rm-policy__icon {
		width: 2.125rem;
		height: 2.125rem;
	}

	.rm-policy__list {
		padding-left: 0;
	}
}

/* ---- Need help? ---- */
.rm-polhelp {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	margin-top: var(--rm-s8);
	overflow: hidden;
	background: #EEF4FC;
	border: 1px solid #DCE6F5;
	border-radius: var(--rm-radius-lg);
}

.rm-polhelp__img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	object-position: 40% 30%;
}

.rm-polhelp__copy {
	padding: var(--rm-s6) var(--rm-s6) var(--rm-s4);
	text-align: center;
}

.rm-polhelp__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--rm-s4);
	margin: 0 0 var(--rm-s2);
	font-family: var(--rm-font-display);
	font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--rm-navy);
}

.rm-polhelp__title::before,
.rm-polhelp__title::after {
	content: "";
	flex: none;
	width: 2.5rem;
	height: 2px;
	background: var(--rm-gold);
}

.rm-polhelp__text {
	max-width: 28rem;
	margin: 0 auto var(--rm-s5);
	color: var(--rm-ink-soft);
}

.rm-polhelp__btn {
	min-width: 12rem;
}

.rm-polhelp__points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding: var(--rm-s4) var(--rm-s4) var(--rm-s6);
	list-style: none;
}

.rm-polhelp__points li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--rm-s2);
	padding: 0 var(--rm-s3);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	color: var(--rm-navy);
}

.rm-polhelp__points li + li {
	border-left: 1px solid #C8D3E6;
}

.rm-polhelp__points svg {
	width: 2.25rem;
	height: 2.25rem;
	fill: none;
	stroke: var(--rm-gold);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Tablet and up: photo left, copy beside it, the three points under
   the copy; from 1100px the points get a column of their own. */
@media (min-width: 700px) {
	.rm-polhelp {
		grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
	}

	.rm-polhelp__img {
		grid-row: 1 / span 2;
		aspect-ratio: auto;
		min-height: 13rem;
	}

	.rm-polhelp__copy {
		align-self: end;
	}

	.rm-polhelp__points {
		align-self: start;
	}
}

@media (min-width: 1100px) {
	.rm-polhelp {
		grid-template-columns: minmax(0, 28%) minmax(0, 1fr) minmax(0, 30%);
	}

	.rm-polhelp__img {
		grid-row: auto;
	}

	.rm-polhelp__copy {
		align-self: center;
		padding: var(--rm-s6);
	}

	.rm-polhelp__points {
		align-self: center;
		padding: var(--rm-s6) var(--rm-s6) var(--rm-s6) 0;
	}
}

/* =============================================================
   20c. ORDER CONFIRMATION  (customer/main/order_message.tpl)

   Hero (the Store Policies hero), a green status card, the order's
   items and totals, three info cards, and a closing thank-you band.
   ============================================================= */
.rm-thanks {
	display: grid;
	gap: var(--rm-s6);
	padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--rm-s16);
}

/* ---- status card ---- */
.rm-thanks__status {
	display: grid;
	gap: var(--rm-s6);
	padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 3.25rem);
	background: #EEF8F1;
	border: 1px solid #CBE8D4;
	border-radius: var(--rm-radius-lg);
}

@media (min-width: 760px) {
	.rm-thanks__status {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}

	.rm-thanks__meta {
		padding-left: var(--rm-s10);
		border-left: 1px solid #A9D7B7;
	}
}

.rm-thanks__state {
	display: flex;
	align-items: center;
	gap: var(--rm-s6);
}

.rm-thanks__check {
	position: relative;
	flex: none;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 50%;
	background: #2EAD4B;
}

.rm-thanks__check::after {
	content: "";
	position: absolute;
	left: 1.15rem;
	top: 1.1rem;
	width: 1.8rem;
	height: 0.95rem;
	border-left: 5px solid #fff;
	border-bottom: 5px solid #fff;
	border-radius: 2px;
	transform: rotate(-45deg);
}

@media (max-width: 479px) {
	.rm-thanks__state {
		gap: var(--rm-s4);
	}

	.rm-thanks__check {
		transform: scale(0.75);
		transform-origin: left center;
		margin-right: -1rem;
	}
}

.rm-thanks__label {
	margin: 0;
	font-size: var(--rm-fs-xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rm-ink-soft);
}

.rm-thanks__statetitle {
	margin: var(--rm-s1) 0;
	font-family: var(--rm-font-display);
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
	font-weight: 800;
	line-height: 1.15;
	color: #1F8A3A;
}

.rm-thanks__statetext {
	margin: 0;
	color: var(--rm-ink-soft);
}

.rm-thanks__meta {
	margin: 0;
}

.rm-thanks__meta dt {
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}

.rm-thanks__meta dd {
	margin: 0 0 var(--rm-s3);
	font-weight: 700;
	color: var(--rm-navy);
}

.rm-thanks__meta dd:last-child {
	margin-bottom: 0;
}

.rm-thanks__meta .rm-thanks__number {
	font-family: var(--rm-font-display);
	font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.125rem);
	font-weight: 800;
	line-height: 1.15;
}

/* ---- order details ---- */
.rm-thanks__details {
	padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 2vw, 1.25rem);
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg);
}

.rm-thanks__dhead {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--rm-s3);
	margin-bottom: var(--rm-s4);
	padding-inline: var(--rm-s2);
}

.rm-thanks__dtitle {
	margin: 0;
	font-family: var(--rm-font-display);
	font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
	font-weight: 800;
	color: var(--rm-navy);
}

.rm-thanks__print {
	min-height: 2.75rem;
	padding: 0.5rem var(--rm-s5);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
}

.rm-thanks__print svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linejoin: round;
}

.rm-thanks__items {
	width: 100%;
	border-collapse: collapse;
}

.rm-thanks__items th {
	padding: var(--rm-s3) var(--rm-s4);
	background: #EEF1F6;
	font-size: var(--rm-fs-sm);
	font-weight: 600;
	color: var(--rm-ink);
	text-align: right;
}

.rm-thanks__items th:first-child {
	text-align: left;
}

.rm-thanks__items td {
	padding: var(--rm-s4);
	border-bottom: 1px solid var(--rm-line);
	vertical-align: middle;
}

.rm-thanks__num {
	text-align: right;
	white-space: nowrap;
	color: var(--rm-ink);
}

.rm-thanks__prod {
	display: flex;
	align-items: center;
	gap: var(--rm-s4);
}

.rm-thanks__thumb {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	overflow: hidden;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-white);
}

.rm-thanks__thumb img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

.rm-thanks__pname {
	display: block;
	font-weight: 700;
	color: var(--rm-navy);
}

.rm-thanks__popt {
	display: block;
	font-size: var(--rm-fs-xs);
	color: var(--rm-muted);
}

.rm-thanks__totals {
	display: grid;
	grid-template-columns: auto 7rem;
	justify-content: end;
	gap: var(--rm-s2) var(--rm-s8);
	margin: var(--rm-s4) 0;
	padding-inline: var(--rm-s4);
	color: var(--rm-ink-soft);
}

.rm-thanks__totals dt {
	text-align: right;
}

.rm-thanks__totals dd {
	margin: 0;
	text-align: right;
	color: var(--rm-ink);
}

.rm-thanks__free {
	font-weight: 700;
	color: #1F8A3A;
}

.rm-thanks__grand {
	display: flex;
	justify-content: flex-end;
	align-items: baseline;
	gap: var(--rm-s8);
	margin: 0;
	padding: var(--rm-s4);
	border-radius: var(--rm-radius);
	background: #EAF1FC;
	font-family: var(--rm-font-display);
	font-weight: 800;
	color: var(--rm-navy);
}

.rm-thanks__grand span {
	font-size: var(--rm-fs-h4);
}

.rm-thanks__grand strong {
	min-width: 7rem;
	font-size: clamp(1.25rem, 1rem + 0.6vw, 1.5rem);
	text-align: right;
}

/* phones: each item a small block - picture and name, then qty, price
   and total as labelled rows */
@media (max-width: 639px) {
	.rm-thanks__items thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.rm-thanks__items tr {
		display: block;
		padding: var(--rm-s3) 0;
		border-bottom: 1px solid var(--rm-line);
	}

	.rm-thanks__items td {
		display: flex;
		justify-content: space-between;
		padding: var(--rm-s1) var(--rm-s2);
		border: 0;
	}

	.rm-thanks__items td.rm-thanks__prod {
		justify-content: flex-start;
		padding-bottom: var(--rm-s2);
	}

	.rm-thanks__items td[data-label]::before {
		content: attr(data-label);
		color: var(--rm-muted);
	}

	.rm-thanks__totals {
		grid-template-columns: 1fr auto;
		justify-content: stretch;
		padding-inline: var(--rm-s2);
	}

	.rm-thanks__totals dt {
		text-align: left;
	}

	.rm-thanks__grand {
		justify-content: space-between;
	}
}

/* ---- three cards ---- */
.rm-thanks__cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--rm-s4);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 860px) {
	.rm-thanks__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.rm-thanks__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--rm-s8) var(--rm-s6);
	border-radius: var(--rm-radius-lg);
	background: #EEF4FC;
	text-align: center;
}

.rm-thanks__card--warm {
	background: #FDF4E6;
}

.rm-thanks__icon {
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: var(--rm-s4);
	fill: none;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-thanks__icon--blue { stroke: var(--rm-blue); }
.rm-thanks__icon--gold { stroke: var(--rm-gold); }

.rm-thanks__card h2 {
	margin: 0 0 var(--rm-s3);
	font-family: var(--rm-font-display);
	font-size: var(--rm-fs-h4);
	font-weight: 800;
	color: var(--rm-navy);
}

.rm-thanks__card p {
	max-width: 19rem;
	margin: 0;
	color: var(--rm-ink-soft);
	line-height: 1.55;
}

.rm-thanks__card a:not(.rm-btn) {
	color: var(--rm-navy);
	text-decoration: underline;
}

.rm-thanks__cta {
	margin-top: var(--rm-s5);
	min-width: 11rem;
}

/* ---- closing band ---- */
.rm-thanks__band {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	overflow: hidden;
	border-radius: var(--rm-radius-lg);
	background: #EEF2F8;
}

.rm-thanks__band img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 13 / 5;
	object-fit: cover;
}

.rm-thanks__bandcopy {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--rm-s3);
	padding: var(--rm-s6);
	text-align: center;
}

.rm-thanks__bandcopy h2 {
	margin: 0;
	font-family: var(--rm-font-display);
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--rm-navy);
}

.rm-thanks__bandcopy p {
	margin: 0;
	font-size: var(--rm-fs-lead);
	color: var(--rm-ink-soft);
}

/* the crown from the logo (same drawing as the Help Center's) */
.rm-thanks__crown {
	width: 2.75rem;
	height: auto;
	fill: var(--rm-gold);
}

@media (min-width: 760px) {
	.rm-thanks__band {
		grid-template-columns: minmax(0, 55%) minmax(0, 1fr);
		align-items: center;
	}

	.rm-thanks__band img {
		aspect-ratio: auto;
		min-height: 13rem;
	}
}

/* =============================================================
   20d. PAYMENT DECLINED  (customer/main/error_ccprocessor_error.tpl,
        error_message.php?error=error_ccprocessor_error)

   One centred column: the card illustration, heading, the reason in a
   red box, the usual causes in a green one, two buttons back to
   checkout and a help line. The buttons sit a little wider than the
   boxes, as in the design.
   ============================================================= */
/* the gutter is padding inside .rm-container, so it is added on top */
.rm-declined {
	max-width: calc(48rem + 2 * var(--rm-gutter));
	padding-top: var(--rm-s8);
	padding-bottom: var(--rm-s12);
	text-align: center;
}

.rm-declined__art {
	display: block;
	width: min(18.75rem, 80%);
	height: auto;
	margin: 0 auto var(--rm-s4);
}

.rm-declined__title {
	margin: 0 0 var(--rm-s3);
	font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
	line-height: var(--rm-lh-tight);
	letter-spacing: var(--rm-ls-tight);
	color: var(--rm-navy);
}

.rm-declined__lead {
	max-width: 42rem;
	margin: 0 auto var(--rm-s6);
	font-size: var(--rm-fs-lead);
	line-height: var(--rm-lh-body);
	color: var(--rm-ink-soft);
}

.rm-declined__box {
	display: flex;
	align-items: center;
	gap: var(--rm-s5);
	max-width: 44rem;
	margin: 0 auto var(--rm-s3);
	padding: var(--rm-s4) var(--rm-s6) var(--rm-s4) var(--rm-s10);
	border: 1px solid;
	border-radius: var(--rm-radius);
	text-align: left;
	color: var(--rm-ink);
	font-size: var(--rm-fs-body);
	line-height: 1.45;
}

.rm-declined__box p {
	margin: 0;
}

.rm-declined__box--error {
	background: #FDEEEE;
	border-color: #F6C9C9;
}

.rm-declined__box--tip {
	background: #ECF8EF;
	border-color: #BFE5C9;
}

.rm-declined__icon {
	flex: 0 0 auto;
	width: 2.25rem;
	height: 2.25rem;
}

.rm-declined__boxtitle {
	font-size: 1.125rem;
	font-weight: 700;
}

.rm-declined__box--error .rm-declined__boxtitle {
	color: #C81E1E;
}

.rm-declined__box--tip .rm-declined__boxtitle {
	color: #15803D;
}

.rm-declined__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--rm-s6);
	max-width: 46rem;
	margin: var(--rm-s6) auto 0;
	padding-bottom: var(--rm-s5);
	border-bottom: 1px solid var(--rm-line);
}

.rm-declined__actions .rm-btn {
	padding-left: var(--rm-s4);
	padding-right: var(--rm-s4);
	font-size: 1.0625rem;
	font-weight: 700;
	border-radius: var(--rm-radius);
}

.rm-declined__btnicon {
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	margin-right: var(--rm-s1);
}

.rm-declined__help {
	margin: var(--rm-s5) 0 0;
	color: var(--rm-ink-soft);
}

.rm-declined__help a {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-s1);
	color: var(--rm-blue);
	font-weight: 500;
}

.rm-declined__help svg {
	width: 1rem;
	height: 1rem;
}

@media (max-width: 640px) {
	.rm-declined {
		padding-top: var(--rm-s4);
	}

	.rm-declined__lead br {
		display: none;
	}

	.rm-declined__box {
		align-items: flex-start;
		gap: var(--rm-s3);
		padding: var(--rm-s4);
	}

	.rm-declined__icon {
		width: 1.75rem;
		height: 1.75rem;
	}

	.rm-declined__actions {
		grid-template-columns: 1fr;
		gap: var(--rm-s3);
	}
}

/* =============================================================
   20e. ORDER DETAILS  (customer/main/history_order.tpl, order.php)

   The account sidebar (.rm-acc grid) beside one column: breadcrumb,
   title with Print Receipt, the number/date/status strip, four cards
   (addresses, methods), the items with their totals, and Shipment &
   Tracking. Opened from an email link without signing in there is no
   sidebar, and the column runs the container's width.
   ============================================================= */
.rm-od-page:not(.rm-acc) {
	padding-block: var(--rm-s6) clamp(2.5rem, 5vw, 4rem);
}

.rm-od {
	min-width: 0;
	/* the tracking row stacks by this column's width, not the screen's -
	   beside the sidebar it is narrow on a 1024px screen */
	container: rm-od / inline-size;
}

.rm-od__icon {
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	fill: none;
	stroke: var(--rm-navy);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-od__icon--ok {
	fill: #15803D;
	stroke: var(--rm-white);
	stroke-width: 2.2;
}

.rm-od__crumbs ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 var(--rm-s3);
	padding: 0;
	list-style: none;
	font-size: var(--rm-fs-xs);
	color: var(--rm-muted);
}

.rm-od__crumbs li + li::before {
	content: "/";
	margin: 0 var(--rm-s2);
	color: var(--rm-muted);
}

.rm-od__crumbs a {
	color: var(--rm-blue);
}

.rm-od__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--rm-s3) var(--rm-s6);
}

.rm-od__title {
	margin: 0;
	font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.75rem);
	line-height: var(--rm-lh-tight);
	letter-spacing: var(--rm-ls-tight);
	color: var(--rm-navy);
}

.rm-od__print {
	min-height: 2.75rem;
	padding: var(--rm-s2) var(--rm-s5);
	border-color: var(--rm-line);
	border-radius: var(--rm-radius);
	box-shadow: var(--rm-shadow-sm);
}

.rm-od__print svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linejoin: round;
}

.rm-od__lead {
	margin: var(--rm-s2) 0 var(--rm-s6);
	font-size: var(--rm-fs-sm);
	color: var(--rm-ink-soft);
}

.rm-od__returns {
	margin: calc(var(--rm-s4) * -1) 0 var(--rm-s5);
	font-size: var(--rm-fs-sm);
}

.rm-od p {
	margin: 0;
}

/* ---- number / date / status ---- */
.rm-od__strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: var(--rm-s4);
	padding: var(--rm-s5) 0;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
	background: #F4F7FB;
}

.rm-od__fact {
	display: flex;
	align-items: flex-start;
	gap: var(--rm-s4);
	padding: var(--rm-s1) var(--rm-s6);
}

.rm-od__fact + .rm-od__fact {
	border-left: 1px solid var(--rm-line);
}

.rm-od__label {
	margin-bottom: var(--rm-s1) !important;
	font-weight: 700;
	color: var(--rm-navy);
}

.rm-od__value {
	font-size: 1.1875rem;
	color: var(--rm-ink);
}

.rm-od__sub {
	font-size: var(--rm-fs-xs);
	color: var(--rm-muted);
}

.rm-od__badge {
	display: inline-block;
	padding: 0.15rem 0.6rem;
	border-radius: var(--rm-radius-sm);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
}

.rm-od__badge--ok   { background: #DCF3E3; color: #15803D; }
.rm-od__badge--info { background: var(--rm-blue-tint); color: var(--rm-blue-dark); }
.rm-od__badge--bad  { background: #FDECEC; color: #C81E1E; }

/* ---- address and method cards ---- */
.rm-od__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--rm-s4);
	margin-bottom: var(--rm-s4);
}

.rm-od__card {
	display: flex;
	align-items: flex-start;
	gap: var(--rm-s4);
	padding: var(--rm-s5) var(--rm-s6);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
	background: var(--rm-white);
}

.rm-od__ctitle {
	margin: 0 0 var(--rm-s3);
	font-family: var(--rm-font-text);
	font-size: var(--rm-fs-h4);
	font-weight: 700;
	color: var(--rm-navy);
}

.rm-od__addr,
.rm-od__text {
	font-size: var(--rm-fs-sm);
	font-style: normal;
	line-height: 1.6;
	color: var(--rm-ink);
	overflow-wrap: anywhere;
}

/* ---- items, totals, tracking ---- */
.rm-od__box {
	margin-bottom: var(--rm-s4);
	padding-bottom: var(--rm-s5);
	overflow: hidden;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
	background: var(--rm-white);
}

.rm-od__boxhead {
	display: flex;
	align-items: center;
	gap: var(--rm-s3);
	margin: 0;
	padding: var(--rm-s4) var(--rm-s6);
	background: #F4F7FB;
	font-family: var(--rm-font-text);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--rm-navy);
}

.rm-od__items {
	width: 100%;
	border-collapse: collapse;
}

.rm-od__items th {
	padding: var(--rm-s3) var(--rm-s4);
	background: var(--rm-blue-tint);
	font-size: var(--rm-fs-sm);
	font-weight: 700;
	color: var(--rm-ink);
	text-align: left;
}

.rm-od__items th:first-child,
.rm-od__items td:first-child {
	padding-left: var(--rm-s6);
}

.rm-od__items th:last-child,
.rm-od__items td:last-child {
	padding-right: var(--rm-s6);
}

.rm-od__items td {
	padding: var(--rm-s4);
	border-bottom: 1px solid var(--rm-line-soft);
	font-size: var(--rm-fs-sm);
	vertical-align: middle;
	color: var(--rm-ink);
}

.rm-od__items .rm-od__num {
	text-align: right;
	white-space: nowrap;
}

.rm-od__sku {
	white-space: nowrap;
}

.rm-od__prod {
	display: flex;
	align-items: center;
	gap: var(--rm-s4);
}

.rm-od__thumb {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 5rem;
	height: 5rem;
	overflow: hidden;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-white);
}

.rm-od__thumb img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

.rm-od__pname {
	display: block;
	font-weight: 700;
	color: var(--rm-blue);
}

.rm-od__popt {
	display: block;
	margin-top: 2px;
	font-size: var(--rm-fs-xs);
	color: var(--rm-muted);
}

.rm-od__totals {
	width: min(23rem, calc(100% - 2 * var(--rm-s6)));
	margin: var(--rm-s4) var(--rm-s6) 0 auto;
	border-collapse: collapse;
	border: 1px solid var(--rm-line);
	font-size: var(--rm-fs-sm);
}

.rm-od__totals th,
.rm-od__totals td {
	padding: var(--rm-s2) var(--rm-s4);
	border-bottom: 1px solid var(--rm-line-soft);
	text-align: right;
	font-weight: 400;
	color: var(--rm-ink);
}

.rm-od__totals td {
	width: 7rem;
	white-space: nowrap;
}

.rm-od__grand th,
.rm-od__grand td {
	padding-block: var(--rm-s3);
	border-bottom: 0;
	background: var(--rm-blue-tint);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--rm-navy);
}

/* cells share a row; the tracking number's gets the most room so a
   long number stays on one line */
.rm-od__track {
	display: flex;
	align-items: stretch;
	margin: var(--rm-s5) var(--rm-s6) 0;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
}

.rm-od__tcell {
	flex: 1 1 8rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--rm-s4) var(--rm-s5);
}

.rm-od__tcell:first-child {
	flex: 2 0 auto;
}

.rm-od__tcell + .rm-od__tcell {
	border-left: 1px solid var(--rm-line);
}

.rm-od__tcell--go {
	align-items: center;
}

.rm-od__tlabel {
	margin-bottom: var(--rm-s2) !important;
	font-weight: 700;
	color: var(--rm-ink);
}

.rm-od__tnum {
	display: flex;
	align-items: center;
	gap: var(--rm-s2);
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--rm-blue);
	white-space: nowrap;
}

.rm-od__copy {
	flex: none;
	display: inline-flex;
	padding: 2px;
	border: 0;
	background: none;
	color: var(--rm-navy);
	cursor: pointer;
}

.rm-od__copy[hidden] {
	display: none;
}

.rm-od__copy svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.rm-od__copy.is-done {
	color: #15803D;
}

.rm-od__tval {
	display: flex;
	align-items: center;
	gap: var(--rm-s2);
	font-size: var(--rm-fs-body);
	color: var(--rm-ink);
}

.rm-od__tval--ok {
	font-weight: 700;
	color: #15803D;
}

.rm-od__tval .rm-od__icon {
	width: 1.375rem;
	height: 1.375rem;
}

.rm-od__trackit {
	min-height: 3rem;
	padding: var(--rm-s3) var(--rm-s6);
	border-radius: var(--rm-radius);
	color: var(--rm-white);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.rm-od__trackit:hover {
	color: var(--rm-white);
}

.rm-od__trackit svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-od__tnote {
	margin: var(--rm-s4) var(--rm-s6) 0 !important;
	font-size: var(--rm-fs-sm);
	color: #B42318;
}

@media (max-width: 799px) {
	.rm-od__strip {
		grid-template-columns: 1fr;
		padding: var(--rm-s2) 0;
	}

	.rm-od__fact {
		padding: var(--rm-s3) var(--rm-s5);
	}

	.rm-od__fact + .rm-od__fact {
		border-left: 0;
		border-top: 1px solid var(--rm-line);
	}

	.rm-od__grid {
		grid-template-columns: 1fr;
	}

	.rm-od__tcell + .rm-od__tcell {
		border-left: 0;
		border-top: 1px solid var(--rm-line);
	}

	.rm-od__track {
		flex-direction: column;
	}

	.rm-od__tcell,
	.rm-od__tcell:first-child {
		flex: none;
	}

	.rm-od__tnum {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.rm-od__tcell--go {
		align-items: flex-start;
	}
}

/* the same stacking when the column is narrow on a wide screen */
@container rm-od (max-width: 48rem) {
	.rm-od__tcell + .rm-od__tcell {
		border-left: 0;
		border-top: 1px solid var(--rm-line);
	}

	.rm-od__track {
		flex-direction: column;
	}

	.rm-od__tcell,
	.rm-od__tcell:first-child {
		flex: none;
	}

	.rm-od__tnum {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.rm-od__tcell--go {
		align-items: flex-start;
	}
}

/* phones: each item a small block - picture and name, then SKU, price,
   quantity and subtotal as labelled rows (as the confirmation page) */
@media (max-width: 639px) {
	.rm-od__card {
		padding: var(--rm-s4);
	}

	.rm-od__boxhead {
		padding-inline: var(--rm-s4);
	}

	.rm-od__items thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.rm-od__items tr {
		display: block;
		padding: var(--rm-s3) var(--rm-s4);
		border-bottom: 1px solid var(--rm-line);
	}

	.rm-od__items td,
	.rm-od__items td:first-child,
	.rm-od__items td:last-child {
		display: flex;
		justify-content: space-between;
		padding: var(--rm-s1) 0;
		border: 0;
	}

	.rm-od__items td.rm-od__prod {
		justify-content: flex-start;
		padding-bottom: var(--rm-s2);
	}

	.rm-od__items td[data-label]::before {
		content: attr(data-label);
		color: var(--rm-muted);
	}

	.rm-od__items td[data-label]:empty {
		display: none;
	}

	.rm-od__thumb {
		width: 3.75rem;
		height: 3.75rem;
	}

	.rm-od__totals {
		width: calc(100% - 2 * var(--rm-s4));
		margin-inline: var(--rm-s4);
	}

	.rm-od__track {
		margin-inline: var(--rm-s4);
	}

	.rm-od__tnote {
		margin-inline: var(--rm-s4) !important;
	}
}

/* =============================================================
   20. IMAGE PLACEHOLDERS
   Temporary. Every .rm-ph holds the real artwork's aspect ratio so
   the layout is final now and dropping the files in is a swap, not a
   re-layout. Delete this section once assets land.
   ============================================================= */
.rm-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	padding: var(--rm-s4);
	border: 1px dashed var(--rm-line);
	border-radius: var(--rm-radius);
	background: repeating-linear-gradient(
		45deg,
		rgba(22, 53, 126, 0.035) 0 10px,
		rgba(22, 53, 126, 0.07) 10px 20px
	);
	color: var(--rm-muted);
	font-size: var(--rm-fs-xs);
	text-align: center;
}

.rm-ph--hero  { aspect-ratio: 16 / 10; }
.rm-ph--promo { aspect-ratio: 16 / 9; }
.rm-ph--tile  { aspect-ratio: 4 / 3; border: 0; }

/* Bleeding artwork fills its column instead of holding a ratio - the
   ratio would fight the band height it is stretched to. */
@media (min-width: 900px) {
	.rm-hero__media .rm-ph,
	.rm-promo__media .rm-ph {
		aspect-ratio: auto;
		border-radius: 0;
		border-right: 0;
	}
}

/* On the navy band the dashed light border disappears; give it contrast. */
.rm-band--navy .rm-ph {
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.75);
}


/* =============================================================
   MY ACCOUNT  (customer/main/rm_account.tpl)

   Primary Address, Address Book, Order History, Saved Credit Cards -
   to the supplied design: hero, sidebar, a card with the page's
   heading and four tabs, then the store's own page inside it. Every
   rule is scoped to .rm-acc / .rm-acc-hero, so the same templates
   elsewhere (checkout's address popup, registration) are untouched.
   ============================================================= */
.rm-acc-hero {
	overflow: hidden;
	background: linear-gradient(90deg, #F4F8FC 0%, #EEF4FA 45%, #E4EEF7 100%);
}

.rm-acc-hero__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rm-s6);
	min-height: clamp(150px, 15.8vw, 228px);
}

.rm-acc-hero__copy {
	flex: 0 1 auto;
	min-width: 0;
	padding-block: var(--rm-s6);
}

.rm-acc-hero__title {
	white-space: nowrap;
	margin: 0 0 var(--rm-s2);
	font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem);
	line-height: 1.05;
	color: var(--rm-navy);
}

.rm-acc-hero__lead {
	margin: 0;
	font-size: clamp(1rem, 0.9rem + 0.45vw, 1.375rem);
	color: var(--rm-navy);
}

/* the products photo, its light left side running into the band as in
   the design */
.rm-acc-hero__media {
	align-self: stretch;
	flex: 0 1 756px;
	min-width: 0;
	margin-right: calc(var(--rm-gutter) * -1);
}

.rm-acc-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right bottom;
}

@media (min-width: 1570px) {
	.rm-acc-hero__media {
		margin-right: 0;
	}
}

@media (max-width: 699px) {
	.rm-acc-hero__media {
		display: none;
	}
}

/* ---- layout: sidebar + card ---- */
.rm-acc {
	display: grid;
	gap: var(--rm-s6);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	padding-block: var(--rm-s6) clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 1000px) {
	.rm-acc {
		grid-template-columns: 16.5rem minmax(0, 1fr);
	}
}

/* ---- sidebar ---- */
.rm-acc__side {
	overflow: hidden;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg);
	background: var(--rm-white);
}

@media (max-width: 999px) {
	.rm-acc__side {
		display: none;
	}
}

.rm-acc__side svg,
.rm-acc__tab svg,
.rm-acc__head-icon,
.rm-addr__icon {
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rm-acc__side-head {
	display: flex;
	align-items: center;
	gap: var(--rm-s3);
	margin: 0;
	padding: var(--rm-s4) var(--rm-s5);
	background: var(--rm-navy);
	font-family: var(--rm-font-text);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--rm-white);
}

.rm-acc__side-head svg {
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
	stroke: none;
}

.rm-acc__nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rm-acc__nav li + li {
	border-top: 1px solid var(--rm-line);
}

.rm-acc__nav a {
	display: flex;
	align-items: center;
	gap: var(--rm-s3);
	padding: 0.8rem var(--rm-s5);
	font-size: 0.9375rem;
	color: var(--rm-navy);
	text-decoration: none;
}

.rm-acc__nav svg {
	width: 1.25rem;
	height: 1.25rem;
}

.rm-acc__nav a:hover {
	background: var(--rm-bg-alt);
}

.rm-acc__nav .is-current a {
	background: #E7F0FB;
	font-weight: 700;
}

/* ---- the card ---- */
.rm-acc__main {
	min-width: 0;
	padding: clamp(1rem, 2.5vw, 1.5rem);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg);
	background: var(--rm-white);
}

.rm-acc__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--rm-s3) var(--rm-s5);
	margin-bottom: var(--rm-s5);
}

.rm-acc__head-icon {
	width: 2.5rem;
	height: 2.5rem;
	color: var(--rm-navy);
}

.rm-acc__head-text {
	flex: 1 1 14rem;
	min-width: 0;
}

.rm-acc__title {
	margin: 0 0 var(--rm-s1, 0.25rem);
	font-family: var(--rm-font-display);
	font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--rm-navy);
}

.rm-acc__lead {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--rm-ink-soft);
}

.rm-acc__action {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-s2);
	min-height: 2.75rem;
	padding: 0 var(--rm-s5);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-navy);
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--rm-white);
	text-decoration: none;
	white-space: nowrap;
}

.rm-acc__action span {
	font-size: 1.375rem;
	line-height: 1;
}

.rm-acc__action:hover {
	background: var(--rm-blue);
	color: var(--rm-white);
	text-decoration: none;
}

/* ---- the four tabs ---- */
.rm-acc__tabs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--rm-s2);
	margin-bottom: var(--rm-s6);
}

.rm-acc__tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--rm-s3);
	min-height: 2.875rem;
	padding: var(--rm-s2) var(--rm-s4);
	border-radius: var(--rm-radius-sm);
	background: #EEF3FA;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--rm-navy);
	text-align: center;
	text-decoration: none;
}

.rm-acc__tab svg {
	width: 1.25rem;
	height: 1.25rem;
}

/* sidebar beside the card: the card is narrower, so are the tabs */
@media (min-width: 1000px) and (max-width: 1279px) {
	.rm-acc__tab {
		gap: var(--rm-s2);
		padding-inline: var(--rm-s2);
		font-size: 0.8125rem;
	}
}

.rm-acc__tab:hover {
	background: #DFE9F6;
	text-decoration: none;
}

.rm-acc__tab.is-current {
	background: var(--rm-navy);
	color: var(--rm-white);
}

@media (max-width: 599px) {
	.rm-acc__tabs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rm-acc__tab {
		font-size: 0.8125rem;
		gap: var(--rm-s2);
		padding-inline: var(--rm-s2);
	}
}

/* ---- inside the card: the pages' own headings and wrappers ---- */
.rm-acc__body .savdcrdcrd > h1:first-child,
.rm-acc__body .savdcrdcrd > .title:first-child,
.rm-acc__body .savdcrdcrd > h1 + br,
.rm-acc__body .rm-reg__head {
	display: none;
}

.rm-acc__body .rm-reg.rm-container {
	max-width: none;
	padding: 0;
}

.rm-acc__body .dialog,
.rm-acc__body .dialog .content {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.rm-acc__body .dialog > .title {
	display: none;
}

/* ---- Primary Address: billing | shipping, then account info ---- */
.rm-acc__body .rm-reg__req {
	margin-bottom: var(--rm-s4);
}

.rm-acc__body .rm-reg__card--billing   { order: 1; }
.rm-acc__body .rm-reg__card--shipping  { order: 2; }
.rm-acc__body .rm-reg__card--account   { order: 3; }
.rm-acc__body .rm-reg__card--verify    { order: 4; }

.rm-acc__body .rm-reg__card {
	padding: 0 var(--rm-s5) var(--rm-s5);
	overflow: hidden;
	border: 1px solid var(--rm-line);
	background: var(--rm-white);
}

.rm-acc__body .rm-reg__card--verify {
	padding: 0;
	border: 0;
	background: none;
}

/* heading as a tinted bar across the card's top */
.rm-acc__body .rm-reg__h {
	margin: 0 calc(var(--rm-s5) * -1) var(--rm-s5);
	padding: var(--rm-s4) var(--rm-s5);
	background: #EEF4FB;
	font-size: 1.25rem;
}

/* signed in, the cards carry icons rather than step numbers
   (register*.tpl print an svg instead of .rm-reg__num) */
.rm-reg__icon {
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	fill: none;
	stroke: var(--rm-navy);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* fields stacked, one per row, as in the design (the cards are half
   the card's width) */
.rm-acc__body .rm-reg__card--billing table.data-table > tbody,
.rm-acc__body .rm-reg__card--shipping table > tbody {
	grid-template-columns: minmax(0, 1fr);
}

/* ---- Address Book: cards ---- */
.rm-acc__body ul.address-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: var(--rm-s4);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* the "Add New Address" box - the button in the heading replaces it */
.rm-acc__body li#address_box_0 {
	display: none;
}

.rm-acc__body li.address-box {
	margin: 0;
	padding: var(--rm-s5);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg);
	background: var(--rm-white);
	line-height: 1.5;
	color: var(--rm-ink);
}

.rm-acc__body .address-bg,
.rm-acc__body .address-main {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.rm-acc__body .rm-addr__top {
	display: flex;
	align-items: center;
	gap: var(--rm-s3);
	margin-bottom: var(--rm-s3);
}

.rm-acc__body .rm-addr__icon {
	width: 1.75rem;
	height: 1.75rem;
	color: var(--rm-navy);
}

.rm-acc__body .rm-addr__badge {
	padding: 0.2rem 0.75rem;
	border-radius: var(--rm-radius-sm);
	background: #DCEBFB;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--rm-navy);
}

.rm-acc__body .address-box .buttons-row {
	display: flex;
	gap: var(--rm-s5);
	margin-top: var(--rm-s4);
}

/* only the spacer above the buttons; the address's own line breaks stay */
.rm-acc__body .address-main > br {
	display: none;
}

.rm-acc__body .address-box .address-line.onee {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--rm-navy);
}

.rm-acc__body .address-box .address-line.onee p {
	margin: 0 !important;
	font-size: 0.9375rem;
	font-weight: 400;
	color: var(--rm-ink);
}


.rm-acc__body .address-box .buttons-row .button,
.rm-acc__body .address-box .buttons-row button {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-s2);
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--rm-blue);
	cursor: pointer;
	box-shadow: none;
}

.rm-acc__body .address-box .buttons-row .red-button,
.rm-acc__body .address-box .buttons-row .red-button * {
	color: var(--rm-red);
}

.rm-acc__body .address-box .buttons-row .button:hover {
	text-decoration: underline;
}

.rm-acc__body .address-box .buttons-row .button span {
	padding: 0;
	background: none;
}

/* ---- Order History ---- */
.rm-acc__body--orders .savdcrdcrd > h1:first-child + .text-block,
.rm-acc__body--orders .text-block:first-of-type {
	display: none;
}

/* the store's full search form: the compact bar above replaces it */
.rm-acc__body--orders .adv-search {
	display: none;
}

.rm-acc__body .rm-ord-find {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rm-s3);
	margin-bottom: var(--rm-s4);
}

.rm-acc__body .rm-ord-find input[type=text],
.rm-acc__body .rm-ord-find select {
	min-height: 2.75rem;
	padding: 0 var(--rm-s4);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-white);
	font: inherit;
	color: var(--rm-ink);
}

.rm-acc__body .rm-ord-find input[type=text] {
	flex: 1 1 14rem;
}

.rm-acc__body .rm-ord-find select {
	flex: 0 1 12rem;
}

.rm-acc__body .rm-ord-find button {
	min-height: 2.75rem;
	padding: 0 var(--rm-s5);
	border: 0;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-navy);
	font: inherit;
	font-weight: 700;
	color: var(--rm-white);
	cursor: pointer;
}

.rm-acc__body .rm-ord-count {
	margin: 0 0 var(--rm-s3);
	font-size: 0.875rem;
	color: var(--rm-ink-soft);
}

.rm-acc__body .results-links .results-check,
.rm-acc__body .results-links .results-search,
.rm-acc__body table.search-results .order-check,
.rm-acc__body form[name=processorderform] > .button-row,
.rm-acc__body table.search-results tr:not(.head-row):has(> td.data-right-column) {
	display: none;
}

.rm-acc__body .rm-ord-scroll {
	overflow-x: auto;
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-lg);
}

.rm-acc__body table.search-results {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.rm-acc__body table.search-results th {
	padding: var(--rm-s3) var(--rm-s4);
	background: #EEF4FB;
	text-align: left;
	font-weight: 700;
	color: var(--rm-navy);
	white-space: nowrap;
}

.rm-acc__body table.search-results th a {
	color: inherit;
	text-decoration: none;
}

.rm-acc__body table.search-results td {
	padding: var(--rm-s3) var(--rm-s4);
	border-top: 1px solid var(--rm-line);
	vertical-align: middle;
	background: var(--rm-white);
}

.rm-acc__body table.search-results td.order-number {
	font-weight: 700;
	color: var(--rm-blue);
}

.rm-acc__body table.search-results td.status strong {
	display: inline-block;
	padding: 0.2rem 0.75rem;
	border-radius: var(--rm-radius-sm);
	background: #DCEBFB;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--rm-navy);
	white-space: nowrap;
}

.rm-acc__body table.search-results td.view a,
.rm-acc__body table.search-results td.track a,
.rm-acc__body table.search-results td.print a {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	padding: 0 var(--rm-s4);
	border: 1px solid var(--rm-navy);
	border-radius: var(--rm-radius-sm);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rm-navy);
	text-decoration: none;
	white-space: nowrap;
}

.rm-acc__body table.search-results td.view a:hover,
.rm-acc__body table.search-results td.print a:hover {
	background: var(--rm-navy);
	color: var(--rm-white);
}

/* Track: gold, as Order Details' Track It - opens the carrier's page */
.rm-acc__body table.search-results td.track a {
	border-color: var(--rm-gold);
	background: var(--rm-gold);
	color: var(--rm-white);
}

.rm-acc__body table.search-results td.track a:hover {
	border-color: var(--rm-gold-dark);
	background: var(--rm-gold-dark);
	color: var(--rm-white);
}

/* ---- Saved Credit Cards ---- */
.rm-acc__body table.saved-cards {
	width: 100%;
	border: 1px solid var(--rm-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--rm-radius-lg);
	overflow: hidden;
	font-size: 0.9375rem;
}

.rm-acc__body table.saved-cards th {
	padding: var(--rm-s3) var(--rm-s4);
	background: #EEF4FB;
	text-align: left;
	font-weight: 700;
	color: var(--rm-navy);
}

.rm-acc__body table.saved-cards td {
	padding: var(--rm-s3) var(--rm-s4);
	border-top: 1px solid var(--rm-line);
	vertical-align: middle;
}

.rm-acc__body table.saved-cards .card-container {
	display: flex;
	align-items: center;
	gap: var(--rm-s3);
}

.rm-acc__body table.saved-cards td.type a,
.rm-acc__body table.saved-cards td.remove a {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	padding: 0 var(--rm-s4);
	border: 1px solid var(--rm-navy);
	border-radius: var(--rm-radius-sm);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rm-navy);
	text-decoration: none;
	white-space: nowrap;
}

.rm-acc__body table.saved-cards td.remove a {
	border-color: var(--rm-red);
	color: var(--rm-red);
}

.rm-acc__body table.saved-cards td.default-card + td.type {
	font-weight: 600;
	color: var(--rm-green);
}

.rm-acc__body--saved_cards .savdcrdcrd > p,
.rm-acc__body--saved_cards .savdcrdcrd > .title h2 {
	max-width: 60ch;
	color: var(--rm-ink-soft);
}

.rm-acc__body--saved_cards .savdcrdcrd > .title h2 {
	margin: var(--rm-s5) 0 var(--rm-s2);
	font-size: 1.125rem;
	color: var(--rm-navy);
}

/* Profile: the store's "Save as a new address / Update existing
   address" choice under each address - a tidy row of two options
   rather than a small grey box mid-form (fields unchanged) */
.rm-reg .address-book-link {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rm-s2) var(--rm-s5);
	margin: 0;
	padding: var(--rm-s3) var(--rm-s4);
	border: 1px dashed var(--rm-line);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-bg-alt);
}

.rm-reg .address-book-link label {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-s2);
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--rm-ink);
	cursor: pointer;
}

.rm-reg .address-book-link br,
.rm-reg .address-book-link .clearing {
	display: none;
}

.rm-reg tr:has(> td > .address-book-link) {
	grid-column: 1 / -1;
}

.rm-reg tr:has(> td > .address-book-link) > td:not([colspan]) {
	display: none;
}

/* My Account > Primary Address: "Save Changes", navy, on the right */
.rm-acc__body .rm-reg__card--verify .rm-reg__submit {
	display: flex;
	justify-content: flex-end;
}

.rm-acc__body .rm-reg__card--verify .main-button {
	background: var(--rm-navy);
	color: var(--rm-white);
}

.rm-acc__body .rm-reg__card--verify .main-button:hover {
	background: var(--rm-blue);
}

.rm-acc__body .xpc-add-new-card-button {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 var(--rm-s5);
	border: 0;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-navy);
	font: inherit;
	font-weight: 700;
	color: var(--rm-white);
	cursor: pointer;
}

.rm-acc__body .xpc-add-new-card-button span {
	padding: 0;
	background: none;
	color: inherit;
}

/* one line per cell; on a phone the table scrolls sideways in its frame */
.rm-acc__body table.search-results td {
	white-space: nowrap;
}

.rm-acc__body table.search-results td.track,
.rm-acc__body table.search-results td.print {
	padding-left: 0;
}

/* Change password, in the My Account card */
.rm-acc__body--change_password h1.page-heading {
	display: none;
}

.rm-acc__body--change_password table.data-table {
	border-collapse: separate;
	border-spacing: 0 var(--rm-s3);
}

.rm-acc__body--change_password table.data-table td {
	padding: 0 var(--rm-s2) 0 0;
	vertical-align: middle;
	font-size: 0.9375rem;
}

.rm-acc__body--change_password table.data-table td:first-child {
	font-weight: 600;
	color: var(--rm-navy);
	white-space: nowrap;
}

.rm-acc__body--change_password td.data-required {
	color: var(--rm-red);
}

.rm-acc__body--change_password input[type=password] {
	width: min(22rem, 60vw);
	min-height: 2.75rem;
	padding: 0 var(--rm-s3);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	font: inherit;
}

.rm-acc__body--change_password .button-row .main-button,
.rm-acc__body--change_password .button-row button,
.rm-acc__body--change_password .button-row input[type=submit] {
	min-height: 2.75rem;
	padding: 0 var(--rm-s6);
	border: 0;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-navy);
	font: inherit;
	font-weight: 700;
	color: var(--rm-white);
	cursor: pointer;
}

/* -------------------------------------------------------------
   Add / Edit address popup (popup_address.php - Address Book's "Add
   New Address" and "Edit", and the checkout's address book). CSS
   only: form "addressbook", its fields, names and checks unchanged.
   ------------------------------------------------------------- */
.ui-dialog form[name=addressbook] table {
	width: auto;
	border-collapse: separate;
	border-spacing: 0 var(--rm-s2);
}

.ui-dialog form[name=addressbook] td {
	padding: 0 var(--rm-s2) 0 0;
	vertical-align: middle;
	font-size: 0.9375rem;
}

.ui-dialog form[name=addressbook] td.data-name {
	width: 1%;
	white-space: nowrap;
	font-weight: 600;
	color: var(--rm-navy);
}

.ui-dialog form[name=addressbook] td.data-required {
	width: 0.75rem;
	color: var(--rm-red);
}

.ui-dialog form[name=addressbook] input[type=text],
.ui-dialog form[name=addressbook] select {
	width: 20rem;
	max-width: 100%;
	min-height: 2.5rem;
	padding: 0 var(--rm-s3);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-white);
	font: inherit;
	color: var(--rm-ink);
}

.ui-dialog form[name=addressbook] input.zipcode {
	max-width: 10rem;
}

.ui-dialog form[name=addressbook] .ipt-nt {
	margin-left: var(--rm-s2);
	font-size: 0.8125rem;
	color: var(--rm-muted);
}

.ui-dialog form[name=addressbook] label {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-s2);
	font-size: 0.9375rem;
}

.ui-dialog form[name=addressbook] button,
.ui-dialog form[name=addressbook] input[type=submit] {
	min-height: 2.75rem;
	margin-top: var(--rm-s3);
	padding: 0 var(--rm-s6);
	border: 0;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-navy);
	font: inherit;
	font-weight: 700;
	color: var(--rm-white);
	cursor: pointer;
}

.ui-dialog form[name=addressbook] button span {
	padding: 0;
	background: none;
	color: inherit;
}

@media (max-width: 599px) {
	.ui-dialog form[name=addressbook] tr {
		display: grid;
		grid-template-columns: auto 1fr;
	}

	.ui-dialog form[name=addressbook] td.data-name {
		width: auto;
	}

	.ui-dialog form[name=addressbook] table {
		width: 100%;
	}

	.ui-dialog form[name=addressbook] input[type=text],
	.ui-dialog form[name=addressbook] select {
		width: 100%;
	}

	.ui-dialog form[name=addressbook] td.data-value,
	.ui-dialog form[name=addressbook] td:last-child:not(.data-required) {
		grid-column: 1 / -1;
	}
}

/* the popup sizes itself to its content; a wider page rule stretched
   the field column to ~1060px, so the dialog is capped here */
.ui-dialog:has(form[name=addressbook]) {
	max-width: min(38rem, calc(100vw - 2rem));
	left: 50% !important;
	transform: translateX(-50%);
}

.ui-dialog form[name=addressbook] td.data-value {
	width: auto;
}

@media (max-width: 599px) {
	.ui-dialog:has(form[name=addressbook]) {
		width: calc(100vw - 2rem) !important;
	}
}


/* -------------------------------------------------------------
   No fades or blur on any picture (client, 2026-10-13: "we don't
   need blur on any hero images"). Every gradient mask - the category,
   Store Policies, About, Contact, Videos, My Account and Thank You
   heroes, the policy cards, the banners' wide-screen edges - was
   removed above; this also drops the Videos hero's white veil.
   ------------------------------------------------------------- */
.rm-videos-hero .rm-hero__media--scene::after {
	display: none;
}

