/* ==================================
   GPC Compliance Unified Stylesheet
   ================================== */

/* ✅ GPC Banner styling */
.gpc-banner-wrapper {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 15px 0;
    font-weight: bold;
    text-align: center;
    z-index: 1100;
}

/* ✅ Cookie Consent Popup */
.cookieconsent {
    z-index: 1200;  /* Increase the z-index to ensure it's above the 'Back to Top' button */
}

/* ✅ Hide Active Cookie Consent UI when GPC is active */
html[data-gpc-enabled="true"] a.acc-button-toggle,
html[data-gpc-enabled="true"] .acc-popup {
    display: none !important;
}

/* ==================================
   Lazy YouTube Styles
   ================================== */

/* ✅ Lazy YouTube container: maintains aspect ratio, covers background */
.youtube-lazy {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    pointer-events: auto;
}

/* ✅ Make iframe or placeholder fill container */
.youtube-lazy iframe,
.youtube-lazy .play-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ✅ Play button: perfectly centered with absolute positioning */
.youtube-lazy .play-button-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    background: url("/packages/gpc_compliance/images/YouTube.png") no-repeat center center;
    background-size: contain;
    z-index: 2;
    pointer-events: none;
    display: none; /* ✅ prevent flash, JS shows it only when needed */
}

/* ✅ Show the play button when cookies are accepted */
.youtube-lazy .play-button-img.visible {
    display: block !important; /* Override 'display: none' to show the play button */
}

/* ✅ Remove any pseudo-element overlap or theme interference */
.youtube-lazy::before,
.youtube-lazy::after {
    content: none !important;
    background: none !important;
}

div#gpc-cookie-banner {
    width: 100%;
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 40px;
    background: #000;
    color: #fff;
    clear: both;
    box-sizing: border-box;
    z-index: 9999999;
    border: 1px solid #000;
    box-shadow: 0 -1px 10px 0 #acabab4d;
}
div#gpc-banner-close {
    display: inline-block;
    width: 25px;
    height: 25px;
    position: absolute;
    top: 0;
    right: 10px;
    background: rgba(0,0,0,0.5);
    overflow: hidden;
    margin-top: -25px;
    border-radius: 5px;
}
div#gpc-banner-close:hover{
    cursor: pointer;
}

.gpc-banner-title {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    margin: 0;
    overflow-wrap: break-word;
}
.gpc-banner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
}
.gpc-banner-message {
    color: #fff;
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    margin: 0;
    word-break: break-word;
}
.cky-notice-btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
}
.gpc-banner-btn {
    font-size: 14px;
    font-family: inherit;
    line-height: 24px;
    padding: 8px 27px;
    font-weight: 500;
    margin: 0 8px 0 0;
    border-radius: 2px;
    white-space: nowrap;
    cursor: pointer;
    text-align: center;
    text-transform: none;
    min-height: 0;
    overflow-wrap: break-word;
    text-shadow: none;
    box-shadow: none;
}
.gpc-banner-decline.gpc-banner-btn {

    background: transparent;
    border: 2px solid #fff;
    color: #fff;

}
.gpc-banner-btn:hover {
    opacity: 0.8;
}
.gpc-banner-accept.gpc-banner-btn{
    color: #000;
    border-color: #fff;
    background-color: #fff;
}

/*
.gpc-banner-accept{}
.gpc-banner-decline{}
*/
#gpc-privacy-badge{
    position:fixed;bottom:0;left:0;right:0;z-index:9999;
}
.gpc-badge-container{
    padding: 10px 40px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    text-align: center;
}
body.gpc-enabled {
    padding-bottom: 45px !important;
}
@media screen and (max-width: 1024px){
	.gpc-banner-container{
		display:block!important;
	}
	.gpc-banner-message{margin:10px 0}
}

