/* =====================================================
   PAGE
===================================================== */

.provider-content.provider-edit-content {
    min-height: 100vh;
    width: calc(100% - 304px) !important;
    max-width: none !important;
    margin-left: 304px !important;
    padding: 24px !important;
    background: #ffffff;
    box-sizing: border-box;
}

.provider-edit-product-form {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* =====================================================
   TOP BAR
===================================================== */

.provider-edit-topbar {
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.provider-back-button {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827 !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.provider-edit-topbar span {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 2px;
}

.provider-edit-topbar h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    color: #111827;
}

/* =====================================================
   GRID
===================================================== */

.provider-edit-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 24px;
    align-items: start;
}

.provider-description-card {
    grid-column: 1;
    grid-row: 1;
}

.provider-images-card {
    grid-column: 2;
    grid-row: 1;
}

.provider-inventory-card {
    grid-column: 1;
    grid-row: 2;
}

.provider-pricing-card {
    grid-column: 2;
    grid-row: 2;
}

/* =====================================================
   CARDS
===================================================== */

.provider-edit-card {
    width: 100%;
    max-width: none;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    box-sizing: border-box;
}

.provider-edit-card h3 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* =====================================================
   FORM
===================================================== */

.provider-edit-product-form .form-field {
    margin-bottom: 16px;
}

.provider-edit-product-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.provider-edit-product-form input[type="text"],
.provider-edit-product-form input[type="number"],
.provider-edit-product-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    padding: 12px 14px;
    background: #ffffff;
    font-size: 15px;
    color: #111827;
}

.provider-edit-product-form textarea {
    min-height: 220px;
    resize: vertical;
    line-height: 1.7;
}

.provider-edit-product-form input:focus,
.provider-edit-product-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

/* =====================================================
   PRODUCT IMAGES
===================================================== */

.provider-images-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-help {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
}

.provider-image-panel {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 18px;
}

.provider-cover-image-box {
    position: relative;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    background: #f9fafb;
    transition: .2s ease;
}

.provider-cover-image-box:hover {
    border-color: #2563eb;
}

.provider-cover-image-box input {
    display: none;
}

.provider-cover-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.provider-cover-image-box::after {
    content: "Change cover";
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,.45);
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transition: .2s ease;

    font-size: 15px;
    font-weight: 600;
}

.provider-cover-image-box:hover::after {
    opacity: 1;
}

.provider-cover-image-box span {
    position: absolute;
    left: 14px;
    bottom: 14px;

    background: #ffffff;
    color: #111827;

    padding: 8px 16px;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 500;

    z-index: 2;
}

.provider-empty-cover {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 70px;
    color: #2563eb;

    background: #f8fafc;
}

.provider-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-height: 350px;
    overflow-y: auto;
}

.provider-gallery-item {
    position: relative;

    height: 90px;

    border-radius: 14px;
    overflow: hidden;

    border: 1px solid #e5e7eb;

    cursor: pointer;
}

.provider-gallery-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.provider-gallery-item input {
    display: none;
}

.provider-gallery-item::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0,0,0,.35);

    opacity: 0;
    transition: .2s ease;
}

.provider-gallery-item:hover::after {
    opacity: 1;
}

.provider-remove-gallery  {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #ef4444;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: 600;

    opacity: 0;
    transition: .2s ease;

    z-index: 2;
}

.provider-gallery-item:hover .provider-remove-gallery {
    opacity: 1;
}

.provider-remove-gallery {
    border: none;
    cursor: pointer;
}

.provider-add-gallery-box {
    height: 90px;

    border-radius: 14px;
    border: 2px dashed #cbd5e1;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fafafa;

    cursor: pointer;
    transition: .2s ease;

    position: relative;
}

.provider-add-gallery-box:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.provider-add-gallery-box span {
    font-size: 52px;
    line-height: 1;
    color: #2563eb;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
}

.provider-add-gallery-box input {
    display: none;
}

.provider-images-card small {
    display: block;
    margin-top: 12px;
    color: #6b7280;
}

.image-help {
    position: relative;

    width: 18px;
    height: 18px;

    border-radius: 50%;
    border: 1px solid #9ca3af;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 700;

    color: #6b7280;

    cursor: help;
}

.image-tooltip {
    position: absolute;

    top: 28px;
    left: 50%;

    transform: translateX(-50%);

    width: 280px;

    padding: 10px 12px;

    background: #111827;
    color: #ffffff;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;

    text-align: left;

    opacity: 0;
    visibility: hidden;

    transition: .2s ease;

    z-index: 9999;

    pointer-events: none;
}

.image-help:hover .image-tooltip {
    opacity: 1;
    visibility: visible;
}
/* =====================================================
   MOBILE IMAGES
===================================================== */

@media (max-width: 900px) {

    .provider-image-panel {
        grid-template-columns: 1fr;
    }

    .provider-cover-image-box {
        height: 260px;
    }

    .provider-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   PRICING
===================================================== */

.provider-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* =====================================================
   BUTTONS
===================================================== */

.provider-edit-actions {
    margin: 24px 0 0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.provider-discard-button,
.provider-save-button {
    min-width: 140px;
    height: 46px;

    border-radius: 10px !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}

.provider-discard-button {
    background: #ffffff;
    border: 1px solid #dbe2ea;
    color: #111827 !important;
}

.provider-save-button {
    border: none;
    background: #2563eb;
    color: #ffffff !important;
}

.provider-save-button:hover {
    background: #1d4ed8;
}

/* =====================================================
   ERRORS
===================================================== */

.provider-error {
    margin: 0 0 18px;
    padding: 14px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    border-radius: 10px;
}

.provider-error ul {
    margin: 0;
    padding-left: 20px;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 1100px) {
    .provider-edit-grid {
        grid-template-columns: 1fr;
    }

    .provider-description-card,
    .provider-images-card,
    .provider-inventory-card,
    .provider-pricing-card {
        grid-column: auto;
        grid-row: auto;
    }

    .provider-price-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1000px) {
    .provider-content.provider-edit-content {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 16px !important;
    }

    .provider-edit-topbar h2 {
        font-size: 26px;
    }
}

.page-id-2280 .e-con-inner {
    max-width: none !important;
    width: 100% !important;
}