.share-build-container {
    float: right;
}
.share-build-inline {
    float: right;
    margin-left: 20px;
    line-height: 1.2;
}

.share-configuration-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #c7163c;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-configuration-link:hover {
    text-decoration: underline;
}

.share-configuration-link i {
    margin-right: 6px;
    font-size: 12px;
}

/* Ensure proper clearing for the product title */
.product-name h1 {
    overflow: hidden;
}

.product-name h1::after {
    content: "";
    display: table;
    clear: both;
}

/* Modal Styles */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.share-modal-content {
    position: relative;
    background: #fff;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 1;
}

.share-modal-close {
    width: 44px;
    height: 44px;
    line-height: 44px;
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    opacity: .65;
    cursor: pointer;
    padding: 0;
}

.share-modal-close:hover {
    opacity: 1;
}

/* Loading State */
.share-loading-state {
    text-align: center;
    padding: 40px 20px;
}

.share-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #c7163c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.share-loading-state p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Success State */
.share-success-state {
    padding-top: 20px;
}

.share-url-container {
    margin-bottom: 20px;
}

.share-url-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.share-url-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

input[type="text"].share-url-input {
    height: 43px;
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    background-color: #f8f9fa;
    font-family: monospace;
    color: #495057;
}

.share-url-input:focus {
    outline: none;
    border-color: #007acc;
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.25);
}

.copy-share-url-btn {
    height: 43px;
    border:0;
    padding: 12px 20px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    background-color: #c7163c;
    color:#fff;
}

.share-instructions {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #c7163c;
}

/* Error State */
.share-error-state {
    padding: 20px 0;
    text-align: center;
}

.share-error-message {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-error-message i {
    color: #dc3545;
    font-size: 18px;
}

.share-retry-btn {
    padding: 10px 24px;
    font-size: 14px;
    background-color: #dc3545;
    border-color: #dc3545;
}

.share-retry-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Message Display */
.share-message {
    margin-top: 15px;
    padding: 12px 16px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

.share-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.share-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 576px) {
    .share-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .share-modal-header {
        padding: 15px;
    }
    
    .share-modal-body {
        padding: 15px;
    }
    
    .share-url-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .share-url-input {
        width: 100%;
    }
    
    .copy-share-url-btn {
        width: 100%;
    }
    
    .share-configuration-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}