.ring-calc-container {
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #ffffff;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ring-calc-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.25em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.ring-calc-container .calc-row {
    margin-bottom: 15px;
}

.ring-calc-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.ring-calc-container select {
    width: 100%;
    padding: 0 30px 0 12px;
    /* Use line-height for vertical centering in fixed height input */
    /* Add padding-right to prevent text overlapping arrow */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    /* Slightly smaller text */
    height: 48px;
    /* Taller input */
    line-height: 46px;
    /* Match height (minus border) for vertical centering */
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.ring-calc-container .calc-result {
    margin-top: 25px;
    padding: 15px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 1.1em;
    color: #555;
    text-align: right;
}

.ring-calc-container .calc-result span {
    color: #d9534f;
    font-weight: bold;
    font-size: 1.4em;
    margin-left: 10px;
}

/* Spinner or loading state */
.ring-calc-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Order Button */
/* Order Button Wrapper */
.rc-btn-wrapper {
    text-align: right;
    margin-top: 10px;
    clear: both;
}

/* Order Button */
.rc-order-button {
    display: inline-block;
    width: auto;
    padding: 10px 25px;
    background-color: #06c755;
    /* LINE Green */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rc-order-button:hover {
    background-color: #05b34d;
    color: #fff;
}

.rc-order-button:hover {
    background-color: #555;
    color: #fff;
}

/* Modal */
.rc-modal {
    display: none !important;
    /* Ensure hidden by default despite theme rules */
    opacity: 0;
    /* Add opacity for transition check */
    visibility: hidden;
    /* Ensure not clickable when hidden by some other means */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.rc-modal.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.rc-modal-content {
    background-color: #fefefe;
    padding: 10px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rc-close {
    color: #aaa;
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.rc-close:hover,
.rc-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Disclaimer Text */
.rc-disclaimer {
    margin-top: 3px;
    font-size: 15px;
    line-height: 1.4;
    color: #f39c12;
    /* Orange to alert user */
    font-weight: bold;
    text-align: right;
}