@charset "utf-8";

body, html {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    box-sizing: border-box;
    width: 100%;
    max-height: 100vh;
}

.slide-out {
  transform: translateX(100%); /* Moves the page out to the right */
  transition: transform 0.5s ease-in-out; /* Smooth transition */
}

.paymentmethod {
    width: 95%;
    height: 100vh;
	padding: 0 0.75em;
    top: 0;
    left: 0;
    z-index: 100000;
    background: white; /* Ensures it visually covers the page */
    transition: transform 0.3s ease; /* Smooth slide-in effect */
	overflow-y: auto;
	position: absolute;
	justify-content: center;
}


/* Header Section */
.payment-top {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    display: flex;
    align-items: center;
    padding: 0.5em 1em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.payment-back {
    width: 0.75em;
    cursor: pointer;
}

.payment-text {
    font-size: 1.25em;
    font-weight: 700;
    margin-left: 1em;
}

/* Payment Methods */
.themethods {
    margin-top: 6em;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.method {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: 0.5em;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    position: relative;
}

.method-toggle {
    display: none;
}

.method-toggle:checked + .toggle-circle {
    background-color: #40e0d0; /* Turquoise */
    border-color: #40e0d0;
}

.method-toggle:checked + .toggle-circle::after {
    content: "✓";
    color: white;
    font-size: 0.8em;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.toggle-circle {
    width: 1.5em;
    height: 1.5em;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s, border-color 0.3s;
}

.method-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-left: 3em; /* Space for the toggle circle */
}

.method-title {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.codmethod-icon {
    width: 6em;
    height: auto;
}

.obmethod-icon {
    width: 18em;
    height: auto;
}

.ewalletmethod-icon {
    width: 6em;
    height: auto;
}

.method:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
