.rm-countdown {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.rm-countdown h3 {
    margin: 0 0 10px 0;
}

.rm-status {
    font-size: 1.2em;
    margin: 15px 0;
}

.rm-status.rm-open {
    color: #28a745;
    font-weight: bold;
}

.rm-status.rm-closed {
    color: #dc3545;
}

.rm-timer {
    font-size: 2em;
    font-weight: bold;
    font-family: monospace;
}

.rm-registration-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.rm-field {
    margin-bottom: 15px;
}

.rm-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.rm-field input,
.rm-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.rm-field-hint {
    margin: 5px 0 0 0;
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

.rm-submit {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.rm-submit:hover {
    background: #005a87;
}

.rm-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#rm-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

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

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

.rm-payment-info {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 4px;
}

.rm-payment-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ccc;
}

.rm-participants {
    margin: 20px 0;
}

.rm-table {
    width: 100%;
    border-collapse: collapse;
}

.rm-table th,
.rm-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.rm-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.rm-table tr:hover {
    background: #f9f9f9;
}

.rm-paid {
    color: #28a745;
}

.rm-unpaid {
    color: #dc3545;
}

.rm-no-race,
.rm-closed {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 4px;
}

/* Merchandise Section */
.rm-merchandise-section {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.rm-merchandise-section h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.rm-merchandise-deadline {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    padding: 8px;
    background: #fff3cd;
    border-radius: 4px;
}

.rm-merchandise-preview {
    margin: 15px 0;
    text-align: center;
}

.rm-merchandise-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rm-size-field {
    margin-top: 10px;
}

.rm-merchandise-item {
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
}

.rm-merchandise-item .rm-checkbox-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.rm-merchandise-item .rm-checkbox-field input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.rm-tshirt-size-field,
.rm-headband-size-field {
    margin-top: 10px;
}

.rm-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
}

/* Consent Section */
.rm-consent-section {
    margin: 20px 0;
    padding: 15px;
    background: #f0f7ff;
    border: 1px solid #cce5ff;
    border-radius: 6px;
}

.rm-checkbox-field {
    margin-bottom: 0;
}

.rm-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.5;
}

.rm-consent-label input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.rm-consent-label span {
    font-size: 0.9em;
    color: #333;
}

.rm-single-size-info {
    font-weight: normal;
    color: #666;
}

.rm-lightbox-img {
    cursor: pointer;
    transition: transform 0.2s;
}

.rm-lightbox-img:hover {
    transform: scale(1.05);
}

.rm-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.rm-lightbox.active {
    display: flex;
}

.rm-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.rm-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.rm-lightbox-close:hover {
    color: #ccc;
}
