/* Nyal Funeral Options Frontend Styles */
.nyal-funeral-ribbon-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.nyal-funeral-ribbon-color {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.nyal-funeral-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.nyal-funeral-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}

.nyal-funeral-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #7a7a7a;
}

.nyal-funeral-modal-close:hover {
    color: #111;
}


.nyal-funeral-modal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.nyal-funeral-option-selector {
    display: flex;
    justify-content: space-around;
    margin: 20px 0 50px;
}

.nyal-funeral-option-item {
    cursor: pointer;
    border: 1px solid #e1e2e7;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    width: 45%;
}

.nyal-funeral-option-item:hover {
    border-color: #2242296b;
    background: #22422912;
    box-shadow: 0 0 10px rgba(34, 66, 41, 0.3);
}

.nyal-funeral-option-item.nyal-funeral-option-active {
    border-color: #224229;
    box-shadow: 0 0 10px rgba(34, 66, 41, 0.3);
    background: #22422912;
}

.nyal-funeral-option-image {
    margin-bottom: 10px;
}

.nyal-funeral-option-image img {
    width: 320px;
    object-fit: contain;
}

.nyal-funeral-option-label {
    font-weight: bold;
    color: #333;
    padding: 20px 0;
    font-size: 1.2rem;
}

.nyal-funeral-option-selector label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nyal-funeral-option-selector input[type="radio"] {
    margin-right: 10px;
}

.nyal-funeral-sub-modal {
    margin-bottom: 20px;
}

.nyal-funeral-sub-modal .form-group {
    margin-bottom: 15px;
}

.nyal-funeral-sub-modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.nyal-funeral-sub-modal input,
.nyal-funeral-sub-modal select,
.nyal-funeral-sub-modal textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.nyal-funeral-modal-actions {
    text-align: center;
}

.nyal-funeral-modal-actions .button {
    padding: 10px 20px;
    background-color: #224229;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 60%;
    border-radius: 32px;
}

.nyal-funeral-modal-actions .button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.nyal-funeral-modal-actions .button:not(:disabled):hover {
    background-color: #224229;
}

/* Validation Error Styles */
.nyal-validation-error {
    color: #d9534f;
    font-size: 0.9em;
    margin-top: 5px;
}

.nyal-funeral-error {
    display: block;
    width: 100%;
    clear: both;
}

.required {
    color: #e42234;
    font-size: 0.9em;
}

#nyal-funeral-continue-order.loading-add-to-cart {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}
#nyal-funeral-continue-order.loading-add-to-cart::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin-order 1s linear infinite;
}

@keyframes spin-order {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Prevent scrolling when modal is open */
body.nyal-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Responsive Adjustments */
@media screen and (max-width: 600px) {
    .nyal-funeral-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }

    .nyal-funeral-option-selector {
        flex-direction: column;
        align-items: center;
    }

    .nyal-funeral-option-item {
        width: 80%;
        margin-bottom: 15px;
    }

    .nyal-funeral-option-selector label {
        margin-bottom: 10px;
    }
}

/* Add any additional frontend styling as needed */
.nyal-description-color-wrapper,
.nyal-description-color-wrapper textarea{
    width: 100%;
}
