
/* =========================
 *  DATETIMEPICKER STÍLUSOK
 * ========================= */

.zili-datetimepicker {
    z-index: 999999 !important;
    font-size: 13px;
    max-width: 280px !important;
    width: 280px !important;
}

.zili-datetimepicker .ui-datepicker-buttonpane button {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.zili-datetimepicker .ui-datepicker-buttonpane .ui-datepicker-current {
    display: none !important;
}

.zili-datetimepicker .ui-state-active,
.zili-datetimepicker .ui-widget-content .ui-state-active,
.zili-datetimepicker .ui-widget-header .ui-state-active,
.zili-datetimepicker a.ui-button:active,
.zili-datetimepicker .ui-button:active,
.zili-datetimepicker .ui-button.ui-state-active:hover {
    background: #000 !important;
    border-color: #000 !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

.zili-datetimepicker .ui-state-hover,
.zili-datetimepicker .ui-widget-content .ui-state-hover,
.zili-datetimepicker .ui-widget-header .ui-state-hover {
    color: red !important;
    font-weight: bold !important;
}


/* TIME SLIDER GOMBOK (handle) */
.zili-datetimepicker .ui-slider-horizontal .ui-slider-handle {
    background: #000 !important;   /* gomb színe */
    width: 16px !important;
    height: 16px !important;
}

/* =========================
 *  DROPDOWN CHECKBOX LISTA
 * ========================= */

.dropdown-container {
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

.dropdown-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dropdown-header {
    padding: 8px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    user-select: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 32px;
}

.dropdown-header-text {
    flex: 1;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.3em;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    background: #fff;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
}

.dropdown-list.open {
    display: block;
}

.dropdown-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
}

/* A select rejtve, de validálható */
select.hidden-select {
    opacity: 0;
    position: absolute;
    pointer-events: none;
    height: 0;
    width: 0;
}

/* PC FIX */
@media (min-width: 769px) {
    .dropdown-header {
        width: 300px;
        max-width: 300px;
        white-space: normal;
    }

    .dropdown-header-text {
        white-space: normal;
        word-break: break-word;
    }
}

/* MOBIL FIX */
@media (max-width: 768px) {

    table.widefat tr {
        display: block;
        margin-bottom: 15px;
    }

    table.widefat th,
    table.widefat td {
        display: block;
        width: auto !important;
        max-width: 100%;
    }

    table.widefat th {
        margin-bottom: 5px;
        white-space: normal;
    }

    .dropdown-header {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================
 *  SUBMIT GOMB + SPINNER
 * ========================= */

button[name="alg_wc_add_new_product"] {
    display: block !important;
    width: 60% !important;
    margin: 30px auto !important;
    text-align: center !important;
    position: relative;
    background-color: #333333;
    border-color: #333333;
    color: #fff !important;
    font-weight: 900;
    font-size: 1.41575em;
    font-family: "Source Sans Pro" !important;
}

button[name="alg_wc_add_new_product"]:hover {
    background-color: #000;
    border-color: #000;
}

@media (max-width: 768px) {
    button[name="alg_wc_add_new_product"] {
        width: 100% !important;
    }
}

.zili-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border: 2px solid #ccc;
    border-top-color: #96588a;
    border-radius: 50%;
    animation: zili-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes zili-spin {
    to { transform: rotate(360deg); }
}

.zili-spinner.hidden {
    display: none !important;
}



table.widefat th {
	font-weight: normal !important;
	
}

table.widefat label {
	font-weight: 600 !important;
	font-size: 18px !important;
}

/* =========================
 *  EVENT UPLOAD – MOBIL TÁBLÁZAT FIX
 * ========================= */

@media (max-width: 768px) {
    table.widefat tr {
        display: block;
        margin-bottom: 15px;
    }

    table.widefat th,
    table.widefat td {
        display: block;
        width: 100% !important;
    }

    table.widefat th {
        margin-bottom: 5px;
        white-space: normal; /* címkék törhetnek, nem nő túl a sor */
    }
}



/* upload image button redesign */

/* A file input gomb stílusa – osztályra átírva */
.zili-upload-btn {
  background-color: #333;
  border: 2px solid #333;
  color: #fff;              /* ← szöveg színe */
  padding: 0.7em 1.4em;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Hover – csak a háttér és border változik, a szöveg marad fehér */
.zili-upload-btn:hover {
  background-color: #000;
  border-color: #000;
  color: #fff;              /* ← EZ KELL, hogy ne változzon meg */
}

/* Hibaüzenet */
.zili-image-limit-notice {
  color: red;
  font-weight: bold;
  margin-top: 5px;
}

/* Sikeres feltöltés */
.zili-image-info {
  margin-top: 5px;
  font-weight: bold;
  color: green;
}



/* Hibaüzenet */
.zili-image-limit-notice {
  color: red;
  font-weight: bold;
  margin-top: 5px;
}

/* Fájlinfó (sikeres feltöltés) */
.zili-image-info {
  margin-top: 5px;
  font-weight: bold;
  color: green;
}


/* Középre igazítás */
#alg_wc_add_new_product_image {
  display: block;

}

#alg_wc_add_new_product_image {
  /*font-family: Arial, sans-serif; */
  /*font-size: 16px;                 */
  color: #f00;                      /* szöveg színe */
}


/*free button for zili product price*/

.free-btn {
	background: #0b9e5a;
	color: white;
	font-size: 16px;
	font-weight: bold;
	width: 40%;
	padding: 10px 10px !important;
}


#alg_wc_add_new_product_regular_price {
  width: 50% !important;
}



/* ===== MINIMÁL MOBIL FIX – footer + input + dropdown ===== */
@media (max-width: 768px) {

    /* Ne legyen vízszintes scroll */
    html, body {
        overflow-x: hidden !important;
    }

    /* Minden form elem igazodjon a mobil szélességhez */
    form, table.widefat, table.widefat th, table.widefat td {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Inputok ne lógjanak ki */
    table.widefat input,
    table.widefat select,
    table.widefat textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Dropdown mobilon ne legyen absolute */
    .dropdown-wrapper {
        position: static !important;
    }

    .dropdown-list {
        position: static !important;
        width: 100% !important;
        max-height: 300px;
        overflow-y: auto;
        display: none;
    }

    .dropdown-list.open {
        display: block !important;
    }
    

	.dropdown-list label input[type="checkbox"] {
	    width: auto !important;
	    max-width: none !important;
	    flex: 0 0 auto !important;
	}

}

.zili-huf-label {
    margin-left: 6px;
    font-weight: bold;
    color: #444;
}


#ui-datepicker-div.start-active  {
    background: #daf1e1 !important;
    
}	

#ui-datepicker-div.start-active .ui-state-hover {
    color: #00923e !important; /* zöld */
}

#ui-datepicker-div.end-active .ui-state-hover {
    color: red !important; /* red */
}


#ui-datepicker-div.end-active {
    background: #ffd6d6 !important;
}

#alg_wc_add_new_product_custom_field_1 {
    color: #00923e !important /*  zöld */
}

#alg_wc_add_new_product_custom_field_2 {
    color: red !important; /* piros zöld */
}


