* {
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
}


.seller-upload-page {
    width: 100%;
    min-height: 100vh;
    padding: 20px 12px;
}


.seller-upload-card {
    width: 100%;
    max-width: 650px;
    margin: auto;
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0,0,0,.08);
}


.seller-upload-card h1 {
    margin: 0 0 6px;
    font-size: 26px;
}


.upload-subtitle {
    margin: 0 0 25px;
    color: #777;
}


.upload-section {
    margin-bottom: 20px;
}


.upload-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}


input,
select,
textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 13px;
    font-size: 15px;
    outline: none;
    background: #fff;
}


input:focus,
select:focus,
textarea:focus {
    border-color: #f4511e;
}


textarea {
    resize: vertical;
}


.price-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}


.price-input span {
    padding-left: 13px;
    font-weight: 700;
}


.price-input input {
    border: 0;
}


.image-preview {
    width: 100%;
    min-height: 180px;
    margin-top: 12px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


.image-preview:empty::before {
    content: "Product image preview";
    color: #aaa;
}


.image-preview img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
}


.price-summary {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 22px;
}


.price-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
}


.price-summary span {
    color: #666;
}


.price-summary strong {
    font-weight: 700;
}


.buyer-price {
    border-top: 1px solid #ddd;
    margin-top: 5px;
    padding-top: 13px !important;
}


.buyer-price strong {
    color: #f4511e;
    font-size: 18px;
}


.upload-status {
    min-height: 22px;
    margin: 10px 0;
    text-align: center;
    font-size: 14px;
}


.upload-product-button {
    width: 100%;
    border: 0;
    border-radius: 9px;
    padding: 15px;
    background: #f4511e;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}


.upload-product-button:disabled {
    opacity: .6;
    cursor: not-allowed;
}


@media (min-width: 700px) {

    .seller-upload-page {
        padding: 40px 20px;
    }

    .seller-upload-card {
        padding: 32px;
    }

}


/* ==========================================================
   SHIPPING SECTION
========================================================== */

.shipping-section,
.pickup-location-section {

    margin-top: 28px;

}


.upload-section-heading {

    margin-bottom: 20px;

}


.upload-section-heading h2 {

    margin: 0 0 7px;

    font-size: 21px;

    font-weight: 800;

    color: #182033;

}


.upload-section-heading p {

    margin: 0;

    font-size: 14px;

    line-height: 1.6;

    color: #737985;

}






/* ==========================================================
   SHIPPING FIELD GROUP
========================================================== */

.shipping-field-group {

    margin-top: 18px;

}


.shipping-field-group > label {

    display: block;

    margin-bottom: 8px;

    font-size: 15px;

    font-weight: 700;

    color: #202533;

}


.shipping-field-group input,
.shipping-field-group select,
.shipping-field-group textarea {

    width: 100%;

    box-sizing: border-box;

    border: 1px solid #d8dbe1;

    border-radius: 12px;

    background: #ffffff;

    padding: 14px 15px;

    font-size: 15px;

    color: #202533;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.shipping-field-group input:focus,
.shipping-field-group select:focus,
.shipping-field-group textarea:focus {

    border-color: #f4511e;

    box-shadow:
        0 0 0 3px rgba(244, 81, 30, 0.10);

}


.shipping-field-group textarea {

    resize: vertical;

    min-height: 100px;

}


.shipping-field-help {

    display: block;

    margin-top: 7px;

    font-size: 12px;

    line-height: 1.5;

    color: #858b96;

}



/* ==========================================================
   WEIGHT INPUT
========================================================== */

.shipping-input-with-unit {

    display: flex;

    align-items: center;

    overflow: hidden;

    border: 1px solid #d8dbe1;

    border-radius: 12px;

    background: #ffffff;

}


.shipping-input-with-unit input {

    flex: 1;

    border: 0;

    border-radius: 0;

    box-shadow: none;

}


.shipping-input-with-unit input:focus {

    border: 0;

    box-shadow: none;

}


.shipping-input-with-unit span {

    padding: 0 18px;

    font-size: 14px;

    font-weight: 700;

    color: #666d79;

    background: #f6f7f9;

    align-self: stretch;

    display: flex;

    align-items: center;

}



/* ==========================================================
   PACKAGE DIMENSIONS
========================================================== */

.package-dimensions-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

}


.package-dimensions-grid > div {

    display: flex;

    align-items: center;

    overflow: hidden;

    border: 1px solid #d8dbe1;

    border-radius: 10px;

    background: #ffffff;

}


.package-dimensions-grid input {

    min-width: 0;

    border: 0;

    border-radius: 0;

    box-shadow: none;

    padding: 13px 10px;

}


.package-dimensions-grid input:focus {

    border: 0;

    box-shadow: none;

}


.package-dimensions-grid span {

    padding-right: 9px;

    font-size: 11px;

    font-weight: 700;

    color: #777e89;

}



/* ==========================================================
   FREE SHIPPING
========================================================== */

.free-shipping-box {

    margin-top: 22px;

    padding: 15px;

    border: 1px solid #e3e5e9;

    border-radius: 14px;

    background: #fafafa;

}


.free-shipping-option {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    cursor: pointer;

}


.free-shipping-option input {

    position: absolute;

    opacity: 0;

    pointer-events: none;

}


.free-shipping-check {

    width: 21px;

    height: 21px;

    flex: 0 0 21px;

    margin-top: 2px;

    border: 2px solid #c8ccd3;

    border-radius: 6px;

    background: #ffffff;

    box-sizing: border-box;

    position: relative;

}


.free-shipping-option input:checked
~ .free-shipping-check {

    border-color: #f4511e;

    background: #f4511e;

}


.free-shipping-option input:checked
~ .free-shipping-check::after {

    content: "✓";

    position: absolute;

    left: 50%;

    top: 50%;

    transform:
        translate(-50%, -53%);

    color: #ffffff;

    font-size: 14px;

    font-weight: 900;

}


.free-shipping-content {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.free-shipping-content strong {

    font-size: 14px;

    color: #202533;

}


.free-shipping-content small {

    font-size: 12px;

    line-height: 1.5;

    color: #777e89;

}



/* ==========================================================
   GET CURRENT LOCATION
========================================================== */

.get-location-button {

    width: 100%;

    border: 0;

    border-radius: 12px;

    padding: 14px 16px;

    background: #fff1ec;

    color: #f4511e;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;

}


.get-location-button:hover {

    background: #ffe4da;

}


.get-location-button:active {

    transform: scale(0.99);

}



/* ==========================================================
   LOCATION STATUS
========================================================== */

.seller-location-status {

    min-height: 18px;

    margin-top: 9px;

    font-size: 12px;

    line-height: 1.5;

    color: #68707c;

}


.seller-location-status.success {

    color: #16834b;

}


.seller-location-status.error {

    color: #c62828;

}



/* ==========================================================
   SELLER COORDINATES
========================================================== */

.seller-coordinates-box {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;

    margin-top: 20px;

}


.seller-coordinates-box > div {

    min-width: 0;

    padding: 13px;

    border-radius: 11px;

    background: #f6f7f9;

    border: 1px solid #e4e6ea;

}


.seller-coordinates-box span {

    display: block;

    margin-bottom: 5px;

    font-size: 11px;

    color: #7c838e;

}


.seller-coordinates-box strong {

    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 13px;

    color: #242a36;

}



/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {

    .upload-section-heading h2 {

        font-size: 19px;

    }


    .package-dimensions-grid {

        gap: 7px;

    }


    .package-dimensions-grid input {

        padding-left: 8px;

        padding-right: 5px;

        font-size: 13px;

    }


    .package-dimensions-grid span {

        padding-right: 6px;

        font-size: 10px;

    }


    .seller-coordinates-box {

        grid-template-columns: 1fr;

    }

}




