.upcasted-container {
    display: flex;
    font-weight: bold;
}
.upcasted-success-notice {
    background-color: #deffde;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.upcasted-settings-container,
.upcasted-tools-container {
    width: 50%;
}

.upcasted-sdk-error {
    font-weight: bold;
    color: orangered;
    font-size: 18px;
}
.upcasted-tools-container {
    padding-left: 3rem;
}
#upcasted-info-message {
    display: flex;
    padding: 10px 20px;
    background-color: white;
    border-radius: 10px;
    column-gap: 20px;
    justify-content: center;
    align-items: center;
}
#upcasted-info-message #toggle-info {
    height: 20px;
}
.upcasted-plugin-info {
    display: none;
    background-color: white;
    border-radius: 10px;
    padding: 10px 20px;
    column-gap: 40px;
    margin-top: 20px;
}
@media only screen and (max-width: 600px) {
    .upcasted-plugin-info {
        flex-wrap: wrap;
    }
}
.upcasted-plugin-info .upcasted-col {
    display: block;
}

/* Migration Status Results Panel */
.upcasted-migration-results {
    background: #f8f9fa;
    padding: 12px;
    margin-top: 10px;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

.upcasted-migration-results strong {
    display: block;
    margin-bottom: 8px;
}

.upcasted-migration-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.upcasted-migration-results li.error {
    color: #d63638;
}

.upcasted-migration-results li.success {
    color: #135e96;
}

@media (max-width: 768px) {
    .upcasted-migration-results ul {
        flex-direction: column;
        gap: 4px;
    }
}

/* Retry Migration Styles */
.upcasted-retry-migration-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.upcasted-retry-button {
    background-color: #d63638;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.upcasted-retry-button:hover {
    background-color: #b32d2e;
}

.upcasted-retry-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
@media only screen and (max-width: 600px) {
    .upcasted-plugin-info .upcasted-col {
        width: 100%;
    }
}
.upcasted-plugin-header {
    display: flex;
    justify-content: left;
    flex-direction: column;
    align-items: left;
    padding: 1rem 0rem;
    box-shadow: 2px 0 10px -11px black;
}

.upcasted-plugin-header > h1 {
    font-weight: 700;
    color: #1d2327;
    margin: 0;
    padding: 9px 0 4px 0;
}

.upcasted-settings-container .upcasted-tools-option select, 
.upcasted-settings-container .upcasted-tools-option input {
    padding: 5px 10px;
}
.upcasted-settings-container .upcasted-tools-option select {
    padding-right: 20px;
}

.upcasted-inline-fields {
    display: flex;
    gap: 10px;
}

.upcasted-inline-fields {
    display: flex;
    gap: 10px;
}

.upcasted-title {
    padding: 20px 0;
    color: #383838;
}

.upcasted-label {
    font-size: 1rem;
    font-weight: bold;
    line-height: 2.2rem;
    position: relative;
    width: 100%;
    display: block;
    margin-top: 10px;
}
#upcasted_offload_select_region {
    width: 100%;
    max-width: initial;
}
.upcasted-input {
    width: 100%;
    height: 50px;
}

.upcasted-missing-mandatory-fields {
    background-color: red;
    height: 25px;
    color: white;
}

.upcasted-button-wrapper {
    text-align: center;
}

.upcasted-button {
    min-width: 150px;
    padding: 9px 15px;
    border: none;
    color: white;
    background-color: #2271b1;
    border-radius: 3px;
    cursor: pointer;
}
.upcasted-settings-container .upcasted-button {
    padding: 13px 15px;
}

.upcasted-cloud-attachment {
    position: relative;
}

.upcasted-cloud-attachment .cloud-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    color: #1bb5ff;
    background: #ffffffbf;
    border-radius: 50%;
    padding: 2px;
    font-weight: bold;
}

a.upcasted-button {
    text-decoration: none;
    text-align: center;
}

a.upcasted-button:hover {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

a.upcasted-button.upcasted-upgrade-plan,
a.upcasted-button.upcasted-upgrade-plan:focus {
    color: white;
    background-color: #ea4b92;
}

.upcasted-button.upcasted-stop-action {
    background-color: #ea4b92
}

a.upcasted-button:focus, button.upcasted-button:focus {
    outline: none;
    box-shadow: inset 6px 9px 13px -11px black;
}

#select-bucket-modal {
    background-color: rgba(38, 38, 38, 0.76);
}

.upcasted-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.32);
    z-index: 9999;
    display: block !important;
    overflow: hidden;
    visibility: visible;
    opacity: 1;
}

.upcasted-modal.hidden {
    display: none !important;
    visibility: hidden;
    opacity: 0;
}

.upcasted-modal-header {
    text-align: right;
    padding: 10px;
    position: relative;
}

.upcasted-close-modal-button {
    border: none;
    background-color: transparent;
    font-size: 28px;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.upcasted-inline-option label {
    display: block;
}

.upcasted-inline-option input,
.upcasted-inline-option select,
.upcasted-inline-option button {
    display: inline-block;
    height: 40px;
    width: auto;
}

.upcasted-inline-option select {
    max-width: 200px;
}

.upcasted-inline-option input,
.upcasted-inline-option select {
    flex: 2 0 0;
}

.upcasted-inline-option button {
    padding: 12px;
    line-height: 15px;
    min-width: 100px;
}

.upcasted-modal-title {
    text-align: center;
    color: #0570e0;
    font-weight: 300;
    font-size: 1.2rem;
    padding: 1rem;
}

.upcasted-modal-body {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 0 30px 30px 30px;
    text-align: center;
}
.upcasted-modal-body p {
    font-weight: 300;
}
.upcasted-modal-body input,
.upcasted-modal-body select,
.upcasted-modal-body button {
    display: inline-block;
}

.upcasted-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 520px;
    max-width: 95vw;
    max-height: 80vh;
    min-height: 120px;
    border-radius: 8px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding-bottom: 24px;
}

.upcasted-modal-button button {
    border: none;
    font-family: 'Source Sans Pro Semibold', sans-serif;
    color: white;
    height: 50px;
    width: 150px;
    background-color: #00a0d2;
    font-size: 16px;
}

.upcasted-modal-error {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 0 auto;
    box-sizing: border-box;
    padding: 0 0 24px 0;
}

.upcasted-modal-error pre {
    background: transparent;
    color: #b71c1c;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    border: none;
    font-family: inherit;
}
.upcasted-close-modal-button {
    border: none;
    background-color: transparent;
    font-size: 28px;
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #e53935;
    cursor: pointer;
    z-index: 10;
    font-weight: bold;
    transition: color 0.2s;
}
.upcasted-close-modal-button:hover {
    color: #b71c1c;
}

.upcasted-tools-option,
.upcasted-cron-message,
.upcasted-tools-error {
    background-color: white;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 2px 4px 10px -11px black;
    padding: 20px;
    font-weight: 300;
    font-size: 1rem;
}

.upcasted-input-error {
    border: 2px solid red !important;
}

.upcasted-tools-option select,
.upcasted-tools-option input {
    font-size: 1.1rem;
}

.upcasted-tools-option-header {
    display: flex;
    justify-content: space-between;
}

.upcasted-tools-option-header .upcasted-tools-tool-name {
    display: flex;
    align-items: center;
}

.upcasted-tools-option-body {
    padding-top: 1rem;
    border-top: 1px solid #e6e6e6;
    margin-top: 1rem;
}

.upcasted-tools-option-footer {
    border-top: 1px solid #e6e6e6;
    margin-top: 1rem;
    padding-top: 1rem;
}

.upcasted-tools-option-footer ul {
    list-style-type: disc;
    margin-left: 20px;
}

.upcasted-tools-option-footer ol li,
.upcasted-tools-option-footer ul li {
    font-size: 13px;
}

.upcasted-hidden-help-description {
    display: none;
    font-weight: 300;
    text-align: left;
}

.upcasted-find-out-more {
    border: 0;
    background: none;
    display: block;
    margin-top: 10px;
    padding: 0;
    cursor: pointer;
}

.upcasted-cron-message,
.upcasted-tools-error {
    color: blue;
}

.upcasted-cdn-delivery .upcasted-tools-option-body {
    display: flex;
}

.upcasted-cdn-delivery .upcasted-tools-option-body #upcasted-cdn-delivery-domain {
    min-width: 250px;
}

.upcasted-cdn-delivery .upcasted-tools-option-body .upcasted-button {
    margin-left: auto;
    min-width: auto;
}
.upcasted-cdn-delivery .upcasted-tools-option-body .upcasted-button.upcasted-stop-action {
    margin-left: 10px;
    min-width: auto;
}


.upcasted-error-indications-box {
    margin-top: 18px;
    padding: 18px 20px 18px 20px;
    background: #f7fafc;
    border: 2px solid #1976d2;
    border-radius: 6px;
    color: #0d3056;
    box-shadow: 0 2px 8px rgba(25,118,210,0.07);
    max-width: 90vw;
    font-size: 1rem;
    text-align: left;
    overflow: visible;
    max-height: none;
}
.upcasted-error-indications-title {
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 8px;
    font-size: 1.08rem;
}
.upcasted-error-indications-content {
    margin-left: 0;
    padding-left: 0;
    font-size: 1rem;
}
.upcasted-modal-error-main {
    text-align: left;
    padding: 24px 24px 24px 56px;
    margin: 0 0 18px 0;
    height: auto;
    max-width: 90vw;
    width: 100%;
    border: 2px solid #e53935;
    background: #fff5f5 url('data:image/svg+xml;utf8,<svg fill="%23e53935" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>') 16px 24px no-repeat;
    color: #b71c1c;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(229,57,53,0.07);
    overflow: auto;
    word-break: break-word;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 180px;
}

/* Migration Status Checker Tool */
.upcasted-migration-status-checker .upcasted-migration-checker-options {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.upcasted-migration-status-checker label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

#upcasted-migration-status-message {
    border-left: 4px solid #dba617;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
    position: relative !important;
    margin: 15px 0 !important;
    padding: 10px !important;
    background: white !important;
    border-radius: 0 4px 4px 0 !important;
}

#upcasted-migration-status-message.notice-success {
    border-left-color: #46b450 !important;
    background: #f7fcf0 !important;
}

#upcasted-migration-status-message.notice-warning {
    border-left-color: #ffba00 !important;
    background: #fff8e5 !important;
}

#upcasted-migration-status-message.notice-error {
    border-left-color: #dc3232 !important;
    background: #fbeaea !important;
}

#upcasted-migration-status-message ul {
    margin: 10px 0;
    padding-left: 20px;
}

#upcasted-migration-status-message li {
    margin: 5px 0;
    font-size: 14px;
}

#upcasted-migration-status-message h4 {
    font-size: 14px;
    font-weight: 600;
}

.upcasted-migration-status-checker .notice-dismiss {
    text-decoration: none;
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 0;
    position: absolute;
    right: 5px;
    top: 5px;
}

.notice-dismiss:hover {
    background-color: #f0f0f0;
}

#upcasted-migration-checker-progress .upcasted-progress-wrapper {
    margin-bottom: 10px;
}

#upcasted-checker-status {
    margin: 0;
    font-style: italic;
    color: #666;
}

/* Failed Items Buttons */
#upcasted-clear-all-failed-items:hover {
    background: #b32d2e !important;
    border-color: #b32d2e !important;
}

.upcasted-ignore-failed {
    color: #b32d2e !important;
    border-color: #b32d2e !important;
}

.upcasted-ignore-failed:hover {
    background: #b32d2e !important;
    color: #fff !important;
    border-color: #b32d2e !important;
}
