/* General Styles for Coachview Bookings Widget */

/* Coachview Trainers Image */
.hd-event-trainers img {
    width: 47px !important;
    height: 47px !important;
    border-radius: 50%;
    box-shadow: 0 0 0 0 #C2AB69 !important;
    background-color: transparent;
    margin-left: 0px !important;
    max-width: none;
}

/* Button Styles for Events */
button.hd-event-button {
    font-size: 14px !important;
    font-family: 'Lasiver' !important;
    text-transform: none;
    border-radius: 5px !important;
}

/* Table Headers Styling */
table th {
    font-family: 'Lasiver' !important;
    font-weight: 400 !important;
}

/* Table Header for Overview */
table.hd-events-overview thead th {
    padding: 15px 15px 15px 15px !important;
}

/* Table Cells for Overview */
.hd-events-overview td {
    padding: 7px 15px !important;
    font-size: 15px !important;
    background-color: #F6F4F1 !important;
	vertical-align:middle;
}

.hd-events-overview th {
    text-align: left !important;
    background-color: #c2ab69;
    color: #fff;
}

td.hd-event-trainers {
    line-height: 0 !important;
}

/* Table Border Styling */
table td, table th {
    border: 0 solid #AAAAAA !important;
    border-top: 1px solid #AAAAAA !important;
}

.hd-events-overview-popup-modal tr:hover>th {
    background-color: #c2ab69 !important;
}

/* Alignment of Event Buttons */
td.hd-event-buttons {
    text-align: end !important;
}

/* Popup Close Button */
.hd-events-overview-popup-close {
    top: 2px !important;
    right: 2px !important;
}

/* Modal (background) */
.hd-events-overview-popup-modal {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1000; /* Ensure it appears above other elements */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    overflow: auto; /* Allow scrolling if content overflows */
}

/* Modal Content */
.hd-events-overview-popup-modal-content {
    position: absolute;
    top: 50%; /* Position it at 50% from the top of the viewport */
    left: 50%; /* Position it at 50% from the left of the viewport */
    transform: translate(-50%, -50%); /* Adjust the position to truly center the modal */
    background-color: white;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 10px 10px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.hd-events-overview-popup-close {
    color: white;
    background-color: #C2AB69;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    font-weight: lighter;
    height: 30px;
    width: 30px;
    line-height: 27px;
    text-align: center;
    border-radius: 15px;
    cursor: pointer;
}

/* Style for Pop-up Link */
.hd-events-overview a.hd-events-overview-popup {
    color: #C2AB69;
    text-decoration: underline;
}

.hd-events-overview-popup {
    text-decoration: none;
}

/* Responsive Styling - Desktop (min-width: 600px) */
@media only screen and (min-width: 600px) {

    /* Desktop Grid Layout for Events */
    .hd-event-item {
        display: grid;
        grid-template-columns: 10% 20% 16% 16% 12% 12% 12%; /* Original Grid */
        margin-bottom: 20px;
        padding: 10px;
        border-radius: 5px !important;
    }

    .hd-event-name {
        grid-column-start: 2;
        grid-row-start: 1;
        font-size: 15px !important;
        font-weight: bold;
        color: #333;
    }

    .hd-event-trainer {
        grid-column-start: 3;
        grid-row-start: 1;
        font-size: 15px !important;
        color: #555;
    }

    .hd-event-location {
        grid-column-start: 4;
        grid-row-start: 1;
        font-size: 15px !important;
    }

    .hd-event-date {
        grid-column-start: 1;
        grid-row-start: 1;
        font-size: 15px !important;
    }

    .hd-event-reserve-title,
    .hd-event-reserve-content {
        font-size: 15px !important;
    }

    .hd-event-form {
        grid-column-start: 6;
        grid-row-start: 1;
        font-size: 15px !important;
        color: #555;
    }

    .hd-event-last-minute {
        grid-column-start: 7;
        grid-row-start: 1;
        font-size: 15px !important;
        color: #d9534f; /* Highlighted with a red shade */
    }

    .hd-event-button {
        padding: 5px 10px;
        margin-right: 4px;
        font-size: 12px !important;
        color: #fff;
        border-radius: 5px !important;
        border: none !important;
        text-transform:none !important;
        transition: background 0.3s ease; /* Smooth transition for hover effect */
    }

    .hd-event-button {
        background: #000 !important;
    }

    .hd-event-button:hover {
        background: #c2ab69 !important; /* Hover effect: change background color */
    }
}

/* Responsive Styling - Mobile (max-width: 599px) */
@media only screen and (max-width: 599px) {

    /* Mobile Grid Layout for Events */
    .hd-events-overview-popup-modal-content tr {
        display: grid;
        grid-template-columns: 25% 25% 20% 30% !important; /* Adjusted grid for mobile */
        margin-bottom: 0px !important;
        padding: 0px;
    }

    .hd-events-overview tr {
        display: grid;
        grid-template-columns: 16% 16% 16% 21% 31%; /* Mobile grid structure */
        margin-bottom: 0px;
    }

    .hd-event-button {
        padding: 3px 5px;
        margin-right: 4px;
        color: #fff;
		background-color:#000 !important;
    }
	
	button.hd-event-button {
	font-size: 12px !important;
	}
	
    table.hd-events-overview {
        max-width: 100%;
        margin-top: 50px;
        margin-left: -9px;
    }

    .hd-event-trainers img {
        width: 30px !important;
        height: 30px !important;
    }

    .hd-events-overview td {
        padding: 3px !important;
    }
	table.hd-events-overview thead th {
		padding: 5px 5px 5px 5px !important;}
	
	.hd-events-overview td {
    font-size: 12px !important;
    background-color: #F6F4F1 !important;
}
.hd-events-overview th {
	font-size: 12px !important;}
	
}
