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

/* Header Styling */
.tegel-header {
    background-color: #333;
    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;
}

.beschikbare , .tegel-header-gallery {
    background-color: #333;
    color: #fff;
    padding: 10px;
    /* margin: 20px 0 10px 0; */
    text-transform: uppercase;
}

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

/* Tile Image */
.header_img {
    padding: 80px 20px;
    margin: 0 0 80px 0;
    background-color: #f0f0f0
}

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

/* Information Table */
.tegel-info-table {
    width: calc(100% - 40px);
    margin: 0 0 0 20px;
    border-collapse: collapse;
    background: #f0f0f0;
    /* 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: #333;
    color: white;
    padding: 20px 50px;
    text-align: center;
    font-size: 22px;
    border: none;
    /* border-radius: 5px; */
    cursor: pointer;
    margin: 0px auto;
    text-transform: uppercase;
}

.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 ;
    top: 0;
    left: 0;
    position: absolute;
    opacity: 0;
    /* transition: opacity 0.5s ease-in-out; */
    z-index: 0;
    transition: all 0.5s allow-discrete;
    user-select: none;
}

.gallery-slide.active {
    /* display: block; */
    opacity: 1;
    z-index: 1;
}

/* Gallery Navigation */
.gallery-prev, .gallery-next {
    position: absolute;
    top: calc( 50% - 40px);
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: #fff;
    padding: 10px;
    /* border-radius: 50%; */
    z-index: 10;
    height: 80px;
    color: #333;
    display: flex;
    align-content: center;
    align-items: center;
    border: 1px solid #333;
}

.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
}

.button_wrapper {
    background-color: #f0f0f0;
    padding: 40px 0;
}

.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 */
}

/*-----------------------------*/
.color-list , .format-list {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 0;
    flex-direction: row;
    justify-content: flex-start;
}

.available-colors-section {
    width: calc(100% - 40px);
    margin: 0 auto;
}

.available-colors-section.Rectangle .color-list {
    gap: 10px 40px
}

.available-colors-section.Square .color-list {
    gap: 10px 30px
}

.list_item_available_color.active {
    outline: 2px solid #ff0707 !important
}

.available-colors-section.Rectangle .list_item_available_color {
    width: calc(50% - 20px);
}

.available-colors-section.Square .list_item_available_color {
    width: calc(33.3% - 20px);
}

.list_item_available_color {
    margin: 0 0 20px 0;
}

.list_item_available_color a {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    text-decoration: none
}

.color_box {
    width: 100%;
}

.color_box img {
    width: 100%;
    object-fit: cover;
    object-position: top center;
}

.available-colors-section.Square .color_box img {
    /* height: 60px; */
    aspect-ratio: 1;
}

.available-colors-section.Rectangle .color_box img {
    height: 60px;
}

.format-list {
    background-color: #f0f0f0
}

.format-list a {
    width: 50%;
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    flex-direction: column;
}

.format-list a .color_box {
    width: 40px;
    height: 40px;
    margin: 10px 20px 10px 20px;
    border: 1px solid #aaa
}

.format-list a {
    text-decoration: none
}

.format_box {
    width: calc(100% - 80px);
    margin: 10px 30px 10px 30px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #aaa
}

.format-list .format_box.active {
    border: 2px solid #f00
}

.down-arrow {
    height: 50px;
    color: #000;
    /* background-color: #afafaf; */
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 50px;
    color: #999;
    padding: 20px;
    margin: 0 0 40px 0
}

.down-arrow .fa.fa-chevron-down {
    display: block;
}

.down-arrow .fa.fa-chevron-up {
    display: none;
}

html.expand .down-arrow .fa.fa-chevron-down {
    display: none;
}

html.expand .down-arrow .fa.fa-chevron-up {
    display: block;
}

html:not(.expand) table.tegel-info-table tr:nth-child(n+8) {
    display: none !important;
}

table.tegel-info-table td {
    width: 50%
}
