#coolinarco-ai-assistant-2 {}

.lemon-limes-bannr.site-top {
    z-index: 999999;
}

.coolinarco-ai-recipe-generator-2-widget {
    width: 100%;
}

@media (max-width: 768px) {
    .coolinarco-ai-recipe-generator-2-widget {
        max-width: 600px;
    }
}

.coolinarco-ai-heading {
    margin: 0 auto;
    margin-bottom: 40px;
}

.coolinarco-ai-heading .widget-title {
    font-weight: 700;
    font-size: 40px;
    line-height: 100%;
    text-align: center;
    color: #65332D;
}

.coolinarco-ai-heading .widget-subtitle {
    font-weight: 400;
    font-size: 24px;
    line-height: 160%;
    text-align: center;
    color: #000000;
    max-width: 760px;
}

.most-common-ingredients {
    margin: 0 auto;
    margin-bottom: 40px;
}

.most-common-ingredients .component-title {
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    text-align: center;
    color: #000000;
    margin-bottom: 18px;
}

.most-common-ingredients ul {
    text-align: center;
    display: inline-block;
    padding: 0;
    margin: 0;
    list-style: none;
}

.most-common-ingredients li {
    margin: 5px;
    display: inline-block;
    align-items: center;
    background-color: #eaf6ea;
    border-radius: 12px;
    padding: 8px 14px 7px;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.most-common-ingredients li:hover {
    background-color: #d9f1da;
    transform: translateY(-2px);
}

.most-common-ingredients li span {
    font-size: 20px;
}

.ingredient-inputs {
    margin-bottom: 40px;
}

.ingredient-inputs .ingredient-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ingredient-inputs .ingredient-row .add-icon-button {
    width: 46px;
    height: 46px;
    border-radius: 100px;
    background-color: #1AAE2B;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 33px;
    cursor: pointer;
    margin: 0;
    margin-left: -59px;
    border: none;
}

.ingredient-inputs .ingredient-row .add-new-ingredient-text {
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    color: #222;
    cursor: pointer;
    display: none;
}

.ingredient-inputs .ingredient-row input {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    color: #222;
    background-color: #eeeeee;
}

.ingredient-inputs .ingredient-row .ingredient-name-input,
.ingredient-inputs .ingredient-row .add-new-ingredient-name-input {
    width: 450px;
    height: 58px;
}

.ingredient-inputs .ingredient-row .ingredient-quantity-input,
.ingredient-inputs .ingredient-row .add-new-ingredient-quantity-input,
.ingredient-inputs .ingredient-row .add-new-ingredient-unit-input {
    width: 110px;
    height: 58px;
}

.ingredient-inputs .ingredient-row .ingredient-quantity-input {
    width: 110px;
    height: 58px;
}

.ingredient-inputs .ingredient-row .ingredient-unit-select-wrapper,
.ingredient-inputs .ingredient-row .add-new-ingredient-unit-input {
    position: relative;
    width: 160px;
    height: 58px;
    margin: 0;
}

.ingredient-inputs .ingredient-row .ingredient-unit-select-wrapper .select2 .select2-selection--single {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 40px 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: 160px;
    height: 58px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    color: #222;
    background-color: #eeeeee;
}

.ingredient-inputs .ingredient-row .ingredient-unit-select-wrapper .select2 .select2-selection__arrow {
    display: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
    padding: 1px 0 0 0;
}

/* Arrow */
.ingredient-inputs .ingredient-row .ingredient-unit-select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    pointer-events: none;

    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='24' height='24' rx='12' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16.5303 9.96967C16.8232 10.2626 16.8232 10.7374 16.5303 11.0303L12.5303 15.0303C12.2374 15.3232 11.7626 15.3232 11.4697 15.0303L7.46967 11.0303C7.17678 10.7374 7.17678 10.2626 7.46967 9.96967C7.76256 9.67678 8.23744 9.67678 8.53033 9.96967L12 13.4393L15.4697 9.96967C15.7626 9.67678 16.2374 9.67678 16.5303 9.96967Z' fill='%23848484'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

.select2-container--open .select2-dropdown {
    width: 236px !important;
    height: 228px;
    background-color: #ffffff;
    margin-top: 8px !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #aaaaaa;
    overflow: hidden;
}

.select2-container--default .select2-results__option--selected {
    background-color: #eee;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #69727d;
}

.select2-container--default .select2-results>.select2-results__options {
    max-height: 228px;
}

.ingredient-inputs .ingredient-row input:focus {
    outline: none;
    border-color: #65332D;
}

.ingredient-inputs .ingredient-row input::placeholder {
    color: #848484;
    font-weight: 400;
    font-size: 22px;
    line-height: 100%;
}

.ingredient-inputs .ingredient-row:hover .remove-row-button {
    opacity: 1;
    pointer-events: auto;
}

.ingredient-inputs .ingredient-row .remove-row-button:hover {
    background-color: #1AAE2B;
    color: #ffffff;
}

.ingredient-inputs .ingredient-row .remove-row-button {
    width: 46px;
    height: 46px;
    border-radius: 100px;
    background-color: #eeeeee;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #cccccc;
    font-size: 20px;
    cursor: pointer;
    border: none;
    margin-left: -59px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    padding-top: 2px;
}

.generate-recipe-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 244px;
    height: 58px;
    background-color: #1AAE2B;
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0 auto;
    margin-top: 40px;
}

.ingredient-inputs .mask-row {
    margin-top: 30px;
}

.ingredient-inputs .mask-row .add-new-ingredient-name-input,
.ingredient-inputs .mask-row .add-new-ingredient-quantity-input,
.ingredient-inputs .mask-row .add-new-ingredient-unit-input {
    opacity: 0.6;
}

/* Dropdown styles */
.ui-autocomplete {
    z-index: 9999 !important;
    width: 300px !important;
    height: 228px;
    background-color: #ffffff;
    margin-top: 8px !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #aaaaaa;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 0;
    font-family: inherit;
}

/* Pojedinačne opcije */
.ui-menu-item-wrapper {
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
}

/* Hover/aktivna opcija */
.ui-state-active {
    background-color: #69727d !important;
    color: #ffffff !important;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .most-common-ingredients .component-title {
        font-size: 28px;
    }

    .ingredient-inputs {
        max-width: 500px;
    }

    .ingredient-inputs .ingredient-row {
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: flex-start;
        margin-bottom: 30px;
    }

    .ingredient-inputs .ingredient-row .ingredient-name-input, .ingredient-inputs .ingredient-row .add-new-ingredient-name-input {
        width: 100%;
        max-width: unset;
    }

    .ingredient-inputs .ingredient-row .ingredient-quantity-input {
        width: 35%;
        max-width: unset;
    }

    .ingredient-inputs .ingredient-row .ingredient-unit-select-wrapper,
    .ingredient-inputs .ingredient-row .add-new-ingredient-unit-input,
    .ingredient-inputs .ingredient-row .ingredient-unit-select-wrapper .select2 .select2-selection--single {
        width: 250px;
        max-width: unset;
    }

    .ingredient-inputs .ingredient-row .remove-row-button {
        opacity: 1;
        order: 4;
        margin-left: 0;
        margin-top: 7px;
    }

    .ingredient-inputs .ingredient-row .add-icon-button {
        margin-left: 0;
        margin-top: 7px;
    }

    .ingredient-inputs .ingredient-row .add-new-ingredient-text {
        display: block;
        margin: 20px 0px 0px 5px;
    }

    .ingredient-inputs .mask-row input {
        display: none;
    }

}

@media (max-width: 640px) {
    .coolinarco-ai-recipe-generator-2-widget {
        max-width: 100%;
    }

    .ingredient-inputs {
        max-width: 400px;
    }

    .ingredient-inputs .ingredient-row .ingredient-quantity-input {
        width: 90px;
    }

    .ingredient-inputs .ingredient-row .ingredient-unit-select-wrapper,
    .ingredient-inputs .ingredient-row .add-new-ingredient-unit-input,
    .ingredient-inputs .ingredient-row .ingredient-unit-select-wrapper .select2 .select2-selection--single {
        width: 240px;
    }
}

@media (max-width: 480px) {
    .ingredient-inputs {
        max-width: 300px;
    }

    .ingredient-inputs .ingredient-row .ingredient-quantity-input {
        width: 80px;
    }

    .ingredient-inputs .ingredient-row .ingredient-unit-select-wrapper,
    .ingredient-inputs .ingredient-row .add-new-ingredient-unit-input,
    .ingredient-inputs .ingredient-row .ingredient-unit-select-wrapper .select2 .select2-selection--single {
        width: 150px;
    }
}


.coolinarco-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 60px;
}

.coolinarco-loader-overlay .loader {
    border: 10px solid #f3f3f3;
    border-top: 10px solid #2e7d32;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    animation: spin 0.8s linear infinite;
}

.coolinarco-loader-overlay .loader .ad-sponsored-label {
    font-size: 12px;
    color: #000;
    margin-top: 4px;
    width: 100%;
    text-align: left;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.coolinarco-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff0f0;
    color: #b71c1c;
    padding: 12px 20px;
    border: 1px solid #f44336;
    border-radius: 8px;
    font-size: 14px;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ensure that jQuery UI dialog is above everything */
.ui-dialog {
    z-index: 100000 !important;
}

/* Dialog styles */
.ui-dialog {
    border-radius: 8px;
    border: 1px solid #aaa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
    background-color: #ffffff;
    font-family: inherit;
    z-index: 100000 !important;
    animation: fadeInDialog 0.3s ease-out;
}

/* Header (title bar) */
.ui-dialog .ui-dialog-titlebar {
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    padding: 10px 14px;
    font-weight: bold;
    font-size: 15px;
    color: #333;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Close button */
.ui-dialog .ui-dialog-titlebar-close {
    background: transparent;
    border: none;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Message content */
.ui-dialog .ui-dialog-content {
    padding: 16px 20px;
    font-size: 14px;
    color: #333;
}

/* Footer buttons */
.ui-dialog .ui-dialog-buttonpane {
    padding: 10px 14px;
    text-align: right;
    background: #f8f8f8;
    border-top: 1px solid #ddd;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.ui-dialog .ui-dialog-buttonpane button {
    background-color: #69727d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.ui-dialog .ui-dialog-buttonpane button:hover {
    background-color: #5b636b;
}

/* Overlay background */
.ui-widget-overlay {
    background: #eee !important;
    opacity: 0.55 !important;
    animation: fadeInOverlay 0.2s ease-in !important;
}

/* Fade animations */
@keyframes fadeInDialog {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.55;
    }
}

.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-direction: column;
}

.recaptcha-wrapper p {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.recaptcha-wrapper .g-recaptcha {
    max-width: 100%;
    width: 304px;
    height: 78px;
}