:root {
    --primary-color: #012169;
    --primary-hover: #023299;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-main: #ffffff;
    --bg-subtle: #edf0f4;
    --border-subtle: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition-fast: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
    background: var(--bg-main);
    font-family: 'Lato', 'Inter', sans-serif;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.6;
}

/* Page content wrapper */
.site-main {
    width: 100%;
    min-height: 60vh;
}

html {
    width: 100%;
}

/* STRUCTURE ###################################### */
/* Used outside of main divs to hold them centrally */
.centeringdiv {
    margin: 0;
    justify-content: center;
    align-items: center;
}

.flex-container {
    max-width: 1200px;
    margin: auto;
    background: white;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

    .flex-container img {
        width: 100%;
    }

.flex-child {
    width: 100%;
    flex-basis: calc(25% - 8px); /* 4 columns with gap */
    margin: 0 10px 10px 0;
}

    .flex-child:nth-child(4n) {
        margin-right: 0; /* every 4th item cancel the right margin */
    }

    /* override the old 2n rule if it exists anywhere */
    .flex-child:nth-child(2n) {
        margin-right: 10px;
    }
    .flex-child:nth-child(4n) {
        margin-right: 0;
    }

.test1 {
    background-color: black;
    min-height: 100px;
}

.test2 {
    background-color: red;
    min-height: 100px;
}


/* white background centered content which sizes okay in small */
.centereddiv {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    text-align: left;
    background: white;
}
/* contents will middled and centered */
.centereddivcenter {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center; /* Horizontal alignment (center) */
    align-items: center; /* Vertical alignment (center) */
    background-color: white;
    flex-direction: column;
}





a {
    text-decoration: none;
}

.rem3 {
    padding: 3rem;
}

/* add this class for large text bodies 3rem in full screen, 1.5 in mobile */
.textpad {
    padding: 3rem;
}

/* Register section on Register.aspx */
.registersection {
    padding: 3rem;
}



/* a sectio nwith many textboxes */
.textboxes {
    padding-left: 10%;
    padding-right: 10%;
    margin-bottom: 3rem;
}

    .textboxes a {
        margin-top: 2rem;
    }

.textbox-group {
    position: relative;
    height: 66px;
    margin-bottom: 2rem;
}

    .textbox-group label {
        position: absolute;
        top: 0;
        left: 0;
    }

.sidenote {
    position: absolute;
    top: 0;
    right: 0;
    color: red;
}

.textbox-group input {
    position: absolute;
    bottom: 0;
    width: 100%; /* make it full-width */
    height: 42px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 0 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.textbox-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(1, 33, 105, 0.15);
}



.buttons {
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.paynow {
    height: 100px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal-width columns */
    background-color: #eee;
    align-items: center;
    padding-top: 14px;
}

    .paynow .item1 {
        flex-grow: 1;
        text-align: center;
        font-weight: 500;
        font-size: 1.3rem;
    }

    .paynow .item3 {
        grid-column: span 2; /* Spans two columns */
    }


/* force to block for anchors */
/* force to block for anchors */
a.rixButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max(40%, 100px);
    color: white;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
}

a.rixButton.disabled, .rixButton.disabled {
    background-color: var(--border-subtle);
    color: var(--text-muted);
    pointer-events: none;
    box-shadow: none;
}


/* cardfileimagessmall */
.cfsmall-container {
    width: 100%;
    margin: 0 auto;
}
/*.cfsmall-main {
    max-width: 800px;
    margin: 0 auto;
    background-color: #FFFFFF;
}*/
.cfsmall-image-container {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    margin: 10px 0;
}

.cfsmall-image {
    flex: 1;
    /*margin: 0 5px;*/
    max-width: 395px;
    display: block;
}

    .cfsmall-image img {
        width: 100%;
    }


/* standard text layouts */
.standard {
    padding: 0 2rem 0 2rem;
    background-color: white;
}

    .standard h1 {
        font-weight: 600;
        font-size: 3rem;
        margin-top: 1rem;
    }

    .standard p {
        padding: 1rem 3rem 1rem 3rem;
        font-size: 1.2rem;
    }


/* historical order section */
.ucHistoricalOrder {
    margin-top: 2rem;
}

.historical-order-date {
    padding: 0 !important;
    margin: 0;
}

.historical-order-footnote p {
    font-size: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}




/* Normal title and text section, dark text*/
.normalboxout {
    background-color: #eee;
    padding: 4rem;
}

    .normalboxout h1 {
        font-size: 28px;
        color: #131313;
        line-height: 44px;
        font-weight: normal;
    }

    .normalboxout p {
        font-size: 14px;
        color: #131313;
        line-height: 30px;
        font-weight: normal;
    }



/* Blue title and text section, white text*/
.blueboxout {
    background-color: #3399ff;
    padding: 4rem;
    font-family: 'Roboto', sans-serif;
}

    .blueboxout h1 {
        font-family: 'Roboto', sans-serif;
        font-size: 28px;
        color: #FFF;
        line-height: 44px;
        font-weight: normal;
    }

    .blueboxout p {
        font-family: 'Roboto', sans-serif;
        font-size: 14px;
        color: #FFF;
        line-height: 30px;
        font-weight: normal;
    }




.rixCardFileQuantityBox {
    background-color: #3399ff;
    width: 60px;
    height: 60px;
    position: absolute;
    left: 8px;
    bottom: 16px;
    border-radius: 10px;
}

.rixCardFileQuantityText {
    color: white;
    font-size: 2.0em;
    font-weight: 600;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
}


.rixButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #ffffff;
    text-transform: none;
    background-color: var(--primary-color);
    height: 2.8rem;
    padding: 0 1.5rem;
    border: none;
    font-weight: 500;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    cursor: pointer;
}

.rixButton:hover, a.rixButton:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: #ffffff;
}



/* Postage section on checkout */
.thepostage {
    padding: 2rem;
}

.ucCheckItem {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.funky {
    margin-left: 6px;
}

.postagesummary {
    padding-left: 12%;
    padding-right: 12%;
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: #eee;
    FONT-weight: 600;
    font-size: 0.8rem;
}




/* Coupon code section on checkout page */
.couponcodesection {
    padding: 3rem;
}




/* address section on checkout page */
.addresssection {
    padding: 3rem;
}

/* wraptitle — card name + price bar at bottom of carousel card */
.wraptitle {
    display: flex;
    align-items: center;
    width: 100%;
    height: 32px;
    min-height: 32px;
    background-color: var(--bg-subtle, #edf0f4);
    padding: 4px 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.wraptitle-left {
    text-align: left;
    flex: 1;
    color: var(--text-muted) !important;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.wraptitle-right {
    text-align: right;
    color: var(--primary-color) !important;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}



/* Thin Titles */
.thinleft {
    padding-left: 7.5%;
    min-height: 40px;
}

.thintitle {
    padding-top: 10px;
    padding-bottom: 10px;
    background: var(--bg-subtle, #f9fafb);
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

    .thintitle .left {
        padding-top: 0;
        float: none;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .thintitle .right {
        padding-top: 0;
        float: none;
        margin-right: 0;
        font-size: 0.9rem;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
    }

    .thintitle .right a {
        color: var(--text-main) !important;
        text-decoration: none;
        transition: color 0.2s;
    }
    .thintitle .right a:hover {
        color: var(--primary-color) !important;
    }

    .count-badge {
        display: inline-block;
        background-color: #fff;
        border: 1px solid var(--border-subtle);
        border-radius: 4px;
        padding: 2px 6px;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-main);
    }

    .thintitle.light {
        font-weight: 400;
    }


.grid-container {
    display: grid;
    grid-template-columns: 66% 1fr; /* 66% for child1 and remaining for child2 */
    /*gap: 10px;*/ /* Adjust the gap as needed */
}

.child1 {
    background-color: white;
    padding: 0 0 10px;
}

    .child1 img {
        max-width: 100%; /* Ensure the image doesn't exceed the parent width */
        height: auto; /* Maintain aspect ratio */
    }

    .child1 .thetitle {
        font-weight: 600;
    }

.child2 {
    background-color: #eee;
    padding: 1rem;
    margin-bottom: 10px;
}

    .child2 button {
        color: #3399ff;
        border: 0;
        padding: 16px;
    }

    .child2 i {
        color: #3399ff;
        border: 3px solid #3399ff;
        padding: 8px;
    }


/* Media query for screens below 640px */
@media (max-width: 640px) {
    .grid-container {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .child1 {
        padding: 0;
    }
}





/* Do We Need? */
table {
    border-spacing: 0;
    border-collapse: collapse;
}

a, a:hover {
    text-decoration: none;
    color: inherit;
}

img {
    display: block !important;
}

table td {
    border-collapse: collapse;
}



/* copyright */
/* CSS Styles */
.containercopyright {
    display: flex;
    width: 100%;
    margin: 0 auto;
    background: white;
    flex-direction: row;
}

.columncr {
    flex: 1;
    text-align: center;
    padding: 20px;
}




/* Copyright section */
.copyright-text {
    font-size: 15px;
    font-weight: normal;
    color: #4a494a;
    line-height: 32px;
}

.registration-text {
    font-size: 12px;
    font-weight: bold;
    color: #4a494a;
    line-height: 32px;
    text-transform: uppercase;
}



/* FOOTER */
/* CSS Styles */
.footer-container {
    width: 100%;
    background-color: #383838;
    color: #fff;
    padding: 40px 0;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: row;
}

.footer-column {
    flex: 1;
    max-width: 48%;
    padding: 3rem;
}

.footer-heading {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-text {
    font-size: 14px;
    line-height: 24px;
}

.footer-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #3399ff;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
}

.footer-social-links {
    margin-top: 25px;
}

    .footer-social-links a {
        display: inline-block;
        margin-right: 10px;
    }



/* Bio-degradable cards section */
/* CSS Styles */
.date-container {
    width: 100%;
    background-color: #fff;
    padding: 0;
    padding-top: 17px;
}

.date-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: row;
}

.date-column {
    flex: 1;
    max-width: 32%;
    text-align: center;
}

    .date-column.images {
        padding-left: 27px;
    }

.date-text {
    font-size: 14px;
    font-weight: normal;
    color: #1b1c1b;
    line-height: 30px;
    white-space: nowrap;
}

.date-icons {
    display: flex;
    justify-content: center;
}

    .date-icons a {
        display: inline-block;
        margin-right: 10px;
    }




/* background colours */
.b1 {
    background-color: #3399ff;
    color: white;
}

.b2 {
    background-color: #2389ef;
}

.b3 {
    background-color: #1379df;
}

.o1 {
    background-color: #da6110;
}

.o2 {
    background-color: #ca5100;
}

.k2 {
    background-color: #151515;
}

.k1 {
    background-color: #000;
}

.w1 {
    background-color: #fff;
    color: #151515;
}

.w2 {
    background-color: #eee;
    color: #151515;
}

.w3 {
    background-color: #ddd;
    color: #151515;
}

.r1 {
    background-color: #ff2323;
}

.g1 {
    background-color: #00864c;
}

.y1 {
    background-color: #808080;
}

/* pastel */
.b1p {
    background-color: hsl(210, 90%, 90%);
}

.p1p {
    background-color: hsl(330, 95%, 95%);
}

.g1p {
    background-color: #AEC3AE;
}




/* scrollbars */

/* For WebKit-based browsers (e.g., Chrome, Safari) */
::-webkit-scrollbar {
    width: 10px; /* Set the width of the scrollbar */
    background-color: white; /* Set the background color of the scrollbar track */
    border-radius: 5px; /* Set the radius to round the scrollbar ends */
}

::-webkit-scrollbar-thumb {
    background-color: #e3e3e3; /* Set the color of the scrollbar thumb */
    border-radius: 5px; /* Set the radius to round the scrollbar thumb ends */
}

/* For Firefox */
/* You may need to use !important to override the default styles in Firefox */
/* If this doesn't work, you can try using ::-moz-scrollbar and ::-moz-scrollbar-thumb instead */
body {
    scrollbar-color: #e3e3e3 white; /* Set the color of the scrollbar thumb and track */
    scrollbar-width: thin; /* Set the width of the scrollbar */
}

/* For Microsoft Edge and Internet Explorer */
/* You may need to use !important to override the default styles in Edge and IE */
/* If this doesn't work, you can try using ::-ms-scrollbar and ::-ms-scrollbar-thumb instead */
body {
    -ms-overflow-style: none; /* Hide the default scrollbar */
    scrollbar-width: thin; /* Set the width of the scrollbar */
}

    /* Hide scrollbar when not scrolling (optional) */
    body::-webkit-scrollbar-thumb:hover {
        background-color: #555;
    }

.nopTopicsWrapper .centereddivcenter {
    padding: 3rem;
}

.nopTopicsWrapper a {
    color: #151515;
    font-weight: 600;
}

.nopTopicsWrapper .rixButton {
    color: #fff;
}

.link-list {
    padding: 2rem 0 2rem 0;
}

.one-line-link a {
    color: #151515;
    font-weight: 600;
    font-size: 1.3rem;
}

.section-divider {
    width: 80%;
    margin: auto; /* centers the HR */
    border: 0;
    height: 2px;
    background-color: #aaa; /* You can change this color */
    opacity: 0.5; /* Makes it lighter */
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.add3rem {
    margin-top: 3rem;
}

.add2rem {
    margin-top: 2rem;
}

.add1rem {
    margin-top: 1rem;
}

.add3rembottom {
    margin-bottom: 3rem;
}

.add2rembottom {
    margin-bottom: 2rem;
}

.add1rembottom {
    margin-bottom: 1rem;
}


/* ################################## REQUESTS */

.request-accordion-top {
    display: flex; /* Use flexbox */
    flex-direction: row; /* Lay out children in a row */
    justify-content: space-between; /* Space between children */
    align-items: center; /* Center vertically */
    padding: 1.3rem;
    border-bottom: 1px solid white;
}

    .request-accordion-top > div {
        /* Optional: Add some margin or padding for spacing between child divs */
        margin-right: 10px; /* Adjust as needed */
    }

.requests-title {
    border-bottom: 1px solid white;
    padding: 0.6rem;
}

.request-accordion-hidden {
    padding: 1.2rem;
}

.responsiveimage {
    width: 100%;
}

/* Card history */
.cardhistory-searchfor {
    background-color: #151515;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: left;
    padding-left: 7.5%;
}

    .cardhistory-searchfor input {
        width: 120px;
    }

    .cardhistory-searchfor span,
    .cardhistory-searchfor input,
    .cardhistory-searchfor button {
        margin: 0 5px;
    }

.clear-filter {
    color: white;
    font-weight: 700;
    background-color: transparent; /* Make the background transparent */
    cursor: pointer; /* Show pointer cursor on hover */
    padding: 5px 10px; /* Adjust padding as needed */
    display: inline-block;
}

    .clear-filter:hover {
        color: #3399ff;
    }

.cardhistory-paging {
    background-color: #151515;
    min-height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 32px;
}

.cardhistory-previous {
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.cardhistory-next {
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.showing-paging {
    color: white;
}

#paging-buttons {
    display: flex;
    gap: 10px; /* Adjust the gap between buttons as needed */
}

.seek-container {
    padding-left: 56px;
}

.cardhistory-next.disabled,
.cardhistory-previous.disabled {
    opacity: 0.5; /* Adjust the opacity to visually indicate the disabled state */
    cursor: not-allowed; /* Change cursor to indicate not-allowed */
    /* Add any other styles to visually indicate the disabled state */
}

.sub-toolbar {
    display: flex;
    /* justify-content: space-between; */
    background-color: #f2f2f2;
    padding: 10px;
}

.selectable-button {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 5px;
    background-color: #e0e0e0;
    text-align: center;
    user-select: none;
    margin-right: 1rem;
    font-size: 0.8rem;
}

    .selectable-button:hover {
        background-color: #d4d4d4;
    }

    .selectable-button.active {
        background-color: #3399ff;
        color: #fff;
        font-size: 0.8rem;
    }

.right-aligned-message {
    margin-left: auto;
    padding-right: 1rem;
    white-space: nowrap;
}

.price-break-layout {
    background-color: #ddd;
    line-height: 0.8rem;
    padding: 1rem;
    margin-bottom: 1.6rem;
}

.alltags {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: space-around;
    height: 100%;
}

    .alltags a {
        flex: 0 0 calc(33.33% - 20px);
        margin: 10px;
        white-space: nowrap;
        font-size: large;
        font-weight: 600;
        color: black;
        flex-grow: 1;
    }

.thintitle h1 {
    display: inline-block;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0; /* Resetting margin */
    padding: 0; /* Resetting padding */
    padding-top: 7px;
}

.thintitle h2 {
    display: inline-block;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0; /* Resetting margin */
    padding: 0; /* Resetting padding */
    padding-top: 7px;
}

/* Modern Footer Styles */
.modern-footer {
    background-color: #1a1a1a;
    color: #e5e7eb;
    font-family: 'Inter', sans-serif;
    padding-top: 60px;
    margin-top: 60px;
}

.modern-footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.modern-footer a:hover {
    color: #ffffff;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.footer-col-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.richah-logo {
    max-width: 160px;
    margin: 16px 0;
    display: block;
}

.footer-subtext {
    font-size: 0.8rem;
    color: #6b7280;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-social-icons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.footer-social-icons img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social-icons a:hover img {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-copyright {
    background-color: #111111;
    padding: 20px 24px;
    font-size: 0.85rem;
    color: #9ca3af;
}

.copyright-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 768px) {
    .copyright-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

.copyright-center {
    text-align: center;
}

.ricreate-info-link {
    color: #9ca3af;
    text-decoration: none;
    border-bottom: 1px dotted rgba(156, 163, 175, 0.5);
    transition: var(--transition-fast);
}

.ricreate-info-link:hover,
.ricreate-info-link:focus {
    color: #a78bfa;
    border-bottom-color: #a78bfa;
}
