/* Prescription Tabs */
.prescription-tabs-wrapper {
    margin-bottom: 2rem;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    padding: 20px;
    background-color: #f9f9f9;
}

.prescription-tabs {
    display: flex;
    margin: auto;
    margin-bottom: 20px;
    max-width: max-content;
    column-gap: 0.5rem;
}

@media (max-width: 768px) {
    .prescription-tabs {
        margin-top: 4rem;
    }
}

.prescription-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 400;
    position: relative;
    margin-right: 0;
    margin-left: 0 !important;
    flex-grow: 1;
}

.prescription-tab1 {
    background-color: #00000020;
    border-radius: 0.5rem;
}

.prescription-tab2 {
    background-color: #7f1e1b20;
    border-radius: 0.5rem;
}

.prescription-tab.active {
    background-color: #7f1e1b;
    color: #ffffff;
}

.prescription-tab-content {
    display: none;
}

.prescription-tab-content.active {
    display: block;
}

/* Prescription Form */
.prescription-form-container {
    margin-bottom: 20px;
}

.prescription-form h3 {
    font-size: 1.2rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 !important;
}

.form-group {
    flex: 1;
    margin-right: 10px;
}

.form-group:last-child {
    margin-right: 0;
}

.form-group label {
    display: flex !important;
    align-items: center;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.prescription-name {
    flex-basis: 100%;
}

.eye-details-header,
.prism-header {
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.eye-label {
    font-weight: 600;
    flex-basis: 120px;
}

.btn-save-prescription,
.btn-use-prescription {
    padding: 10px 15px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-right: 10px;
    transition: all 0.3s ease;
}

@media (max-width:768px) {
    .btn-save-prescription,
.btn-use-prescription {
    padding: 8px !important;
}
}

.btn-use-prescription {
    background-color: #7f1e1b;
}

/* Disabled/uploading state for save buttons */
.btn-save-prescription:disabled,
.btn-use-prescription:disabled,
.btn-save-prescription.uploading,
.btn-use-prescription.uploading,
.save-prescription:disabled,
.save-prescription.uploading {
    background-color: #999;
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
}

.btn-save-prescription.uploading:before,
.btn-use-prescription.uploading:before,
.save-prescription.uploading:before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Add padding to button text when in uploading state to accommodate spinner */
.btn-save-prescription.uploading,
.btn-use-prescription.uploading,
.save-prescription.uploading {
    padding-left: 32px;
}

#upload-btn {
    padding: 10px 15px;
    float: none;
}

/* Upload button disabled state */
.upload-button:disabled,
.upload-button.uploading {
    background-color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.upload-button.uploading {
    position: relative;
}

.upload-button.uploading:before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.prescription-message {
    margin-top: 15px;
}

.prescription-message .error {
    padding: 10px;
    background-color: #f8d7da;
    color: #7f1e1b;
    border-radius: 4px;
}

.prescription-message .success {
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
}

.prescription-message .notice {
    padding: 10px;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 4px;
}

/* Saved Prescriptions */
.saved-prescriptions-container {
    margin-top: 15px;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #666;
}

.saved-prescription {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
}

.saved-prescription h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
}

.prescription-details {
    margin-bottom: 15px;
}

.prescription-row {
    margin-bottom: 5px;
}

.prescription-label {
    font-weight: 600;
    margin-right: 5px;
}

.use-saved-prescription-btn {
    padding: 0.5rem 0.75rem;
    background-color: #7f1e1b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0 !important;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
}

.success-message p {
    margin: 0;
    font-size: 1rem;
}

.success-message .continue-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.success-message .continue-button:hover {
    background-color: #218838;
}

.login-required-message {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e2e2e2;
}

.login-required-message a {
    color: #7f1e1b;
    text-decoration: underline;
}

/* My Account Prescription Page */
.woocommerce-account-prescriptions {
    margin-bottom: 2rem;
}

.prescription-item {
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    margin-bottom: 20px;
}

.prescription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e2e2e2;
}

.prescription-header h3 {
    font-size: 1.1rem;
}

.prescription-actions button {
    padding: 5px 10px;
    margin-left: 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.edit-prescription-btn {
    background-color: #f0ad4e;
    color: white;
}

.delete-prescription-btn {
    background-color: #d9534f;
    color: white;
}

.prescription-body {
    padding: 15px;
}

.no-prescriptions {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.add-new-prescription {
    margin-top: 20px;
    text-align: center;
}

/* Prescription Button */
.open-prescription-modal {
    background-color: #7f1e1b !important;
    color: #ffffff !important;
    padding: 0.75rem 2rem !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    width: max-content !important;
    margin-bottom: 0 !important;
}

@media (max-width:768px) {
    .open-prescription-modal {
    padding: 0.5rem !important;
    font-size: 15px !important;
}
}

.open-prescription-modal.hidden {
    display: none !important;
}

.open-prescription-modal.show {
    display: inline-block !important;
}

.open-prescription-modal:hover {
    background-color: #5a171d !important;
}

/* Prescription Modal */
.prescription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
}

.prescription-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5vh auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width:768px) {
    .prescription-modal-content {
    max-height: 100vh !important;
    }
}

.close-modal {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 1;
    background-color: #000;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .close-modal {
    right: 0.75rem !important;
    }
}

.close-modal:hover {
    background-color: #7f1e1b;
}

/* Responsive styling */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .prescription-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .prescription-actions {
        margin-top: 10px;
    }
}

.prescription-form select.invalid,
.prescription-form input.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.prescription-form .error {
    color: #dc3545;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #dc3545;
    border-radius: 4px;
    background-color: #f8d7da;
}

.prescription-form .success {
    color: #28a745;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #28a745;
    border-radius: 4px;
    background-color: #d4edda;
}

.prescription-form .notice {
    color: #0c5460;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    background-color: #d1ecf1;
}

/* My Account Prescriptions Page */
.woocommerce-prescriptions {
    margin-bottom: 2rem;
}

.prescription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.prescription-header h2 {
    margin: 0;
}

.add-new-prescription {
    padding: 0.5em 1rem;
    background-color: #000000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.add-new-prescription:hover {
    background-color: #005177;
    color: white;
}

/* Prescriptions Grid Layout */
.prescriptions-grid-container {
    margin-bottom: 2rem;
}

.prescription-grid-item {
    border: 1px solid #e5e5e5;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.prescription-grid-item:hover {
    box-shadow: 0 4px 0.5rem rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease;
}

/* Grid Header */
.prescription-grid-header {
    background-color: #f8f8f8;
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid for manual prescriptions (8 equal-width columns) */
.prescription-grid-item.manual .prescription-grid-header,
.prescription-grid-item.manual .prescription-grid-data {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
}

/* Grid for upload prescriptions (name + image) */
.prescription-grid-item.upload .prescription-grid-header,
.prescription-grid-item.upload .prescription-grid-data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.prescription-grid-header > div,
.prescription-grid-data > div {
    padding: 0.5rem;
    border-right: 1px solid #e5e5e5;
    align-content: center;
}

.prescription-grid-header > div:last-child,
.prescription-grid-data > div:last-child {
    border-right: none;
}

/* Data Styling */
.prescription-grid-data {
    background-color: #fff;
}

.data-name {
    font-weight: 500;
    color: #333;
}

.eye-values {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.eye-values span {
    color: #666;
}

.prism-values {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.prism-values span {
    color: #666;
}

.data-pd {
    font-size: 0.9rem;
    color: #666;
}

.data-type, .data-add {
    font-size: 0.9rem;
    color: #666;
}

/* Prescription Image Styling */
.prescription-image-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prescription-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.image-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.image-name {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.view-full-image {
    font-size: 0.8rem;
    color: #0073aa;
    text-decoration: none;
}

.view-full-image:hover {
    text-decoration: underline;
}

.no-image {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

/* Actions */
.data-actions,
.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    justify-content: end;
}

/* Prescription Image spans 2 columns for upload prescriptions */
.prescription-grid-item.upload .data-prescription-image,
.prescription-grid-item.upload .header-prescription-image {
    grid-column: span 2;
}

/* Prescription Modals */
.prescription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.prescription-modal-content {
    background-color: white;
    padding: 0.7rem;
    border-radius: 5px;
    max-width: 650px;
    width: 100%;
    position: relative;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.confirm-delete {
    background-color: #d9534f;
    color: white;
}

.cancel-delete {
    background-color: #5bc0de;
    color: white;
}

/* Tablet responsiveness */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .prescription-grid-item.manual .prescription-grid-header,
    .prescription-grid-item.manual .prescription-grid-data {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .prescription-grid-header > div,
    .prescription-grid-data > div {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .item-meta .actions .button {
        padding: 0.3em 0.6rem;
        font-size: 0.75rem;
    }
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .prescription-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
    }
    
    /* Item Meta responsive styling */
    .item-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        text-align: center;
        padding: 0.75rem;
    }
    
    .item-meta .actions {
        width: 100%;
        justify-content: center;
    }
    
    .item-meta .actions .button {
        flex: 1;
        max-width: 120px;
    }
    
    /* Mobile: Stack grid items vertically */
    .prescription-grid-item.manual .prescription-grid-header,
    .prescription-grid-item.manual .prescription-grid-data {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .prescription-grid-item.upload .prescription-grid-header,
    .prescription-grid-item.upload .prescription-grid-data {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .prescription-grid-header {
        display: none; /* Hide headers on mobile for cleaner look */
    }
    
    .prescription-grid-data > div {
        padding: 0.75rem;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        position: relative;
    }
    
    .prescription-grid-data > div:last-child {
        border-bottom: none;
    }
    
    /* Add labels for mobile */
    .prescription-grid-data > div:before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .prescription-image-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .prescription-thumbnail {
        width: 80px;
        height: 80px;
    }

    .prescription-modal-content {
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .pd-type-container, .ph-type-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.pd-type-container, .ph-type-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.measure-pd-btn, .measure-ph-btn {
    display: inline-block;
    padding: 0.5rem 1rem !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: background-color 0.2s ease !important;
}

.measure-pd-btn:hover, .measure-ph-btn:hover {
    background-color: #5a171d !important;
    color: #ffffff !important;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    cursor: help;
    position: relative;
}

.tooltip-icon .question-icon {
    width: 18px;
    height: 18px;
    transition: color 0.2s ease;
}

.tooltip-icon:hover .question-icon {
    color: #7f1e1b;
}

.pd-type-tooltip {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    cursor: help;
}

.question-mark-icon {
    width: 18px;
    height: 18px;
    transition: fill 0.2s ease;
    fill: var(--ast-global-color-2);
    border-radius: 100px;
    outline: 2px;
    border: 1px solid white;
    outline-style: dotted;
}

.pd-type-tooltip:hover .question-mark-icon {
    fill: var(--ast-global-color-0);
}

/* Tippy.js custom styles */
.tippy-box {
    background-color: var(--ast-global-color-7);
    color: var(--ast-global-color-2);
    font-size: 13px;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
}

.tippy-arrow {
    color: var(--ast-global-color-7);
}

/* Item Meta Section */
.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: #7f1e1b20;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.9rem;
}

.item-meta .date {
    font-weight: 600;
    color: #000;
}

.item-meta .date-value {
    font-weight: 400;
    color: #7f1e1b;
}

.item-meta .actions {
    display: flex;
    gap: 0.5rem;
}

.item-meta .actions .button {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 80px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.item-meta .edit-prescription {
    background-color: #f0ad4e;
    color: white;
}

.item-meta .edit-prescription:hover {
    background-color: #ec971f;
    color: white;
}

.item-meta .delete-prescription {
    background-color: #d9534f;
    color: white;
}

.item-meta .delete-prescription:hover {
    background-color: #c9302c;
    color: white;
} 


/* Prescription Form Styles */
.prescription-form {
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

@media (max-width: 768px) {
.prescription-form {
    padding: 0.5rem !important;
}
}

.prescription-form h3 {
    font-size: 1.4rem;
}

/* Segmented Control Styles */
.prescription-selector-container {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.prescription-segmented-control {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    background-color: #f0f0f0;
}

.segment-option {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.segment-option:not(:last-child) {
    border-right: 1px solid #ddd;
}

.segment-option:hover {
    background-color: #e9e9e9;
}

.segment-option.active {
    background-color: var(--ast-global-color-0, #0073aa);
    color: white;
}

.segment-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.saved-prescription-dropdown {
    position: relative;
    margin-top: 15px;
}

.saved-prescription-dropdown select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.saved-prescription-dropdown:after {
    content: "";
    position: absolute;
    right: 15px;
    top: 15px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #555;
    pointer-events: none;
}

.prescription-selector select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Eye Groups Styling */
.eye-groups-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 0;
}

.eye-group {
    flex: 1;
    min-width: 280px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.eye-group h4 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    color: #333;
}

.left-eye-group {
    border: 3px solid var(--ast-global-color-0);
}

.right-eye-group {
    border: 3px solid var(--ast-global-color-0);
}

/* Form Fields Styling */
#prescription-fields p {
    margin-bottom: 1rem;
}

.field-wrapper {
    margin-bottom: 15px;
}

.field-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.field-wrapper select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#prescription-form button.button {
    margin-top: 1rem;
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#prescription-form button.button:hover {
    background-color: #005a87;
}

/* Loading animation */
.prescription-form #prescription-fields.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .eye-groups-container {
        flex-direction: column;
    }
    
    .eye-group {
        width: 100%;
        min-width: 0;
    }
}

/* PD Section Styling */
.pd-section {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f8f8;
}

.pd-section:before {
    content: "Pupil Distance (PD)";
    display: block;
    margin-bottom: 15px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

/* Radio buttons styling */
.radio-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option label {
    display: inline-block !important;
    margin-left: 5px;
    margin-right: 15px;
}

.radio-option input[type="radio"] {
    margin-right: 5px;
    vertical-align: middle;
}

/* Hide individual PD fields by default */
.field-left_eye_pupil_distance_pd,
.field-right_eye_pupil_distance_pd {
    display: none;
}

.three-cols-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.eye-group {
    margin-bottom: 1rem;
}

.woocommerce-prescriptions-table td {
    min-height: 100px !important;
}

td.prescription-actions {
    align-items: center;
    justify-content: center;
}

#prescription-fields-manual {
    margin: 1rem 0;
}

label .hint {
    margin: 0 0.5rem;
    color: #666;
    font-size: 0.75rem;
    font-weight: normal;
}

li.pewc-item {
    padding: 1rem;
    border: 1px solid;
    border-radius: 12px;
    background: #7f1e1b10;
}

@media screen and (max-width: 768px) {
    li.pewc-item {
        padding: 0.25rem;
    }
}

.polycarbonate_pc-note {
    justify-self: center;
    background: #7f1e1b30;
    color: #7f1e1b;
    padding: 0 8px;
    border-radius: 100px;
    font-size: 14px;
}