* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f4f8;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    font-size: 16px;
    overflow-x: hidden; /* För säkerhets skull, blockera sidrullning här också */
}

.examples-container {
    max-width: 100%; /* Se till att containern inte överskrider skärmens bredd */
    margin: 0 auto;
    padding: 2rem;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* Extra säkerhet för att förhindra sidrullning */
}

.examples-title {
    font-size: 2.5rem;
    color: #339;
    text-align: center;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
}

.examples-description {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    overflow-x: hidden; /* Extra säkerhet för att förhindra sidrullning */
}

.examples-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap; /* Säkerställ att kolumner inte orsakar horisontell rullning */
}

.examples-column {
    flex: 1;
    min-width: 0; /* Förhindra att innehåll orsakar horisontell rullning */
}

.examples-column h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.theme-example {
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.theme-example h3 {
    margin-bottom: 1rem;
}

.vipcart-button,
.vipcart-product {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    color: #fff;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.vipcart-button:hover,
.vipcart-product:hover {
    background-color: #0056b3;
}

.copy-code-btn {
    display: block;
    width: 30%;
    padding: 0.6rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #fff;
    background-color: #ababab;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.4);
}

.copy-code-btn:hover {
    background-color: #218838;
}

/* Mobiljusteringar */
@media (max-width: 768px) {
    .examples-grid {
        flex-direction: column; /* Stapla kolumner på varandra på små skärmar */
        gap: 1rem;
        overflow-x: hidden; /* Säkerställ att inget i grid orsakar sidrullning */
    }

    .examples-container,
    .examples-description,
    .theme-example {
        padding: 1rem; /* Mindre padding för mobil */
    }

    .examples-title {
        font-size: 2rem;
    }

    .copy-code-btn {
        width: 100%; /* Låt knappen utnyttja hela bredden på små skärmar */
        padding: 0.6rem;
        margin-top: 1rem;
        font-size: 0.9rem;
    }
}

.fcs-tooltip-trigger {
    position: relative;
    cursor: help;
}

.fcs-tooltip-question {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #b082ff;
    color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
    font-size: 14px;
    margin-left: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.fcs-tooltip-content {
    visibility: hidden;
    width: 200px;
    background-color: #fff;
    color: #333;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.4;
}

.fcs-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.fcs-tooltip-trigger:hover .fcs-tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.page-wrapper {
    min-height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: auto;
    overflow-x: hidden; /* Blockera sidrullning även i denna container */
}
