/* Base wrapper styles */
.betheme-offers-wrapper {
    margin: 20px auto;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: transparent;
    width: 100%;
}

.betheme-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Container */
.custom-offers-container {
    background-color: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    border-radius: 10px;
    margin: 10px auto;
    width: 100%;
}

.betheme-offers-wrapper.page-mode .custom-offers-container {
    max-width: 95% !important;
    width: 95% !important;
}

.betheme-offers-wrapper.mega-menu-mode .custom-offers-container {
    max-width: none;
    width: auto;
}

/* Grid layout */
.offer-grid {
    display: grid;
    grid-template-columns: 1fr 4fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    margin-bottom: 15px;
}

.offer-grid.visible {
    opacity: 1;
}

/* Columns */
.custom-offers-column {
    text-align: center;
    color: #222;
}

.custom-offers-column:nth-child(2) {
    text-align: justify;
}

.custom-offers-column:nth-child(2) p {
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.custom-offers-column img {
    max-width: 120px;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

.custom-offers-column p {
    margin: 5px 0;
    font-size: 14px;
}

/* Prices */
.price-start {
    color: #ff0000;
    text-decoration: line-through;
    font-size: 14px;
}

.custom-offers-column .price-final {
    color: #0000ff;
    font-weight: bold;
    font-size: 25px;
}

/* Button */
.button-wrapper {
    margin-top: 10px;
    text-align: right;
}

.custom-offers-button {
    display: inline-block;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    transition: background 0.3s;
    font-weight: 600;
}

.custom-offers-button:hover {
    background: #218838;
    color: white;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .betheme-offers-wrapper {
        background-color: #222;
    }
    .custom-offers-container {
        background-color: #333;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
        color: #eee;
    }
    .custom-offers-column { color: #eee; }
    .price-start { color: #ff6666; }
    .price-final { color: #66ccff; }
    .custom-offers-button { background: #2ecc71; }
    .custom-offers-button:hover { background: #27ae60; }
    .betheme-loading { color: #ccc; }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
    .betheme-offers-wrapper.page-mode .custom-offers-container {
        max-width: 95%;
        padding: 15px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .betheme-offers-wrapper { margin: 10px 0; }
    .betheme-offers-wrapper.page-mode .custom-offers-container {
        max-width: 100%;
        margin: 10px 10px;
        width: calc(100% - 20px);
        padding: 15px;
    }
    .betheme-offers-wrapper.mega-menu-mode .custom-offers-container {
        max-width: 100%;
        margin: 5px;
        padding: 10px;
    }
    .offer-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    .custom-offers-column { text-align: center; }
    .custom-offers-column:nth-child(2) { text-align: justify; }
    .custom-offers-column:nth-child(2) p { font-size: 14px; }
    .custom-offers-column img { max-width: 100px; }
    .custom-offers-column .price-final { font-size: 20px; }
    .button-wrapper { text-align: center; }
}

@media (max-width: 480px) {
    .betheme-offers-wrapper.page-mode .custom-offers-container { border-radius: 5px; }
    .custom-offers-column:nth-child(2) p { font-size: 13px; }
}

/* ========================================
   JetMenu Mega Menu Fix
   Το overflow:visible ΔΕΝ μπαινει εδω —
   αυτο ηταν η αιτια του λευκου κατω απο το footer.
   Αφαιρουμε μονο το max-height περιορισμο
   για να χωραει το περιεχομενο.
   ======================================== */
.jet-menu-item:has(.betheme-offers-wrapper) .jet-sub-mega-menu,
.jet-menu-item:has(.betheme-offers-wrapper) .jet-menu-item-wrapper {
    max-height: none !important;
    height: auto !important;
    /* overflow: visible  ← ΑΦΑΙΡΕΘΗΚΕ — αυτο εφτιαχνε το λευκο */
}