/* Üldine stiil teatele */
.custom-success-message,
.custom-error-message {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1D3557; /* Roheline värv edukatele teadetele */
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    z-index: 9999;
    opacity: 0; /* Alguses ei ole nähtav */
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Sujuv üleminek */
}

/* Stiilige edukat teadet */
.custom-success-message {
    background-color: #1D3557; /* Green */
}

/* Stiilige veateadet */
.custom-error-message {
    background-color: #F44336; /* Red */
}

/* Kui teade on nähtav, siis muudame opakust */
.custom-success-message.show,
.custom-error-message.show {
    opacity: 1;
    visibility: visible;
}
/* Läätseda kujundus */

/* Üldine stiil vormile */
.acf-lenses-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.acf-lenses-fields input 

/* Lisame vormile stiili */
label {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Kõik väljad ühe joone peale paigutamine */
#right-eye-fields, #left-eye-fields {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Tugevuse ja kumeruse dropdown on üksteisega samal real */
#right-eye-fields select,
#left-eye-fields select {
    width: auto;  /* Muudame selle rohkem kompaktseks */
}

/* Koguse nuppude ümberkujundus */
.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 0px; /* Väheneb vahe */
}

/* Koguse nuppude ja inputi stiil */
.quantity-button {
    background-color: #1D3557;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
    width: 30px; /* Väike nupp */
    height: 37px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantity-button:hover {
    background-color: #1D3557;
}

/* Koguse inputi väli on nüüd väiksem */
.quantity-input {
    width: 40px;  /* Väiksem koguse väli */
    padding: 5px;
    font-size: 16px;
    text-align: center;
    border: 1px solid #ccc;
    height: 30px; /* Kõrgus nuppudega samal tasemel */
}

/* Parandame "Mu silmad on sama tugevusega" ridadest üksteise peale paigutamise */
#right-eye-fields,
#left-eye-fields {
    display: flex;
    justify-content: flex-start;  /* Joondab elemendid vasakule */
    gap: 10px; /* Väiksem vahe elementide vahel */
    align-items: center;  /* Väheneb vahe tugevuse ja kumeruse vahel */
}

/* Nupp "Lisa ostukorvi" stiil */
.lens-add-to-cart {
    padding: 10px 20px;
    background-color: #1D3557;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    align-self: flex-start;
    width: auto;
    margin-top: 10px;
}

.lens-add-to-cart:hover {
    background-color: #1D3557;
}

#left-eye-fields label {
    margin-right: 5px;
}

/* Radio button */

.kumerus-radio-group {
    gap: 15px;
    margin-top: 10px;
}

.kumerus-radio-label {
    display: inline-block;
    position: relative;
    cursor: pointer;
    margin-right: 10px;
}

.kumerus-radio-group p {
    margin-bottom: 10px !important;
}

.custom-radio {
    display: none; /* Peidame tavalise radio buttoni */
}

/* Nuppude kujundus */
.custom-radio + span {
    display: inline-block;
    padding: 6px 6px;
    background-color: white;
    border: 1px solid #1D3557;
    color:  #1D3557;
    font-size: 15px;
    text-align: center;
    line-height: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 54px;
    height: 37px; /* Suurem nupp */
}

/* Kui nupp on valitud */
.custom-radio:checked + span {
    background-color: #1D3557;
    border-color: #1D3557;
    color: white;
}

/* Hover efekt nuppudele */
.custom-radio + span:hover {
    background-color: #e2e2e2;
}

.custom-radio:checked + span:hover {
    background-color: #1D3557;
}

/* Fookuse efekt */
.custom-radio:focus + span {
    outline: 2px solid #1D3557;
    outline-offset: 4px;
}

/* subscription buttons */

/* Üldine konteiner - paigutus järjestikku */
.subscription-period-radio-buttons {
    display: flex;
    flex-wrap: wrap; /* Kui ruumi ei piisa, siis jookse järgmistesse ridadestesse */
    gap: 10px; /* Vahemaa nuppude vahel */
}

/* Labeli stiil - väiksem ja kompaktsem */
.subscription-period-label {
    display: flex;
    align-items: center;
    font-size: 14px; /* Väiksem font */
    cursor: pointer;
}

/* Peidetud radio nupp */
.subscription-period-radio {
    display: none;
}

/* Nuppude stiil - väiksemad nuppud */
.subscription-period-button {
    display: inline-block;
    padding: 5px 10px; /* Väiksem padding */
    background-color: white;
    color: #1D3557;
    border: none;
    border: solid 1px #1D3557;
    text-align: center;
    font-size: 15px; /* Väiksem font */
    transition: background-color 0.3s ease;
}

/* Kui radio on valitud, muutub nupp */
.subscription-period-radio:checked + .subscription-period-button {
    background-color: #1D3557;
    color: #fff;
}

/* Fookuse ja valiku puhul aktiivne nupp */
.subscription-period-radio:focus + .subscription-period-button,
.subscription-period-radio:checked + .subscription-period-button {
    outline: none;
    box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.1);
}

.delivery-time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 14px;
    color: #333;
}

.delivery-time .delivery-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.subscription-discount-note {
    margin-top: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #007c64;
    text-align: left;
    line-height: 1.4;
}

.lens-add-to-cart + .subscription-discount-note {
    display: block;
}

.custom-lens-meta {
  margin-top: 1em;
  font-size: 0.95em;
}
.custom-lens-meta ul {
  margin: 0 0 1em 1em;
  padding-left: 1em;
  list-style: disc;
}
.custom-lens-meta strong {
  display: block;
  margin-top: 1em;
}
