/* General Reset */
body, html { 
    margin: 0; 
    padding: 0; 
    height: 100%; 
    overflow: hidden; 
    font-family: sans-serif;
	background: #121212;
}

@media screen {
	#rt-main-iframe html{
		margin-top: 0 !important;
	}
}

#rt-main-iframe #wpadminbar{
	display:none !important;
}
/* Header & Controls */
.rt-header { 
    background: #1a1d23; 
    padding: 0 30px; 
    display: flex; 
    align-items: center; 
    gap: 20px;
    height: 60px;
}

.rt-controls { 
    display: flex; 
    gap: 10px; 
    align-items: center; 
    justify-content: center; 
    flex-grow: 1; 
}

/* Buttons */
.rt-back-btn{
	background: transparent;
	color: #fff;
	border: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 14px;
	text-decoration:none;
	transition: 0.3s;
}
.rt-back-btn:focus{
    background:transparent;
}
.rt-back-btn:hover{
	color:#9255CE;
	background:transparent;
}
.rt-device-btn, .rt-visit-btn { 
    background: #323743; 
    border: 1px solid #454c59; 
    color: #fff; 
    padding: 8px 18px; 
    cursor: pointer; 
    border-radius: 50px; 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    transition: 0.3s;
    text-decoration: none;
}
.rt-visit-btn svg{
	width: 14px;
  	height: 14px;
}
.rt-visit-btn:hover { 
    background: #323743; 
    border: 1px solid #454c59; 
    color: #fff;
}

.rt-device-btn.rt-active, .rt-device-btn:hover { 
    background: #9255CE; 
    color: #fff; 
    border-color: #9255CE; 
}
.rt-device-btn.rt-active { 
    background: #9255CE; 
    color: #fff; 
    border-color: #9255CE; 
}

.rt-visit-btn { 
	background: #9255CE;
	border:1px solid #9255CE;
}
@media screen and (max-width: 1024px) {
	.rt-device-btn.desktop{
		display:none;
	}
	.rt-header{
		padding: 0 20px;
	}
}
@media screen and (max-width: 767px) {
	.rt-header {
		justify-content: space-between;
	}
	.rt-controls {
		display:none !important;
	}
	.rt-device-btn.tablet, .rt-device-btn.mobile{
		display:none;
	}
}

/* Main Body & Iframe */
.rt-body { 
    width: 100%;
	height: calc(100vh - 60px);
    background: #0b0c10; 
    box-sizing: border-box;
	overflow-y: auto;
}

.rt-iframe-wrapper{
	height: calc(100vh - 60px); 
	display: flex; 
    justify-content: center; 
}

#rt-main-iframe { 
    width: 100%;
    height: 100%; 
    border: none;
    transition: width 0.3s ease;
/* 	border-radius: 10px 10px 0 0; */
}

/* Loader */
.rt-loader-container {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    z-index: 999;
}
.rt-spinner {
    width: 50px; 
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #9255CE;
    border-radius: 50%;
    animation: rt-spin 1s linear infinite;
}
@keyframes rt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Cart */
.rt-floating-cart { 
    position: absolute; 
    bottom: 60px;
  	right: 25px;
    background: #9255CE; 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    z-index: 100; 
	transition: 0.3s;
}
.rt-floating-cart:hover{
	color:#9255CE;
	background: #000; 
}
/* Trigger Button (Frontend) */
.rt-launch-trigger {
    background: #fff;
    color: #000;
    padding: 17px 22px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}
.rt-launch-trigger:hover { 
    background-color: #f0f0f0; 
}
/* Trigger Button Page */
.rt-launch-trigger {
    background: #fff !important;
    color: #000 !important;
    padding: 17px 22px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
    width: 100%;
}
.rt-launch-trigger:hover{
    background-color:#f0f0f0 !important;
}

/* Screenshot Grid Styles */
.rt-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 30px 30px 50px 30px;
	overflow: visible;
}
.screenshot-item{
	margin-top: auto; 
}
.screenshot-item img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: block;
	cursor: zoom-in;
}

.screenshot-item img:hover {
    transform: scale(1.02);
}

#rt-preview-area {
    width: 100%;
    display: block;
}

#rt-main-img {
	max-width:100%;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}