

.tokwtycust_modal_guardian_close{
	margin-right: 10px;
	font-size: 30px;
	width: auto;
	
}

.tokwtycust_modal_guardian-header {
	justify-content: flex-end;
	align-self: flex-end;
}

.tokwtycust_modal_guardian h1 { /* This h1 is inside the modal body */
	text-align: center;
	margin-bottom: 50px; /* Will be adjusted in MQ */
}

.sheet { /* These are inside the modal body */
	margin-bottom: 60px; /* Will be adjusted in MQ */
	border-bottom: 1px solid #ddd;
	padding-bottom: 40px; /* Will be adjusted in MQ */
	width:500px; /* Will be adjusted in MQ */
}

.sheet h2 { /* These are inside the modal body */
	font-size: 1.5rem; /* Will be adjusted in MQ */
	margin-bottom: 20px; /* Will be adjusted in MQ */
	color: #222;
}

.tear-image { /* These are inside the modal body */
	width: 100%; /* Already good for responsiveness within its container */
	height: auto;
	display: block;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	margin-bottom: 15px; /* Will be adjusted in MQ */
}

a.terms { /* These are inside the modal body */
	display: inline-block;
	font-weight: bold;
	color: #cc0000;
	text-decoration: none;
	font-size: 1rem; /* Will be adjusted in MQ */
}

/* Modal Styles */
.tokwtycust_modal_guardian {
	display: none; /* Should be 'flex' when shown by JS */
	position: fixed;
	z-index: 1000;
	max-width: 600px; /* Will be overridden in MQ */
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%); /* Will be overridden in MQ */
	padding-left: 10px; /* Will be overridden in MQ */
	border-radius: 10px; /* Will be overridden in MQ */
	flex-direction: column;
	background-color: white;
}


.tokwtycust_modal_guardian-content {
	display: flex;
	flex-direction: row; /* Modal header (close button) and body side-by-side */
	background-color: #fff;
	border-radius: 8px; /* Will be overridden in MQ */
	max-height: 90vh;
	overflow-y: auto; /* Modal itself scrolls */
}

.tokwtycust_guardian_close {
	position: absolute;
	top:5px;
	right:5px;
	color: rgb(69, 69, 69);
	/* float: right; Not necessary with absolute positioning */
	font-size: 40px; /* Will be adjusted in MQ */
	font-weight: 300;
	cursor: pointer;
	z-index: 20; /* Will be adjusted in MQ, relative to modal content */
	width: 40px; /* Will be adjusted in MQ */
}

.tokwtycust_guardian_close:hover,
.tokwtycust_guardian_close:focus {
	color: #000;
	text-decoration: none;
	cursor: pointer;
}

.tokwtycust_modal_guardian-header { /* Contains only the close button based on HTML */
	position: relative; /* So the absolute close button is relative to it */
	margin-left: 0; /* Adjust as needed, but may not be visually significant */
    /* flex-basis: 40px; Consider a small basis if row direction is kept and body is main content */
    /* The header doesn't have other content, so its dimensions are mostly dictated by close button or explicit sizing */
}

/* This rule seems unused by the provided HTML for wty_modal_guardian.html as img is not in header */
.tokwtycust_modal_guardian-header img {
	height: 530px;
	margin-left: 20px;
	width: auto;
}

.tokwtycust_modal_guardian-header h2 { /* This rule is also unused by the HTML for this specific modal header */
	margin-top: 10px;
	font-size: 20px;
}

.tokwtycust_modal_guardian-body  {
	margin-left: 10px; /* Will be adjusted in MQ */
	margin-right: 10px; /* Will be adjusted in MQ */
	width:800px; /* Will be adjusted in MQ */
    flex-grow: 1; /* Allows body to take up space if content is flex row */
    padding: 20px; /* Add some initial padding */
    box-sizing: border-box;
    overflow-y: auto; /* If the body itself needs to scroll independently, typically modal scrolls */
}

/* These list styles might not be used directly in wty_modal_guardian.html's body, but are good to have if list is added */
.tokwtycust_modal_guardian-body ul {
	list-style-type: disc;
	margin: 10px 0;
	padding-left: 20px;
}

.tokwtycust_modal_guardian-body ul li {
	margin: 5px 0;
	font-size: 14px;
}


/* Mobile Adjustments for Tall, Narrow Screens (max 350px width assumed) */
@media (max-aspect-ratio: 3/5) {
	/* Styles for content within the modal body */
	.tokwtycust_modal_guardian-body h1 { /* Target h1 specifically inside the modal body */
		font-size: 1.5rem; /* Adjust from general h1 if needed, e.g., 20px */
		margin-bottom: 20px;
		padding-top: 20px; /* Add padding if close button overlays */
	}

	.tokwtycust_modal_guardian-body .sheet {
		width: 100%; /* Make sheets take full width within body padding */
		margin-bottom: 30px;
		padding-bottom: 20px;
        box-sizing: border-box;
	}

	.tokwtycust_modal_guardian-body .sheet h2 {
		font-size: 1.1rem; /* e.g., 16px-18px */
		margin-bottom: 10px;
	}

	.tokwtycust_modal_guardian-body .tear-image {
		margin-bottom: 10px;
        border-radius: 4px; /* Slightly smaller radius */
	}

	.tokwtycust_modal_guardian-body a.terms {
		font-size: 0.9rem; /* e.g., 13px-14px */
        padding: 8px 0; /* Better touch target */
	}

	/* Modal Fullscreen Adjustments */
	.tokwtycust_modal_guardian {
		flex-direction: column;
		width: 100%;
		max-width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		transform: none;
		padding: 0; /* Remove padding for fullscreen */
		border-radius: 0; /* No border radius for fullscreen */
        display: none; /* Override if it was flex previously */
	}

	.tokwtycust_modal_guardian-content {
		flex-direction: column; /* Stack header (effectively just close button area) and body */
		width: 100%;
		min-height: 100%;
		box-sizing: border-box;
		border-radius: 0;
		max-height: 90vh;
		overflow-y: auto; /* Modal itself scrolls */
	}

	.tokwtycust_modal_guardian-header {
		margin-left: 0;
		padding: 0;
        height: 50px; /* Define a height for the header area for close button positioning */
        width: 100%;
        position: relative; /* Ensure it's a positioning context for the close button */
        flex-shrink: 0; /* Prevent header from shrinking */
	}

	.tokwtycust_guardian_close {
		font-size: 30px;
		top: 10px; /* Position within the header area */
		right: 15px;
		width: 30px; /* Smaller touch target is okay if icon is clear */
		height: 30px;
        line-height: 30px;
        text-align: center;
		z-index: 1001; /* Ensure it's above other modal content */
        color: #333; /* Ensure visibility */
	}

	.tokwtycust_modal_guardian-body {
		width: 100%;
		margin: 0;
		padding: 0 15px 15px 15px; /* Padding for content, top padding handled by h1 margin or explicit body padding-top */
		box-sizing: border-box;
        /* overflow-y: auto; /* Not needed if main modal scrolls */
        flex-grow: 1; /* Body takes remaining space */
	}
    
    /* If lists are ever added to this modal's body */
    .tokwtycust_modal_guardian-body ul {
        padding-left: 15px;
    }
    .tokwtycust_modal_guardian-body ul li {
        font-size: 13px;
    }
}