/* =============================================
   ARRIVED PLUGIN — Styled for faro.style/modus
   ============================================= */

/* --- Button "Notify about availability" --- */
.plugin_arrived-button {
    display: block;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.plugin_arrived-button a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    border: 2px solid #054d27;
    background-color: #ffffff;
    color: #054d27;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    border-radius: var(--radius, 4px);
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.plugin_arrived-button a:hover {
    background-color: #054d27;
    color: #ffffff;
    border-color: #054d27;
}

/* --- Popup overlay --- */
.plugin_arrived-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8010;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* --- Popup box --- */
.plugin_arrived-box {
    display: none;
    background-color: #ffffff;
    border: none;
    border-radius: var(--radius, 8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: fixed;
    left: 50%;
    top: 50%;
    width: 420px;
    max-width: 92vw;
    z-index: 8011;
    font-family: inherit;
    overflow: hidden;
}

.plugin_arrived-popup .plugin_arrived-box {
    display: block;
}

/* --- Popup header --- */
.plugin_arrived-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #054d27;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.plugin_arrived-header span {
    float: none;
    padding: 0;
}

.plugin_arrived-header .plugin_arrived-close {
    width: 20px;
    height: 20px;
    cursor: pointer;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.plugin_arrived-header .plugin_arrived-close:hover {
    opacity: 1;
}

.plugin_arrived-header .plugin_arrived-close::before,
.plugin_arrived-header .plugin_arrived-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}

.plugin_arrived-header .plugin_arrived-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.plugin_arrived-header .plugin_arrived-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* --- Popup body --- */
.plugin_arrived-body {
    padding: 24px;
    overflow: auto;
}

/* --- Form fields --- */
.plugin_arrived-field {
    margin-bottom: 0;
}

.plugin_arrived-name {
    font-weight: 600;
    font-size: 13px;
    color: #1f1f1f;
    margin-bottom: 6px;
}

.plugin_arrived-name.required::before {
    content: '*';
    color: #e30027;
    margin-right: 3px;
}

.plugin_arrived-name.not_bold {
    font-weight: 400;
    color: #888;
    font-size: 12px;
    padding-bottom: 8px;
}

.plugin_arrived-value {
    margin-bottom: 16px;
}

.plugin_arrived-value input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius, 4px);
    background: #fafafa;
    color: #1f1f1f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    outline: none;
}

.plugin_arrived-value input[type="text"]:focus {
    border-color: #054d27;
    box-shadow: 0 0 0 3px rgba(5, 77, 39, 0.1);
    background: #ffffff;
}

.plugin_arrived-value select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius, 4px);
    background: #fafafa;
    color: #1f1f1f;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    appearance: auto;
}

.plugin_arrived-value select:focus {
    border-color: #054d27;
    box-shadow: 0 0 0 3px rgba(5, 77, 39, 0.1);
}

/* --- Submit button --- */
.plugin_arrived-value.submit {
    width: 100%;
    margin-bottom: 0;
    margin-top: 4px;
}

.plugin_arrived-value.submit input[type="submit"] {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #054d27;
    color: #ffffff;
    border: none;
    border-radius: var(--radius, 4px);
    cursor: pointer;
    transition: background-color 0.25s ease;
    font-family: inherit;
}

.plugin_arrived-value.submit input[type="submit"]:hover {
    background: #043d1f;
}

.plugin_arrived-value.submit input[type="submit"]:active {
    background: #032d17;
}

/* --- Loading spinner --- */
.plugin_arrived-loading {
    display: none;
    padding: 12px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* --- Success message --- */
.plugin_arrived-box .plugin_arrived-success {
    display: none;
    font-size: 14px;
    line-height: 22px;
    color: #1f1f1f;
}

.plugin_arrived-box .plugin_arrived-success strong {
    color: #054d27;
    font-size: 16px;
}

/* --- Error messages --- */
.msg_errors {
    color: #e30027;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 18px;
}

/* --- Checkbox (terms) --- */
.plugin_arrived-field label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.plugin_arrived-field input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #054d27;
}

/* --- Responsive --- */
@media screen and (max-width: 480px) {
    .plugin_arrived-box {
        width: 95vw;
    }

    .plugin_arrived-header {
        padding: 14px 18px;
        font-size: 14px;
    }

    .plugin_arrived-body {
        padding: 18px;
    }

    .plugin_arrived-value input[type="text"],
    .plugin_arrived-value select {
        padding: 10px 12px;
    }

    .plugin_arrived-value.submit input[type="submit"] {
        padding: 12px 20px;
        font-size: 14px;
    }
}