/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
*/
/* General Styles */
.tegel-page, .tegel-gallery-page {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    padding: 20px;
    max-width: 480px;
    margin: auto;
    text-align: center;
}

/* Header Styling */
.tegel-header {
    background-color: #000;
    color: #fff;
    padding: 20px;
    text-transform: uppercase;
}

.tegel-header h2 {
    font-size: 20px;
    margin: 0;
}

.tegel-header p {
    font-size: 18px;
    margin: 5px 0 0;
}

.tegel-header-gallery {
    background-color: #E2E3E3;
    color: #000;
    padding: 5px;
    text-transform: uppercase;
}

/* Tile Image */
.tegel-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 15px 0;
}

/* Information Table */
.tegel-info-table {
    width: 100%;
    border-collapse: collapse;
    background: #E2E3E3;
    /* box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); */
    /* border-radius: 5px; */
    border: 1px solid #aaa
}

.tegel-info-table td {
    padding: 10px;
    border: 1px solid #aaa;
    text-align: left;
}

.tegel-info-table tr:last-child td {
    border-bottom: none;
}

/* Pricing Section */
.tegel-pricing {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0;
    text-align: left
}

.st_adviesprijs {
    text-decoration: line-through;
    text-decoration-thickness: 3px;
    text-decoration-color: red;
}

/* Palletkorting Table */
.palletkorting-table {
    width: 100%;
    background: white;
    margin-top: 15px;
    border-spacing: 0;
    border-collapse: collapse;
    /* border-radius: 5px; */
    /* overflow: hidden; */
}

.palletkorting-table td {
    padding: 10px 5px;
    border: 1px solid #aaa;
}

.palletkorting-table td:nth-child(1) {
    text-align: left;
    padding: 10px 5px 10px 10px;
}

/* Mail Button */
.mail-button {
    display: block;
    background-color: #ff6600;
    color: white;
    padding: 12px 25px;
    text-align: center;
    font-size: 16px;
    border: none;
    /* border-radius: 5px; */
    cursor: pointer;
    margin: 20px auto 20px auto;
    width: auto;
}

.mail-button:hover {
    background-color: #e55a00;
}

/* Gallery */
.gallery-container {
    position: relative;
    max-width: 100%;
    height: 500px;
    overflow: hidden;
}

.gallery-slide {
    width: 100%;
    height: 500px;
    display: none;
    object-fit: cover;
    object-position: center ;
}

.gallery-slide.active {
    display: block;
}

/* Gallery Navigation */
.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    /* border-radius: 50%; */
    z-index: 10;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

/* Email Popup */
/* Overlay to cover the whole screen */
.email-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    /* Semi-transparent black */
    z-index: 999;
    /* Behind the popup but above other content */
    display: none;
    /* Initially hidden */
}

/* Popup box */
.email-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 80%;
    max-width: 600px;
    /* border-radius: 5px; */
    z-index: 1000;
    /* Above overlay */
}

.email-popup form label {
    /* padding: 5px 10px; */
    font-size: 20px;
    margin: 0 0 10px 0 !important;
    display: block;
}

.email-popup form input {
    padding: 5px 10px;
    font-size: 20px;
    margin: 10px
}

.email-popup form button {
    padding: 5px 10px;
    font-size: 20px;
    margin: 10px;
}

/* Close Button for Email */
.email-popup .email-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: black;
}

/* Show popup */
/*.email-popup.active , .email-popup-overlay.active {
    display: block ;
}
*/
/* Success & error pop-ups */
.custom-popup {
    position: fixed;
    top: 30vh;
    left: 50vw;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 9999;
    max-width: 40vw;
    min-width: 300px;
}

.popup-success {
    background-color: #28a745;
    /* Green for success */
}

.popup-error {
    background-color: #dc3545;
    /* Red for error */
}
