/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    background-color: #f5f5f5;
}

/* Generator interface styles */
.generator-container {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.generator-container h1 {
    text-align: center;
    color: #006340;
    margin-bottom: 20px;
    font-size: 28px;
}

.form-container {
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-group label {
    min-width: 200px;
    font-weight: bold;
    margin-right: 10px;
}

.input-group input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 14px;
    min-width: 300px;
}

.custom-fields {
    background-color: #eae8e3;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.custom-fields h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #006340;
    font-size: 18px;
}

.input-row {
    display: flex;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.input-field {
    flex: 1;
    margin-right: 15px;
    min-width: 200px;
    margin-bottom: 10px;
}

.input-field:last-child {
    margin-right: 0;
}

.input-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

.input-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

button {
    background-color: #006340;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #004c30;
}

.status-message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    display: none;
    font-size: 14px;
}

.status-message.success {
    background-color: #d1efd8;
    border: 1px solid #74c686;
    color: #2d6a39;
    display: block;
}

.status-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.divider {
    height: 2px;
    background-color: #006340;
    margin: 30px 0;
}

/* Email container */
.email-container {
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    width: 100%;
    background-color: #eae8e3;
    color: #000000;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    min-width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.bg-container {
    background-color: #eae8e3;
}

/* Main table */
.main-table {
    border-collapse: collapse;
    margin: 0 auto;
    width: 100%;
    background-color: #eae8e3;
}

.centered-td {
    text-align: center;
    vertical-align: top;
    width: 640px;
}

/* Content table */
.content-table {
    border-collapse: collapse;
    margin: 0 auto;
    table-layout: fixed;
    max-width: 100%;
    width: 640px;
}

.collapsed-td {
    border-collapse: collapse;
    padding: 0px;
    vertical-align: top;
    width: 640px;
}

/* Tracking info */
.tracking-info {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    color: #a0a0a0;
    font-size: 14px;
    margin: 0px;
    line-height: 18px;
    width: 640px;
    text-align: center;
    padding: 10px 0;
}

/* Progress steps */
.progress-steps {
    border-collapse: collapse;
    margin: 0;
    min-height: 250px;
    width: 640px;
}

.progress-step-left {
    background-image: url('https://images.stockx.com/images/Goyard-Saint-Sulpice-Green-V.jpg?mask-bg=006340&mask=http%3A%2F%2Fstockx-assets.imgix.net%2Femails%2Fhackathon2022%2Foverlay%2Fgrad_alone.png&duotone-alpha=100&fill=solid&crop=middle&fit=crop&w=640&h=350&mark-pad=0&mark64=aHR0cDovL3N0b2NreC1hc3NldHMuaW1naXgubmV0L2VtYWlscy9oYWNrYXRob24yMDIyL292ZXJsYXkvdjNfZ3JheV9ub3NwYWNlLnBuZw&mark-align=top%2C%20left&duotone=006340%2C99c1b3&con=75&mark-scale=33');
    background-repeat: no-repeat;
    background-color: #006340;
    background-position: middle;
    background-size: inherit;
    height: 320px;
    vertical-align: top;
    width: 640px;
}

.logo-container {
    border-collapse: collapse;
    height: 250px;
    padding: 45px 15px 0 105px;
    vertical-align: top;
}

.stockx-logo {
    display: block;
    border: none;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    color: #d4d1c7;
    text-transform: none;
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 25px;
    width: 25px;
}

.steps-container {
    padding: 40px 55px 40px 0px;
    vertical-align: top;
    width: 50%;
}

.step-icon {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    color: #d4d1c7;
    text-decoration: none;
    text-align: left;
    padding-bottom: 10px;
}

.step-img {
    display: block;
    border: none;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    color: #000000;
    text-transform: none;
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 25px;
    width: 40px;
}

.step-text {
    font-family: 'Book Antiqua', 'Palatino Linotype', 'Palatino LT STD', Georgia, serif;
    font-size: 22px;
    color: #d4d1c7;
    text-decoration: none;
    text-align: left;
    line-height: 26px;
    font-weight: 400;
    padding-left: 15px;
    padding-bottom: 10px;
    vertical-align: middle;
}

.step-text.active {
    color: #000000;
}

/* Banner section */
.banner-section {
    padding: 0;
    background-color: #000000;
    width: 640px;
}

.banner-left {
    background-color: #D4D1C7;
    vertical-align: top;
    width: 320px;
}

.banner-left-content {
    border-collapse: collapse;
    padding: 20px 100px 20px 90px;
    vertical-align: top;
}

.banner-img {
    display: block;
    border: none;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    color: #000000;
    text-transform: none;
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 25px;
    width: 129px;
}

.banner-right {
    background-color: #D4D1C7;
    vertical-align: top;
    width: 320px;
}

.banner-right-content {
    background-color: #D4D1C7;
    vertical-align: top;
    width: 320px;
}

.banner-title {
    font-family: 'Book Antiqua', 'Palatino Linotype', 'Palatino LT STD', Georgia, serif;
    font-size: 25px;
    color: #006340;
    text-decoration: none;
    text-align: left;
    line-height: 32px;
    font-weight: 500;
    padding: 40px 40px 0 0;
    display: block;
}

.banner-product {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 16px;
    color: #000005;
    text-decoration: none;
    text-align: left;
    line-height: 24px;
    font-weight: 600;
}

.banner-delivery {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 16px;
    color: #000005;
    text-decoration: none;
    text-align: left;
    line-height: 24px;
    font-weight: 400;
}

/* Message section */
.message-section {
    padding: 10px 20px 45px 105px;
    line-height: 0;
    font-size: 0;
    background-color: #D4D1C7;
}

.message-content {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 18px;
    color: #000005;
    text-decoration: none;
    text-align: left;
    line-height: 24px;
    font-weight: 400;
    padding-bottom: 15px;
}

.text-link {
    text-decoration: underline;
    color: #000000;
}

/* Product section */
.product-section {
    padding: 0;
    background-color: #ffffff;
}

.product-image {
    border-collapse: collapse;
    margin: 0;
    padding: 15px;
    width: 260px;
}

.product-img {
    display: block;
    border: none;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 22px;
    color: #006340;
    text-decoration: none;
    text-align: center;
    letter-spacing: 1px;
    width: 260px;
}

.product-details {
    width: 280px;
}

.product-name {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 24px;
    color: #006340;
    text-decoration: none;
    text-align: left;
    line-height: 30px;
    padding: 30px 15px 15px 15px;
    font-weight: 500;
    width: 280px;
}

.product-name-link {
    color: #006340;
    text-decoration: none;
}

.product-info {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 13px;
    color: #000000;
    text-decoration: none;
    text-align: left;
    line-height: 16px;
    font-weight: 600;
    padding: 0 0 0 15px;
    width: 280px;
}

.product-info-list {
    list-style-type: none;
    margin: 0;
    padding: 5px 0 0 0;
}

.price-section {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    color: #000000;
    text-decoration: none;
    text-align: left;
    font-weight: 400;
    padding: 15px 0 0 15px;
    width: 280px;
}

.price-label {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 13px;
    color: #000000;
    text-decoration: none;
    text-align: left;
    line-height: 16px;
    font-weight: 600;
    min-width: 200px;
    width: 200px;
}

.price-value {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 13px;
    color: #000000;
    text-decoration: none;
    text-align: right;
    line-height: 16px;
    font-weight: 600;
}

.divider {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 0px;
    color: #ffffff;
    text-decoration: none;
    text-align: left;
    line-height: 0px;
    padding: 5px 0 0 0;
    border-bottom: 0px solid #000000;
    width: 240px;
}

.total-label {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 14px;
    text-decoration: none;
    text-align: left;
    line-height: 18px;
    font-weight: 600;
    display: inline-block;
    min-width: 200px;
    text-transform: uppercase;
    color: #006340;
    width: 200px;
}

.total-value {
    text-align: right;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 14px;
    color: #006340;
    text-decoration: none;
    line-height: 18px;
    font-weight: 600;
}

.button-container {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 18px;
    color: #000000;
    text-decoration: none;
    text-align: center;
    line-height: 16px;
    font-weight: normal;
    padding: 15px 0 30px 15px;
    width: 100%;
}

.button-cell {
    text-align: center;
    background-color: #000000;
    border-radius: 2px;
    padding: 8px 18px;
}

.view-order-button {
    font-size: 20px;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    color: #ffffff;
    text-decoration: none;
    border-radius: 2px;
    border: 0;
    display: inline-block;
    line-height: 35px;
    padding: 0 10px;
    font-weight: 500;
}

.tax-note {
    text-align: left;
}

.tax-text {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 13px;
    color: #000000;
    text-decoration: none;
    text-align: left;
    line-height: 16px;
    font-weight: 300;
    font-style: italic;
    padding: 0 0 15px 15px;
    width: 100%;
}

/* Gift section */
.gift-section {
    background-color: #000000;
    padding: 0;
    width: 100%;
    height: auto;
}

.gift-left {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 18px;
    color: #d4d1c7;
    text-decoration: none;
    text-align: left;
    line-height: 24px;
    font-weight: 400;
    padding-bottom: 15px;
    width: 260px;
}

.gift-img {
    display: block;
    border: none;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    color: #000000;
    text-transform: none;
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 25px;
    width: 200px;
}

.gift-right {
    width: 280px;
}

.gift-title {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 18px;
    color: #d4d1c7;
    text-decoration: none;
    text-align: left;
    line-height: 24px;
    font-weight: 400;
    padding: 40px 15px 5px 15px;
    width: 100%;
}

.gift-subtitle {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #d4d1c7;
    text-decoration: none;
    text-align: left;
    line-height: 24px;
    padding: 5px 15px 5px 15px;
    width: 100%;
}

.gift-button-container {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 18px;
    color: #000000;
    text-decoration: none;
    text-align: center;
    line-height: 16px;
    font-weight: normal;
    padding: 15px 0 30px 15px;
    width: 100%;
}

.gift-button-cell {
    text-align: center;
    background-color: #D4D1C7;
    border-radius: 2px;
    padding: 8px 18px;
    border: 1px solid #000000;
}

.buy-now-button {
    font-size: 20px;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    color: #000000;
    text-decoration: none;
    border-radius: 2px;
    border: 0;
    display: inline-block;
    line-height: 35px;
    padding: 0 10px;
    font-weight: 500;
}

/* Footer section */
.footer-section {
    background-color: #006340;
    padding: 0;
    width: 100%;
}

.footer-links {
    padding: 45px 30px 0px 30px;
    text-align: left;
}

.links-container {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 18px;
    color: #d4d1c7;
    text-decoration: none;
    text-align: center;
    line-height: 24px;
    font-weight: normal;
    padding-bottom: 45px;
}

.footer-links-list {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    color: #d4d1c7;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    display: inline-block;
    list-style-type: none;
}

.footer-link-item {
    display: inline-block;
    padding: 0 5px 0 0;
    margin: 0 !important;
}

.footer-link-item.divider {
    display: inline-block;
    border-left: #d4d1c7 1px solid;
    padding: 0 10px;
}

.footer-link {
    text-decoration: none;
    color: #d4d1c7;
}

/* Social section */
.social-section {
    background-color: #eae8e3;
    padding: 15px;
    text-align: center;
}

.social-content {
    border-collapse: collapse;
    border: 0;
    display: block;
    padding-bottom: 15px;
    padding-top: 15px;
}

.social-link {
    vertical-align: middle;
    width: 30px;
}

.social-icon {
    display: inline-block;
    border: none;
}

.social-spacer {
    font-size: 1px;
    line-height: 1px;
    width: 45px;
}

.copyright-section {
    padding: 0 30px 30px 30px;
    text-align: center;
}

.copyright-text {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 10px;
    color: #006340;
    font-weight: 400;
    text-decoration: none;
    text-align: center;
    line-height: 12px;
    padding-top: 10px;
    width: 100%;
}

.address-text {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 10px;
    color: #006340;
    font-weight: 400;
    text-decoration: none;
    text-align: center;
    line-height: 12px;
    padding-top: 5px;
    width: 100%;
}

/* Hide generator UI when printing */
@media print {
    .generator-container, .divider {
        display: none;
    }

    body {
        background-color: white;
    }

    .email-container {
        margin: 0;
        padding: 0;
    }
}

/* Responsive styles for smaller screens */
@media screen and (max-width: 768px) {
    .generator-container {
        padding: 15px;
        margin: 10px;
    }

    .input-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .input-group label {
        margin-bottom: 5px;
    }

    .input-group input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        min-width: auto;
    }

    .input-row {
        flex-direction: column;
    }

    .input-field {
        width: 100%;
        margin-right: 0;
    }

    .actions {
        flex-direction: column;
        gap: 10px;
    }

    button {
        width: 100%;
    }
}

/* Image preview container */
.image-preview-container {
    margin-top: 10px;
    position: relative;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.remove-image-btn {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-image-btn:hover {
    background-color: #d32f2f;
}

.file-input {
    display: none;
}

.upload-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-btn {
    background-color: #006340;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.file-name {
    font-size: 14px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* StockX overlay */
.stockx-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

/* Additional Shipped Status Styles */
.tracking-number-display {
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 16px;
    color: #000005;
    text-decoration: none;
    text-align: left;
    line-height: 24px;
    font-weight: 600;
}

.track-button {
    font-size: 20px;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    color: #ffffff;
    text-decoration: none;
    border-radius: 2px;
    border: 0;
    display: inline-block;
    line-height: 35px;
    padding: 0 10px;
    font-weight: 500;
}

select#carrier {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #fff;
    appearance: menulist;
}