/* Create Custom Offer Modal
   Shared by every page that renders brand/cart/createOffer.html (creator profile,
   campaign applicants). Keep it here, not in a page stylesheet, so the modal looks
   the same wherever it is opened. */

.create-offer-input{
    width: calc(100% - 10px);
}

select.create-offer-input{
    width: 100%;
}

/* .package-content-type-select is also a profile-edit class, and profile/edit.css bolds it there.
   The modal is rendered on pages that load that stylesheet, so state the weight it should have. */
.offer-modal-left .package-content-type-select{
    font-weight: var(--font-weight-normal);
}

/* Sized with flex basis, not width: pages that also load profile/edit.css (campaign
   applicants) get `select { width: 100% !important }` from it, which would otherwise push
   the unit select onto its own line. */
.duration-inputs{
    display: flex;
    gap: 4px;
}

.create-offer-duration-input{
    flex: 1 1 auto;
    min-width: 0;
}

.create-offer-duration-unit-input{
    flex: 0 0 30%;
}

.input-section{
    margin-bottom: 30px;
}

.offer-bottom-txt{
    font-size: 72%;
    margin-bottom: 20px;
    margin-top: 8px;
}

/* Modal Two-Column Layout */

.modal:has(.offer-modal-columns) {
    justify-content: center;
}

.modal-content-holder:has(.offer-modal-columns) {
    width: 900px !important;
    max-width: 95vw;
    padding: 0;
    border-radius: 20px;
    margin: 20px auto;
}

.add-offer-form {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.offer-modal-columns {
    display: flex;
    gap: 0;
    width: 100%;
    min-height: 500px;
    border-radius: 20px;
    position: relative;
}

.offer-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.offer-close-btn .close-modal-img {
    background-color: white;
}

.offer-modal-left {
    flex: 1;
    padding: 22px 40px 30px 40px;
    display: flex;
    flex-direction: column;
    border-radius: 20px 0 0 20px;
    background-color: white;
}

.offer-modal-header {
    padding: 22px 48px;
}

.offer-modal-title {
    font-size: 125%;
    font-weight: 700;
    color: #222;
    text-align: center;
}

.offer-modal-left .add-to-cart-btn {
    width: 100%;
    margin-top: auto;
}

.offer-modal-right {
    flex: 1;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: linear-gradient(to bottom, #222222 0%, #888888 100%);
    margin: 0;
    border-radius: 0 20px 20px 0;
    justify-content: center;
}

/* Workflow Steps */
.offer-workflow-step {
    display: flex;
    gap: 16px;
    align-items: center;
}

.offer-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100%;
    font-weight: 600;
    flex-shrink: 0;
}

.offer-step-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.offer-step-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.offer-step-content {
    flex: 1;
}

.offer-step-title {
    font-size: 100%;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.offer-step-description {
    font-size: 90%;
    color: #E0E0E0;
    line-height: 1.5;
}

/* Mobile Responsive Styles */
@media (max-width: 800px) {
    .modal:has(.offer-modal-columns) {
        justify-content: flex-start;
    }

    .modal-content-holder:has(.offer-modal-columns) {
        width: 90vw;
        margin: 20px auto;
    }

    .offer-modal-columns {
        flex-direction: column;
        gap: 0;
        min-height: auto;
    }

    .offer-modal-left {
        padding: 20px;
        padding-top: 0;
        border-radius: 20px 20px 0 0;
    }

    .offer-modal-right {
        padding: 40px 20px;
        border-radius: 0 0 20px 20px;
        background: linear-gradient(to right, #222222 0%, #888888 100%);
        justify-content: flex-start;
    }

    .offer-workflow-step {
        gap: 12px;
    }

    .offer-step-number,
    .offer-step-icon {
        width: 28px;
        height: 28px;
    }

    .offer-step-number {
        font-size: 90%;
    }

    .offer-step-icon svg {
        width: 20px;
        height: 20px;
    }

    .offer-modal-header {
        padding: 22px 20px;
    }

    .offer-modal-left .create-offer-input,
    .offer-modal-left .create-offer-duration-input,
    .offer-modal-left .create-offer-duration-unit-input {
        font-size: 90%;
    }

    .offer-modal-left .requirement-title {
        font-size: 85%;
    }

    .offer-modal-left .offer-bottom-txt {
        font-size: 70%;
    }

    .offer-step-title {
        font-size: 100%;
    }

    .offer-step-description {
        font-size: 70%;
    }
}
