.input-validation-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 2px rgba(196,75,85,.1)
}

.field-validation-error {
    display: block;
    margin-top: 5px;
    font-weight: 600
}

.field-validation-valid {
    display: none
}

.field-message.field-validation-error {
    display: block;
    color: #b3424d;
    font-size: 10px;
    margin-top: 5px;
    font-weight: 600
}

.validation:empty {
    display: none
}

.pagination {
    align-items: center;
    flex-wrap: wrap
}

    .pagination a {
        width: auto;
        min-width: 38px;
        padding-inline: 14px;
        border-radius: 999px
    }

    .pagination span {
        color: var(--muted);
        font-size: 12px;
        padding-inline: 8px
    }

.notification-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px
}

fieldset.panel {
    min-width: 0
}

    fieldset.panel legend {
        font-size: 20px;
        font-weight: 700;
        padding: 0
    }

.image-upload {
    display: block;
    border: 2px dashed var(--line);
    border-radius: 14px;
    padding: 18px;
    background: var(--soft);
    font-weight: 700
}

    .image-upload input {
        display: block;
        margin-top: 8px;
        max-width: 100%
    }

.image-preview-list, .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(190px,1fr));
    gap: 14px;
    margin-top: 16px
}

    .image-preview-list img, .image-card > img {
        width: 100%;
        height: 150px;
        object-fit: contain;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #fff
    }

.image-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    background: #fff
}

.image-card-actions {
    display: grid;
    gap: 9px;
    margin-top: 10px
}

    .image-card-actions label {
        font-size: 13px;
        font-weight: 700
    }

    .image-card-actions input {
        width: 100%;
        margin-top: 3px
    }

    .image-card-actions .check {
        display: flex;
        align-items: center;
        gap: 7px
    }

        .image-card-actions .check input {
            width: auto;
            margin: 0
        }

.variant-editor {
    position: relative
}

    .variant-editor [data-remove-variant] {
        align-self: end
    }

.validation-summary ul {
    margin: 0;
    padding-left: 20px
}

.validation-summary.validation-summary-valid {
    display: none
}

.field-help {
    margin-top: 8px !important;
    color: var(--cyan-dark) !important;
    font-weight: 650
}

.admin-warning, .product-warning {
    display: block;
    color: #93414a;
    background: #fff3f4;
    border: 1px solid #f0cfd3;
    border-radius: 9px;
    padding: 9px 11px;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 700
}

.stock-readout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #cfe4e5;
    border-radius: 10px;
    background: #fff;
    padding: 10px 12px
}

    .stock-readout span, .stock-readout small {
        color: var(--muted);
        font-size: 10px
    }

    .stock-readout strong {
        font-size: 22px
    }

.variant-editor label small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px
}

.new-image-section, .existing-image-section {
    padding: 18px;
    border-radius: 14px;
    background: var(--soft)
}

.existing-image-section {
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--line)
}

    .new-image-section h3, .existing-image-section h3 {
        margin: 0 0 12px;
        font-size: 14px
    }

.image-order-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px
}

.danger-button {
    color: var(--danger)
}

.stock-adjust-form {
    display: grid;
    grid-template-columns: 92px minmax(180px,1fr) auto;
    gap: 8px;
    align-items: end;
    min-width: 380px
}

    .stock-adjust-form label {
        display: grid;
        gap: 4px;
        margin: 0
    }

        .stock-adjust-form label span {
            font-size: 9px;
            font-weight: 800;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: .05em
        }

    .stock-adjust-form input {
        width: 100%;
        min-width: 0;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 8px
    }

    .stock-adjust-form button {
        height: 38px;
        border: 0;
        background: var(--cyan);
        color: #fff;
        border-radius: 8px;
        padding: 7px 13px;
        font-weight: 750;
        cursor: pointer
    }

.admin-nav a, .admin-nav .admin-nav-disabled {
    display: flex;
    align-items: center;
    gap: 11px;
    position: relative
}

.admin-nav svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.admin-sidebar .admin-nav a {
    padding: 10px 12px;
    border-left: 3px solid transparent
}

    .admin-sidebar .admin-nav a:hover {
        background: #12444f;
        color: #fff;
        transform: translateX(2px)
    }

    .admin-sidebar .admin-nav a.active {
        background: linear-gradient(90deg,#12515e,#10434d);
        border-left-color: #2ed0df;
        color: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,.12)
    }

.admin-nav-disabled {
    margin-top: 4px;
    padding: 10px 12px;
    color: #718f95;
    cursor: not-allowed
}

    .admin-nav-disabled small {
        margin-left: auto;
        font-size: 8px;
        color: #638a92
    }

.admin-sidebar nav b {
    margin-left: auto;
    float: none
}

@media(max-width:820px) {
    .stock-adjust-form {
        min-width: 290px;
        grid-template-columns: 1fr
    }

        .stock-adjust-form button {
            width: 100%
        }
}

@media(max-width:540px) {
    .image-order-actions {
        grid-template-columns: 1fr
    }

    .stock-adjust-form {
        min-width: 240px
    }
}

.validation-summary-valid {
    display: none !important;
}

.contact-hours {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.hours-list {
    margin: 0;
}

.hours-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

    .hours-row:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .hours-row dt {
        font-weight: 700;
    }

    .hours-row dd {
        margin: 0;
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    .hours-row small {
        display: block;
        margin-top: 5px;
        color: var(--muted);
        line-height: 1.5;
    }

@media (max-width: 540px) {
    .hours-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

        .hours-row dd {
            text-align: left;
        }
}

/* Prescription purchase guidance, bounded review picker, and consistent navigation. */
.prescription-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.medicine-picker {
    min-width: 0;
    margin: 20px 0;
}

    .medicine-picker legend {
        font-weight: 700;
    }

.medicine-rows {
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.medicine-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #dae7e7;
}

    .medicine-row > div {
        flex: 1;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .medicine-row small {
        display: block;
        color: var(--muted);
        margin-top: 4px;
    }

    .medicine-row button {
        flex: none;
        min-height: 40px;
    }

.authorized-medicine + .authorized-medicine {
    border-top: 1px solid #dae7e7;
    margin-top: 20px;
    padding-top: 20px;
}

/* Storefront CTA and price hierarchy; reuse existing button and layout styles. */
.detail-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 20px 0;
}

    .detail-price > span {
        color: var(--muted);
        font-size: 12px;
        font-weight: 650;
    }

    .detail-price > strong {
        color: var(--ink);
        font-size: 28px;
        line-height: 1.2;
    }

    .detail-price > small {
        color: var(--muted);
    }

.variant-choice label {
    display: block;
    font-size: 11px;
    font-weight: 750;
    margin-bottom: 7px;
}

.variant-choice .btn {
    margin-top: 10px;
}

.basket-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--cyan-dark);
    font-size: 14px;
    font-weight: 700;
}

    .basket-back-link:hover {
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .basket-back-link:focus-visible, .product-card-action:focus-visible, .variant-choice .btn:focus-visible {
        outline: 2px solid var(--cyan-dark);
        outline-offset: 4px;
    }
/* Private document cards now expose separate secure preview and download actions. */
.secure-files > article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
}

    .secure-files > article .prescription-actions {
        margin: 0;
        flex-shrink: 0;
    }

@media (max-width: 600px) {
    .secure-files > article {
        align-items: flex-start;
        flex-direction: column;
    }
}
